Configuring VDPAU on hybrid nvidia-intel GPU system

Hi manjaro peeps,
I wanted to configure VDPAU to use it with shadow-tech. I followed what it said on the wiki page linked above. But it didn’t work and still showing error:

$ vainfo
vaInitialize failed with error code -1 (unknown libva error),exit

Can someone point me in the right direction to get it working?
Thanks a bunch!

By ‘configuring’ … what did you do exactly ?

For the intel, depending on what it exactly is, supports VAAPI through package intel-media-driver or libva-intel-driver, and if new enough might also need linux-firmware

Nvidia, on the other hand only supports VDPAU through package nvidia-utils

libva-vdpau-driver will ‘translate’ a VAAPI layer using a VDPAU backend (this enables VAAPI on your nvidia)

libvdpau-va-gl will ‘translate’ a VDPAU layer using a VAAPI backend (this enables VDPAU on your intel)

…thing is … I am relatively sure you should have all of those packages by default already.

So whether you are doing vainfo (which should use the intel, and thus supports VAAPI without any translation) or prime-run vainfo (which should use the nvidia, and if the above package is installed, allow it to use VAAPI through a VDPAU backend) it shouldnt fail.

So … do you have all those packages ?
How have you managed your drivers ?
What did you do to ‘configure hardware acceleration’ ?

Also … might be useful to include your inxi -Fazy and/or mhwd -li


Thanks. I had some packages missing. I had the wrong one installed among following:

Ah. yeah … the media one is newish.
(I hope this doesnt mean we have a bad profile in mhwd or default install though…)

Here are the inxi -Fazy and mhwd -li you asked for. I hope they will help. It didn’t work with the mhwd installation.

$ inxi -Fazy
  Kernel: 5.8.6-1-MANJARO x86_64 bits: 64 compiler: N/A 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.8-x86_64 
  root=UUID=3f183aee-c840-4fca-9947-75ccccf6aa9f rw noquiet pci=nomsi 
  apparmor=1 security=apparmor 
  resume=UUID=1adef7be-f8fd-439c-8550-03f060447e51 udev.log_priority=3 
  Desktop: GNOME 3.36.6 tk: GTK 3.24.23 wm: gnome-shell dm: GDM 3.36.3 
  Distro: Manjaro Linux 
  Type: Laptop System: ASUSTeK product: X541UV v: 1.0 serial: <filter> 
  Mobo: ASUSTeK model: X541UV v: 1.0 serial: <filter> 
  UEFI: American Megatrends v: X541UV.309 date: 04/17/2019 
  ID-1: BAT0 charge: 20.9 Wh condition: 20.9/23.8 Wh (88%) volts: 10.8/10.8 
  model: ASUSTeK ASUS Battery type: Li-ion serial: N/A status: Not charging 
  cycles: 46 
  Topology: Dual Core model: Intel Core i5-6198DU bits: 64 type: MT MCP 
  arch: Skylake family: 6 model-id: 4E (78) stepping: 3 microcode: D6 
  L2 cache: 3072 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 19204 
  Speed: 1153 MHz min/max: 400/2800 MHz Core speeds (MHz): 1: 609 2: 730 
  3: 748 4: 584 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds status: Vulnerable: No microcode 
  Type: tsx_async_abort status: Not affected 
  Device-1: Intel HD Graphics 510 vendor: ASUSTeK driver: i915 v: kernel 
  bus ID: 00:02.0 chip ID: 8086:1906 
  Device-2: NVIDIA GM108M [GeForce 920MX] vendor: ASUSTeK driver: nvidia 
  v: 450.66 alternate: nouveau,nvidia_drm bus ID: 01:00.0 chip ID: 10de:134f 
  Device-3: Chicony USB2.0 HD UVC WebCam type: USB driver: uvcvideo 
  bus ID: 1-6:3 chip ID: 04f2:b424 serial: <filter> 
  Display: x11 server: 1.20.8 compositor: gnome-shell 
  driver: modesetting,nvidia alternate: fbdev,intel,nouveau,nv,vesa 
  resolution: <xdpyinfo missing> 
  OpenGL: renderer: Mesa Intel HD Graphics 510 (SKL GT1) v: 4.6 Mesa 20.1.7 
  direct render: Yes 
  Device-1: Intel Sunrise Point-LP HD Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus ID: 00:1f.3 
  chip ID: 8086:9d70 
  Sound Server: ALSA v: k5.8.6-1-MANJARO 
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: ASUSTeK 
  driver: r8169 v: kernel port: d000 bus ID: 02:00.2 chip ID: 10ec:8136 
  IF: enp2s0f2 state: down mac: <filter> 
  Device-2: Intel Wireless 7260 driver: iwlwifi v: kernel port: d000 
  bus ID: 03:00.0 chip ID: 8086:08b1 
  IF: wlp3s0 state: up mac: <filter> 
  Local Storage: total: 1.36 TiB used: 405.56 GiB (29.0%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/sda vendor: Samsung model: SSD 860 EVO 500GB size: 465.76 GiB 
  block size: physical: 512 B logical: 512 B speed: 6.0 Gb/s serial: <filter> 
  rev: 3B6Q scheme: GPT 
  ID-2: /dev/sdb vendor: Seagate model: ST1000LM024 HN-M101MBB 
  size: 931.51 GiB block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  rotation: 5400 rpm serial: <filter> rev: 0001 scheme: MBR 
  ID-1: / raw size: 100.00 GiB size: 97.93 GiB (97.93%) 
  used: 49.82 GiB (50.9%) fs: ext4 dev: /dev/sda5 
  ID-2: /home raw size: 120.00 GiB size: 117.62 GiB (98.01%) 
  used: 79.23 GiB (67.4%) fs: ext4 dev: /dev/sda6 
  ID-3: /var raw size: 37.64 GiB size: 36.80 GiB (97.77%) 
  used: 24.46 GiB (66.5%) fs: ext4 dev: /dev/sda7 
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 8.00 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/sda8 
  System Temperatures: cpu: 43.0 C mobo: N/A 
  Fan Speeds (RPM): cpu: 2300 
  Processes: 235 Uptime: 26m Memory: 19.42 GiB used: 3.10 GiB (16.0%) 
  Init: systemd v: 246 Compilers: gcc: 10.2.0 alt: 9 clang: 10.0.1 Packages: 
  pacman: 1547 lib: 368 flatpak: 0 Shell: Zsh v: 5.8 
  running in: gnome-terminal inxi: 3.1.05 

$ mhwd -li
> Installed PCI configs:
                  NAME               VERSION          FREEDRIVER           TYPE
     video-modesetting            2020.01.13                true            PCI
video-hybrid-intel-nvidia-450xx-prime            2019.10.25               false            PCI

Warning: No installed USB configs!

Hm. OK. yes … it seems your 510 is in the ‘newer’ category … so that package should have been included…

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.