no prime-run or optimus? cannot get laptop to switch to dGPU
I just installed bazzite on my laptop (lenovo Yoga 730-15ikb) it has a GTX1050
other distros i was able to run something like 'prime-run ./xxxxx' to use the gpu. i cannot seem to find a way on the forms or on here to do that?
Also the supergfxctrl widget is broken in plasma 6 so i cannot use that either.
28 Replies
you can use
switcherooctl list
for me it gives me
Then I can force steam to use GPU like follows switcherooctl launch --gpu=1 steam
I haven't needed to do that since Bazzite seems to detect when to use the GPU automagicallyAre you using kde version? I have the same problem with prime too.. But when i change to gnome it working... I dont know what happen but nvidia prime work on gnome but not in latest kde
This is exactly what I needed. Running with that command did the trick
much better
Great news! Can you mark that as the answer for anyone else looking this up?
should be marked correctly now
Followup question.. how would i do this with a flatpak? Trying to run CURA and cannot seem to get it to run correctly. When i launch it with a shortcut. the application loads but the main viewport never loads correctly. just stays grey
This is patched to always use dedicated
So
switcherooctl launch app
is enough
Also, any .desktop with UseAlternativeGPU specified (such as steam and lutris by default) will launch with switcheroo automatically
In both KDE and GNOMEsteam does not launch with switcheroo automatically in my case
Run
switcheroo
and give me the outputDevice: 0
Name: Advanced Micro Devices, Inc. [AMD®/ATI] Phoenix1
Default: yes
Discrete: no
Environment: DRI_PRIME=pci-0000_06_00_0
Device: 1
Name: NVIDIA Corporation AD107M [GeForce RTX 4060 Max-Q / Mobile]
Default: no
Discrete: yes
Environment: __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only
Looks like your 4060 is properly marked discrete
So
switcherooctl launch bazzite-steam
would work
What's your steam .desktop file look like?where do I find that file? 😅
If you changed anything at all, .local
I don't seem to have it
Also discovered something interesting, running
switcherooctl launch steam
launches steam on the 4060, but running switcherooctl launch bazzite-steam
launches on the integrated GPUSteam might run on one of the other, but how about the games?
That's the important part
Games do seem to be running on nvidia regardless of how I start steam. What is annoying is that when steam launches on the 780M it's quite laggy (not as bad as big picture mode but still)
This may be fixed next update
Relatedly, when I launch steam on nvidia and then go to big picture mode manually, it performs well without lag. Some artifacts are present with UI elements (e.g., steam button), but other than that very smooth
Is there way to make it so when I click on the steam shortcut in my taskbar it launches on nvidia? by default it is iGPU
The slowness is a workaround for a dual GPU bug, not the GPU it's on
Next update will fix what you're reporting
Worked around a different way
Another optimus related question: on arch+kde when I run
cat /sys/bus/pci/devices/0000:01:00.0/power/runtime_status
, it would report suspended
for the gpu status indicating that it is turned off as intended (if i am running on battery, or doing nothing). That does not seem to happen ever on bazzite. I thought it is reporting incorrectly but my battery life estimates are way worseWhat laptop you on? May require setting up an extra kernel argument or using some GPU switching software
Legion Slim 5 14
Let me do a little research I'll get back to you
Optimus did get nuked at some point with an nvidia driver and/or linux kernel update while I was on arch, but was later fixed. Maybe it is the current driver shipped with bazzite?
Normally for optimus to work all I had to do was to install nvidia and nvidia-prime
It's possible, we're trying to ship 555 asap
Oh, for the legion laptops there is also a couple bios settings that can be enabled so that the dGPU becomes available with the full powered charger connected, otherwise iGPU is used on battery or on non-standard charger
I doubt it is that though, because I had that enabled and optimus on arch was fine
This seems to have been fixed today with the update