Run games with Nvidia GPU in hybrid graphics

I’ve got a friend with hybrid nvidia graphics, and im trying to figure out how to run games with his gpu, its a quadro t1000. tried running with

NV_PRIME_RENDER_OFFLOAD=1 GLX_VENDOR_LIBRARY_NAME=nvidia __VK_LAYER_NV_optimus=NVIDIA_only %command%

from steam launch options and im not seeing any processes in nvidia-smi and the framerate is really bad. From what i can tell, it has the nvidia 550 driver, but I’m new to nvidia land so im not sure how that works. aurora-dx-nvidia image.

__NV_PRIME_RENDER_OFFLOAD=1 vkcube

did run off his nvidia gpu i’m pretty sure, but that didnt seem to work for ultrakill

have you tried to launch the game trough lutris? there I can choose the gpu and that seem to work.

Good news, I managed to solve it. Turns out that I had a typo in the launch options. In addition, Ultrakill in specific required

PROTON_USE_WINED3D=1

to be able to display at the correct resolution. (from a protonDB report: Game crashed on launch with error: DX11 could not switch resolution. So I added: PROTON_USE_WINED3D=1 %COMMAND% to steam’s “SET LAUNCH OPTIONS…”)
The full steam launch options that worked looked like so:

__GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only PROTON_USE_WINED3D=1 %command%

By the way, the lutris flatpak was not showing a gpu selection option. I even tried swapping him over to bluefin-dx-nvidia for the run with dedicated gpu option, but that didn’t work either. Strange, but all he needs it for is steam games so I’m not worried about it. Hooray for nvidia?

1 Like

As a meta note, how do I mark this thread as solved? Is the plugin to mark a thread as solved not present on this forum?