You are not logged in.

#1 2022-01-05 12:33:04

Lohengrin
Member
Registered: 2016-08-10
Posts: 6

Nvidia optimus laptop: vdpau

I am running a laptop with Intel iGPU and Nvidia dGPU using the latest closed-source drivers with PRIME render offload.

I verified that offloading works via glxinfo | grep "OpenGL renderer"

OpenGL renderer string: Mesa Intel(R) HD Graphics 530 (SKL GT2)

and via prime-run glxinfo | grep "OpenGL renderer"

OpenGL renderer string: Quadro M1000M/PCIe/SSE2

However, vdpau does not seem to be supported despite offloading to nvidia

vdpauinfo:

display: :0   screen: 0
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
Error creating VDPAU device: 1

prime-run vdpauinfo:

display: :0   screen: 0
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
Error creating VDPAU device: 1

Is this to be expected? Or did I miss some env variable that needs to be set in addition?

Offline

#2 2022-01-05 12:45:39

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 16,239

Re: Nvidia optimus laptop: vdpau

Set the relevant VDPAU environment variables properly for the nvidia case: https://wiki.archlinux.org/title/Hardwa … ring_VDPAU

Offline

#3 2022-01-05 13:05:41

Lohengrin
Member
Registered: 2016-08-10
Posts: 6

Re: Nvidia optimus laptop: vdpau

V1del wrote:

Set the relevant VDPAU environment variables properly for the nvidia case: https://wiki.archlinux.org/title/Hardwa … ring_VDPAU

Thanks for the hint. Maybe I have missed the correct environment variable. Without success, I tried the following combinations:

VDPAU_DRIVER=nvidia vdpauinfo:

display: :0   screen: 0
Error creating VDPAU device: 1

VDPAU_DRIVER=nvidia prime-run vdpauinfo:

display: :0   screen: 0
Error creating VDPAU device: 1

export VDPAU_DRIVER=nvidia && prime-run vdpauinfo:

display: :0   screen: 0
Error creating VDPAU device: 1

If I understand it correctly, DRI_PRIME is for the noveau driver. Indeed,
DRI_PRIME=1 glxinfo | grep "OpenGL renderer":

libGL error: failed to create dri screen
libGL error: failed to load driver: nouveau
OpenGL renderer string: Mesa Intel(R) HD Graphics 530 (SKL GT2)

Offline

Board footer

Powered by FluxBB