Taking advantage of integrated & dedicated graphics in laptop for power consumption.

Hi, so I have an Acer Swift X using Radeon integrated graphics and an RTX 3050 as the dedicated card. The one thing Windows does well in my use-case is knowing when to utilize the integrated graphics, then transitioning over to using the dedicated GPU. If I use Firefox for web browsing/watching videos, then it will strictly use the Radeon graphics. If I start playing any game via. Steam or anything that's demanding at all, then it will transition over into using the dedicated graphics card. Is there any way I can utilise this same function (seamlessly) without having to set a bunch of manual configs?
Solution:
if a programs .desktop file (program shortcut file) has that in it, it will run on the dedicated gpu in bazzite as we have a patched version of switcheroo that does this (the unpatched behavior doesnt check which graphics card is the discrete one and just blindly selects whatever the non-default graphics is, which works on laptops but not on desktops :clueless: )
Jump to solution
10 Replies
HikariKnight
HikariKnight2mo ago
handled automatically by switcherooctl and a flag in the .desktop file for the application. let me dig up what that flag is
PrefersNonDefaultGPU=true
X-KDE-RunOnDiscreteGpu=true
PrefersNonDefaultGPU=true
X-KDE-RunOnDiscreteGpu=true
Solution
HikariKnight
HikariKnight2mo ago
if a programs .desktop file (program shortcut file) has that in it, it will run on the dedicated gpu in bazzite as we have a patched version of switcheroo that does this (the unpatched behavior doesnt check which graphics card is the discrete one and just blindly selects whatever the non-default graphics is, which works on laptops but not on desktops :clueless: )
frungy
frungyOP2mo ago
perfect
HikariKnight
HikariKnight2mo ago
steam has this flag by default
frungy
frungyOP2mo ago
same with lutris?
HikariKnight
HikariKnight2mo ago
it should, would be really dumb if it didnt :clueless:
frungy
frungyOP2mo ago
ok bet
HikariKnight
HikariKnight2mo ago
i dont use lutris so worth double checking, but im pretty sure its there
frungy
frungyOP2mo ago
ill take a look at it thanku for everything !!
HikariKnight
HikariKnight2mo ago
huh lutris does not have it actually, i will check with kyle after scale this weekend if thats supposed to be like that as i believe he uses lutris it will be easy for you to add it though
cp /usr/share/applications/net.lutris.Lutris.desktop ~/.local/share/applications/
nano ~/.local/share/applications/net.lutris.Lutris.desktop
cp /usr/share/applications/net.lutris.Lutris.desktop ~/.local/share/applications/
nano ~/.local/share/applications/net.lutris.Lutris.desktop
then add it there under the [Desktop Entry] section and press CTRL+X to save and exit

Did you find this page helpful?