pop-os / system76-power

Power profile management for Linux
GNU General Public License v3.0
589 stars 74 forks source link

Add ability to set an application to "Always use dedicated graphics" #153

Closed Booteille closed 3 years ago

Booteille commented 4 years ago

Actually, this is awesome to just have to right click on a icon to use the dedicated graphics in hybrid mode.

Though, it's not useful for a keyboard experience to always have to use the mouse when wanting to launch a specific application with the dedicated GPU.

So, that would be awesome to be able to always start an application using the dedicated GPU.

crawfxrd commented 4 years ago

There is a desktop entry key to control this, but that still requires launching by clicking the application icon so that it will read the file.

If you're running the binary from the command line you still need to specify the environment variables. Some possible solutions are, using Firefox as an example:

Booteille commented 4 years ago

There is a desktop entry key to control this, but that still requires launching by clicking the application icon so that it will read the file.

Which one, exactly?

Thanks for tips about how to use it on the command line but I was mainly thinking about a simple checkbox, somewhere (why not when right-clicking on the desktop icon). The idea is to make the option userfriendly. To don't have to find it by looking on the internet and modifying manually a file.

crawfxrd commented 4 years ago

Which one, exactly?

PrefersNonDefaultGPU, being integrated into GNOME. We are currently using the non-standard X-KDE-RunOnDiscreteGpu, but this will change to the standardized key (pop-os/gnome-shell#24).

thinking about a simple checkbox

This is the next phase for integration. I've mainly been waiting for the standardized key and upstream progress to start working on it again.

Booteille commented 4 years ago

Great. Thanks a lot for your support!

crawfxrd commented 3 years ago

Closing this since it's out of scope of this package.

g-c-c could potentially be integrated. I don't think launching through Nautilus or apps set to launch at startup work either.

And running from the command line will always require exporting the variables in some manner (left up to the user how to do that) since it's not controlled by the DE.