It does not work again on Ubuntu 22.04 LTS with i965. I am not sure
whether i965_drv_video.so is packaged with the snap or not.
If I do:
```
troels@troels-ThinkPad-X230-Tablet:~$ LIBVA_DRIVER_NAME=i965 vainfo
libva info: VA-API version 1.14.0
libva info: User environment variable requested driver 'i965'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_10
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.14 (libva 2.12.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Ivybridge Mobile - 2.4.1
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
VAProfileJPEGBaseline : VAEntrypointVLD
```
However, if it force the iHD driver:
```
troels@troels-ThinkPad-X230-Tablet:~$ LIBVA_DRIVER_NAME=iHD vainfo
libva info: VA-API version 1.14.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 1
vaInitialize failed with error code 1 (operation failed),exit
```
So my computer does not work with the iHD driver, that I think the snap
comes packaged with. Maybe I by mistake in Ubuntu 21.10 was using the
normal packaged version of Firefox, which enabled me to use the i965 VA
driver.
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/1947115
Title:
VAAPI / HW-acceleration not working Snap-packaged Firefox
Status in firefox package in Ubuntu:
Fix Released
Bug description:
I just installed Ubuntu 21.10, which packages Firefox in snap in
contrary to the old .deb package way.
Now neither of my laptops (with snap packaged firefox and Ubuntu 21.10) can
play videos hardware accelerated using VAAPI anymore. This means my laptops get
hotter and use battery faster. It was working perfectly in Ubuntu 21.04.
I can see that the about:config has stayed untouched since the upgrade, so I
have my doubts that this is related to an updated about:config.
vainfo shows full support (nothing appears broken) and I am also able
to play videos in VLC using hardware acceleration, VAAPI.
The reason why I can see it is not using VAAPI is intel_gpu_top. In
previous versions of Ubuntu with Firefox, I could monitor the video
decoder when watching videos in Firefox. Before the upgrade it was
always utilized. Now it only shows that the GPU is being used, so the
video decoder is not in use.
I can't see any switch in the Application/Firefox menu regarding
allowing access to video decoding hardware, so I am wondering if it
simply cannot access that part of the GPU inside a snap environment?
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1947115/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp