Skip to content

fix: show discrete GPU as default within cosmic context menu - #286

Merged
mmstick merged 1 commit into
pop-os:masterfrom
Jan200101:PR/switcheroo
Jul 2, 2026
Merged

fix: show discrete GPU as default within cosmic context menu#286
mmstick merged 1 commit into
pop-os:masterfrom
Jan200101:PR/switcheroo

Conversation

@Jan200101

@Jan200101 Jan200101 commented Feb 12, 2026

Copy link
Copy Markdown

requires pop-os/dbus-settings-bindings#29
matches pop-os/cosmic-launcher#399

Uses a discrete GPU when a more powerful GPU is requested using PrefersNonDefaultGPU

PrefersNonDefaultGPU
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


This PR could also do some more stuff like add a (discreted) / (dedicated) and how the GPU is selected could be tweaked, but that is best discussed in pop-os/cosmic-launcher#399

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
Jan200101 marked this pull request as ready for review February 14, 2026 20:18
@Jan200101 Jan200101 changed the title fix: use discrete GPU when more powerful GPU is requested fix: show discrete GPU as default within cosmic context menu Feb 14, 2026
@mmstick
mmstick requested a review from a team June 24, 2026 19:58
@jklgrasso

Copy link
Copy Markdown

The PR checklist is required

@Jan200101

Copy link
Copy Markdown
Author

This PR predates the checklist, I'll add it in this comment:


  • I have disclosed use of any AI generated code in my commit messages.
    • If you are using an LLM, and do not fully understand the changes it is making to the code base, do not create a PR.
    • In our experience, AI generated code often results in overly complex code that lacks enough context for a proper fix or feature inclusion. This results in considerably longer code reviews. Due to this, AI authored or partially authored PRs may be closed without comment.
  • I understand these changes in full and will be able to respond to review comments.
  • My change is accurately described in the commit message.
  • My contribution is tested and working as described.
  • I have read the Developer Certificate of Origin and certify my contribution under its conditions.

@jklgrasso jklgrasso self-assigned this Jul 2, 2026
@mmstick
mmstick merged commit a332a3a into pop-os:master Jul 2, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants