VA-API driver init failed (existing solution didn't help)

Hi! When I run programs that use VA-API, an error occures. For example:

$ brave
libva error: /usr/lib/dri/i965_drv_video.so init failed
[2625:2625:0100/000000.098918:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.

In this question, the solution is to write

export LIBVA_DRIVER_NAME=i965

But it doesn’t work for me. Also I noticed, that some people advise using intel-media-driver - iHD (broadwell and post-broadwell) instead of libva-intel-driver - i965 (pre-broadwell), but I am using the first one. So, my questions are:

  1. Should I change drivers?
  2. How to make VA-API working?

Here there is the inxi -Fx output:

System: Host: dan-lt Kernel: 5.15.6-2-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 Desktop: KDE Plasma 5.23.4
Distro: Manjaro Linux base: Arch Linux
Machine: Type: Laptop System: LENOVO product: 81WE v: IdeaPad 3 15IIL05 serial:
Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: UEFI: LENOVO v: EMCN47WW date: 07/29/2021
Battery: ID-1: BAT0 charge: 33.4 Wh (100.0%) condition: 33.4/35.0 Wh (95.5%) volts: 8.5 min: 7.5 model: SMP L16M2PB2
status: Full
CPU: Info: Quad Core model: Intel Core i5-1035G1 bits: 64 type: MT MCP arch: Ice Lake rev: 5 cache: L2: 2 MiB
flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19048
Speed: 1141 MHz min/max: 400/3600 MHz Core speeds (MHz): 1: 1295 2: 1272 3: 1219 4: 1225 5: 1223 6: 1238 7: 1236
8: 1249
Graphics: Device-1: Intel Iris Plus Graphics G1 vendor: Lenovo driver: i915 v: kernel bus-ID: 00:02.0
Device-2: Syntek Integrated Camera type: USB driver: uvcvideo bus-ID: 1-5:2
Display: x11 server: X.Org 1.21.1.1 driver: loaded: modesetting unloaded: vesa resolution: 1920x1080~60Hz
OpenGL: renderer: Mesa Intel UHD Graphics (ICL GT1) v: 4.6 Mesa 21.2.5 direct render: Yes
Audio: Device-1: Intel Ice Lake-LP Smart Sound Audio vendor: Lenovo driver: snd_hda_intel v: kernel bus-ID: 00:1f.3
Sound Server-1: ALSA v: k5.15.6-2-MANJARO running: yes
Sound Server-2: JACK v: 1.9.19 running: no
Sound Server-3: PulseAudio v: 15.0 running: yes
Sound Server-4: PipeWire v: 0.3.40 running: yes
Network: Device-1: Intel Ice Lake-LP PCH CNVi WiFi driver: iwlwifi v: kernel bus-ID: 00:14.3
IF: wlp0s20f3 state: up mac: e0:d4:64:08:b7:3b
Bluetooth: Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB driver: btusb v: 0.8 bus-ID: 1-10:3
Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends
Drives: Local Storage: total: 476.94 GiB used: 99.13 GiB (20.8%)
ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN530 SDBPMPZ-512G-1101 size: 476.94 GiB temp: 32.9 C
Partition: ID-1: / size: 468.09 GiB used: 99.13 GiB (21.2%) fs: ext4 dev: /dev/nvme0n1p2
ID-2: /boot/efi size: 299.4 MiB used: 288 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1
Swap: ID-1: swap-1 type: file size: 8 GiB used: 0 KiB (0.0%) file: /swapfile
Sensors: System Temperatures: cpu: 53.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info: Processes: 272 Uptime: 23m Memory: 7.33 GiB used: 3.19 GiB (43.6%) Init: systemd Compilers: gcc: 11.1.0
clang: 13.0.0 Packages: 1462 Shell: Zsh v: 5.8 inxi: 3.3.09

Also output of ls /usr/lib/dri/

crocus_dri.so i915_dri.so i965_drv_video.so iris_dri.so nouveau_dri.so nouveau_vieux_dri.so r200_dri.so r600_dri.so radeon_dri.so radeonsi_drv_video.so swrast_dri.so virtio_gpu_dri.so zink_dri.so
i830_dri.so i965_dri.so iHD_drv_video.so kms_swrast_dri.so nouveau_drv_video.so nvidia_drv_video.so r300_dri.so r600_drv_video.so radeonsi_dri.so s3g_drv_video.so vdpau_drv_video.so vmwgfx_dri.so

yes you should change the driver. i965 is meant for pre-broadwell. since yours isa 10th gen core CPU you should be using iHD driver.

you should have “intel-media-driver” pacakge installed, and use iHD driver. refer; Hardware video acceleration - ArchWiki

1 Like

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