Closed BlindRepublic closed 1 year ago
Does this work?
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia steam
Maybe steam needs this to run
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia __VK_LAYER_NV_optimus=NVIDIA_only steam
Yes, and even manually running Steam via switcherooctl launch /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=/app/bin/steam-wrapper com.valvesoftware.Steam
works properly.
Looking through https://github.com/linuxmint/xapp/blob/b0bc45f8e5cb2aa2afb1d76569589234feac33d6/libxapp/xapp-util.c, it seems that xapp_util_gpu_offload_supported
uses Ubuntu specific tooling. It would be better to use switcheroo-control instead. I'll report this there too.
How to do this in fortnite in windows in laptop
Issue
Launching applications that have
PrefersNonDefaultGPU=true
in their.desktop
file does not result in the application running on the Nvidia card.Steps to reproduce
nvidia-smi
)Expected behaviour
The game should be using the Nvidia graphics card and the binary should be visible under
nvidia-smi
.Other information