Skip to content

Hardware video acceleration not working using Firefox and UHD 620?

I'm trying to get hardware video acceleration to work using Firefox on a Kaby Lake CPU (Core i5 8350U) with an UHD 620 iGPU. Here's what I did so far according to the wiki.

Installed intel-media-driver, libva-intel-driver and lib32-libva-intel-driver, libvdpau-va-gl, libva-vdpau-driver.

I verified that the following VA-API codecs can be decoded: MPEG2, H264, VC1, VP8, HEVC, VP9 and the following can be encoded: MPEG2, H264, VP8, HEVC using libva-utils.

And even though the CPU should be able to decode VP9 vdpauinfo is only showing H264 decoder capabilities. But I also realized that the i915 driver is loaded and not the iHD one (according to inxi -G).

But journalctl | grep "iHD" shows the following:

May 23 13:32:19 laptop plasmashell[16880]: libva info: User environment variable requested driver 'iHD'May 23 13:32:19 laptop plasmashell[16880]: libva info: Trying to open /usr/lib/dri/iHD_drv_video.so

I also tried configuring VA-API by setting the LIBVA_DRIVER_NAME environment variable to iHD in my .bashrc but it still loads i915. Or did I maybe misunderstood this?

I tried setting VDPAU_DRIVER=va_gl which also appeared to do nothing.

In Firefox I configured the following according to the wiki:

  • Compositing is using WebRender.
  • Set gfx.webrender.all to true.
  • Set media.ffmpeg.vaapi.enabled to true.
  • Set media.rdd-ffmpeg.enabled to true (default).
  • Set media.ffvpx.enabled to false.
  • Set media.navigator.mediadatadecoder_vpx_enabled to true.
  • Set media.rdd-vpx.enabled to false.

Despite doing all this, intel_gpu_top is showing no load on Video.

Should I only install intel-media-driver or libva-intel-driver? Or is it okay to have both installed and let the system choose the correct driver?

Is it intended behavior that inxi is showing the i915 driver being used?

Am I missing anything for Firefox 100.0.2 that's maybe not in the wiki?

Edited 23 May 2022. We only hold this version.

5 points8 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
5 · 79% up
Kind
Text
ID
uvydaf

Author

89
posts
196
comments
15
media
View profile
No comments archived yet. Reddit counts 8.

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.