NVIDIA 435.17 Linux Beta driver adds PRIME offload feature to Vulkan and OpenGL + GLX

Newest NVIDIA 435.17 Linux beta driver Added Vulkan and OpenGL + GLX support for PRIME rendering offload.
PRIME is a collection of features of the Linux kernel, display server, and various drivers that can offload GPUs under multiple GPU configurations under Linux, such as laptops using NVIDIA Optimus (using integrated Intel GPUs and discrete NVIDIA GPUs).
With the new on-demand PRIME rendering offload feature, you can run specific applications on a separate NVIDIA GPU while using the integrated GPU for everything else, saving battery power.

The latest NVIDIA 435.17 Linux beta driver supports Vulkan and OpenGL + GLX for PRIME rendering offload, but does not yet support NVIDIA’s EGL.
To take advantage of the new PRIME rendering offload feature of the latest Beta NVIDIA driver, you will need X Server and some of its patches that have not been included in any official X Server version. PPA Users who are willing to test can use Ubuntu 19.04 or 18.04. NVIDIA driver PPA Currently only available for 435.17 version of Ubuntu 19.10, so if you use an older version you have to wait. In order to work properly, some additional X screen configuration (xorg.conf) is required.
It’s also worth noting that it looks like you want to offload a graphics application to your NVIDIA GPU screen, and requires some environment variables, depending on the type of application you want to run:

  • For Vulkan applications you need to use __NV_PRIME_RENDER_OFFLOAD=1 (E.g.: __NV_PRIME_RENDER_OFFLOAD=1 vkcube)
  • For GLX applications you need to use both __NV_PRIME_RENDER_OFFLOAD=1 with __GLX_VENDOR_LIBRARY_NAME=nvidia (E.g.: __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep vendor).

Learn more about Changes in NVIDIA 435.17 Linux beta driver And check Details and requirements for PRIME rendering offload.
My old Nvidia Optimus laptop does not support the latest NVIDIA drivers (I need to use the older 390 version) and therefore cannot be tested. That’s why my NVIDIA settings screenshot does include the new “NVIDIA On-Demand” option, but no other settings. Therefore, I cannot provide any additional details or a correct, tested method to set up and use this method.
Pass / r / linux_gaming (/ U / anti-ultimate)

Source

Sidebar