fix: use discrete GPU when more powerful GPU is requested - #399
Open
Jan200101 wants to merge 1 commit into
Open
Conversation
PrefersNonDefaultGPU is specified as follows in the Specification: If true, the application prefers to be run on a more powerful discrete GPU if available, which we describe as “a GPU other than the default one” in this spec to avoid the need to define what a discrete GPU is and in which cases it might be considered more powerful than the default GPU. This key is only a hint and support might not be present depending on the implementation. https://specifications.freedesktop.org/desktop-entry/latest/recognized-keys.html Checking for a Discrete GPU is a more accurate implementation despite the misleading name.
Jan200101
force-pushed
the
PR/switcheroo
branch
from
February 13, 2026 17:53
c418376 to
ccd9b53
Compare
Jan200101
marked this pull request as ready for review
February 13, 2026 17:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
requires pop-os/dbus-settings-bindings#29
Uses a discrete GPU when a more powerful GPU is requested using
PrefersNonDefaultGPUhttps://specifications.freedesktop.org/desktop-entry/latest/recognized-keys.html
Gnome and KDE (and Cinnamon) disagree how the check should be
KDE (and Cinnamon) prefer a Default Discrete GPU and otherwise use the first Discrete GPU
GNOME uses the first Non Default Discrete GPU and otherwise any Discrete GPU
I'll leave deciding this to someone else though I think the way KDE did it is best for usability.