You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enable sqlitebrowser to use integrated graphics card instead of high performance graphics card in macOS #2377
Currently the app is using high perf graphics card instead of normal integrated graphics card. Therefore, the app is impacting heavily on battery life for mac users.
Additional info
Please answer these questions before submitting your feature request.
Is your feature request related to an issue? Please include the issue number.
NO
Does this feature exist in another product or project? Please provide a link.
NO
Do you have a screenshot? Please add screenshots to help explain your idea.
In the below screenshot you can clearly see the graphics card is in high perf instead of integrated. If I quit the sqlitebrowser app the mode will change to integrated immediately.
Interesting. Our application is built upon a cross platform framework called "Qt". My first thought is that maybe there's some setting(s) in Qt that would allow this. Maybe @revolter would know?
Activity
justinclift commentedon Aug 19, 2020
Interesting. Our application is built upon a cross platform framework called "Qt". My first thought is that maybe there's some setting(s) in Qt that would allow this. Maybe @revolter would know?
revolter commentedon Aug 19, 2020
Maybe adding the
NSSupportsAutomaticGraphicsSwitchingInfo.plist key: https://codereview.qt-project.org/c/qt/qtbase/+/73839/.More details: https://stackoverflow.com/a/27211853/865175.
Are we using Qt 5.3+?
chrisjlocke commentedon Aug 19, 2020
Qt v5.12.8, I believe.
justinclift commentedon Aug 19, 2020
@revolter Thanks heaps, that looks like the right kind of thing. 😄
And yep, Chris has it right. Our macOS and windows builds at the moment are using Qt 5.12.8.
MKleusberg commentedon Aug 19, 2020
#1935 looks like a related issue. Also, as @mgrojo says there, this might be related to #1233.
justinclift commentedon Aug 19, 2020
@ajaykumarmeher Would you be ok with trying something out?
If you could try adding this:
... to the file
/Applications/DB Browser for SQLite.app/Contents/Info.plist.It will need to be near the end, just after the
<true/>string before the</dict>one. Make a backup of the file first though, just in case. 😄In theory, once that change is done, you should be able to use the Integrated graphics card for the application.
If that does work, please let us know so we can add the change here for our future releases too. 😄
ajaykumarmeher commentedon Aug 19, 2020
@justinclift thanks a lot for providing the fastest solution possible :) kudos to the team.
Tell Qt to allow use of an integrated graphics adapter
justinclift commentedon Aug 19, 2020
Awesome. I've just added that change to our source code, so it'll be in our nightly builds and all future releases too.
Thanks for looking into this @revolter, and thanks for testing it @ajaykumarmeher. 😄
MKleusberg commentedon Aug 21, 2020
Awesome 😄 I'll close this issue then.
Tell Qt to allow use of an integrated graphics adapter