bayasdev / envycontrol

Easy GPU switching for Nvidia Optimus laptops under Linux
MIT License
1.26k stars 61 forks source link

[QUESTION] how to set applications/games to launch with the nvidia gpu in hybrid mode #130

Closed revolutton closed 1 year ago

revolutton commented 1 year ago

What are the best ways to get my applications/games to use my nvidia card in hybrid mode? Running steam games with the nvidia gpu in hybrid mode should I always set the launch options to (DRI_PRIME=1 ) for nouveau and (__NV_PRIME_RENDER_OFFLOAD=1 VK_LAYER_NV_optimus=NVIDIA_only GLX_VENDOR_LIBRARY_NAME=nvidia ) for the propietary driver or will (prime-run %command%) still work? Im also guessing the same will go for configuring software shortcuts to launch with the nvidia gpu.

bayasdev commented 1 year ago

You can use prime-run ;)