You are not logged in.

#1 2022-04-03 10:23:57

Dante777
Member
From: Greece
Registered: 2016-07-12
Posts: 29

[SOLVED] iHD Hardware Video Acceleration Fails

Hi there!
Today i realized that Hardware Video Acceleration didn't work.

vainfo
libva error: /usr/lib/dri/iHD_drv_video.so init failed
vaInitialize failed with error code -1 (unknown libva error),exit

I'm running KDE Plasma on Wayland, on an integrated laptop gpu:

00:02.0 VGA compatible controller: Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620] (rev 02)

and VA was working fine until recently.
Now, i could only get it back by installing  the "libva-intel-driver" package, which supposedly supports only older Intel chips. [<Broadwell]

libva error: /usr/lib/dri/iHD_drv_video.so init failed
vainfo: VA-API version: 1.13 (libva 2.14.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake - 2.4.1
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointEncSliceLP
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointEncSliceLP
      VAProfileH264MultiviewHigh      : VAEntrypointVLD
      VAProfileH264MultiviewHigh      : VAEntrypointEncSlice
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileH264StereoHigh         : VAEntrypointEncSlice
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileVP8Version0_3          : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointEncSlice
      VAProfileVP9Profile2            : VAEntrypointVLD

This is a regression, but i cannot figure out what caused it.
Anyway, all is up and running again

EDIT: Figured it out by reading a post about Firefox's hardware acceleration, on r/archlinux

Last edited by Dante777 (2022-04-03 10:26:05)

Offline

#2 2022-04-06 16:21:40

0BADC0DE
Member
From: Regnum Utriusque Siciliae
Registered: 2018-02-21
Posts: 176

Re: [SOLVED] iHD Hardware Video Acceleration Fails

Dante777 wrote:

...
This is a regression, but i cannot figure out what caused it.
Anyway, all is up and running again

EDIT: Figured it out by reading a post about Firefox's hardware acceleration, on r/archlinux

Hi. Why don't you link whatever detail you have found?
That would help people like me instead of wasting time in searching on reddit...


Maybe Computers Will Never Become As Intelligent
As Humans. Surely They Won't Ever Become So Stupid.

Offline

#3 2022-04-06 16:47:13

Dante777
Member
From: Greece
Registered: 2016-07-12
Posts: 29

Re: [SOLVED] iHD Hardware Video Acceleration Fails

0BADC0DE wrote:

Hi. Why don't you link whatever detail you have found?
That would help people like me instead of wasting time in searching on reddit...

Not much info there, plus i explained how i "solved" the issue, but if you insist: https://www.reddit.com/r/archlinux/comm … eleration/

Offline

#4 2022-04-06 16:50:38

0BADC0DE
Member
From: Regnum Utriusque Siciliae
Registered: 2018-02-21
Posts: 176

Re: [SOLVED] iHD Hardware Video Acceleration Fails

Dante777 wrote:
0BADC0DE wrote:

Hi. Why don't you link whatever detail you have found?
That would help people like me instead of wasting time in searching on reddit...

Not much info there, plus i explained how i "solved" the issue, but if you insist: https://www.reddit.com/r/archlinux/comm … eleration/

libva-intel-driver is " VA-API implementation for Intel G45 and HD Graphics family", which is not just the old graphics but also newer: https://wiki.archlinux.org/title/Hardwa … tion#Intel

You said the vainfo error is a regression. Where have you found such an evidence?

Last edited by 0BADC0DE (2022-04-06 17:01:18)


Maybe Computers Will Never Become As Intelligent
As Humans. Surely They Won't Ever Become So Stupid.

Offline

#5 2022-04-06 17:00:57

Dante777
Member
From: Greece
Registered: 2016-07-12
Posts: 29

Re: [SOLVED] iHD Hardware Video Acceleration Fails

0BADC0DE wrote:

You said the vainfo error is a regression. Where have you found such an evidence?

A regression (in the general sense of) as in "something that used to work, does not anymore, without me being responsible for that drawback".
Quoting myself here: "This is a regression, but i cannot figure out what caused it."  wink

Offline

#6 2022-04-06 17:42:39

progandy
Member
Registered: 2012-05-17
Posts: 5,005

Re: [SOLVED] iHD Hardware Video Acceleration Fails

The intel-media-driver (iHD) 22.2.2 shipped by arch linux seems to be buggy as well.. I verified the old version 21.4.3 is working on my Kaby Lake (G) system. (it requires an older intel-gmmlib).
There has been a new release 22.3.1, maybe that is better, too.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#7 2022-04-07 06:11:59

0BADC0DE
Member
From: Regnum Utriusque Siciliae
Registered: 2018-02-21
Posts: 176

Re: [SOLVED] iHD Hardware Video Acceleration Fails

progandy wrote:

The intel-media-driver (iHD) 22.2.2 shipped by arch linux seems to be buggy as well.. I verified the old version 21.4.3 is working on my Kaby Lake (G) system. (it requires an older intel-gmmlib).
There has been a new release 22.3.1, maybe that is better, too.

In my case, I tried to revert back to intel-gmmlib-22.0.3-1 and both intel-media-driver-21.4.3-1 and intel-media-driver-21.4.1-1.
None worked (I even did reboots) with my setup (TigerLake-LP GT2 [Iris Xe Graphics]) because intel-media-driver wants ibigdgmm.so.11 and not libigdgmm.so.12.
Trying an extra downgrade with gmmlib.

B I N G O  ! !
My setup only works with this combination:
- intel-gmmlib-21.3.5-1 (2021-12-26)
- intel-media-driver-21.4.1-1 (2021-11-11)

My setup won't work with intel-media-driver-21.4.3-1 (2021-12-02) and subsequent version(s).
I will pin these in pacman config (IgnorePkg).
BTW, packages can be downloaded here and here.
Once old packages have been removed with "sudo pacman --noconfirm -Rsn  intel-media-driver intel-gmmlib", the local installation command is "sudo pacman -Qv <local_package_file_path>" for each downloaded package file.
I have these variables in my environment:

export VDPAU_DRIVER=va_gl
export LIBVA_DRIVER_NAME=iHD

Thanks to progandy and Dante777!

P.S.
There is an AUR package called downgrade which can help greatly to ... downgrade packages.

UPDATE 2022-04-08
It looks like latest intel-media-driver package version 22.2.2-2 works with intel-gmmlib version 22.1.2-1.

Last edited by 0BADC0DE (2022-04-08 13:01:05)


Maybe Computers Will Never Become As Intelligent
As Humans. Surely They Won't Ever Become So Stupid.

Offline

#8 2022-04-08 13:04:23

Dante777
Member
From: Greece
Registered: 2016-07-12
Posts: 29

Re: [SOLVED] iHD Hardware Video Acceleration Fails

Latest update to "intel-media-driver 22.2.2-2" resolved the issue.

Offline

#9 2022-04-08 13:06:53

0BADC0DE
Member
From: Regnum Utriusque Siciliae
Registered: 2018-02-21
Posts: 176

Re: [SOLVED] iHD Hardware Video Acceleration Fails

Dante777 wrote:

Latest update to "intel-media-driver 22.2.2-2" resolved the issue.

Confirmed. This is why I put an update to my latest message.
And VLC reports it's using hw acceleration while intel_gpu_top confirms it.
Thanks for the heads up.

Last edited by 0BADC0DE (2022-04-08 13:08:20)


Maybe Computers Will Never Become As Intelligent
As Humans. Surely They Won't Ever Become So Stupid.

Offline

Board footer

Powered by FluxBB