I’m trying to force software to run on my NVIDIA dGPU using PRIME Render Offload on CachyOS.
I’ve explicitly tried setting the following environment variables:
__NV_PRIME_RENDER_OFFLOAD=1
__GLX_VENDOR_LIBRARY_NAME=nvidia
__VK_LAYER_NV_optimus=NVIDIA_only
I’ve also tested using prime-run
, but neither this nor the environment variables work with eglgears_wayland
— it still runs on my integrated GPU.
I’m looking for a proper way to get apps like this to offload to the NVIDIA GPU under Wayland.