# Arch Linux Hardware Video Acceleration

**URL:** <https://community.frame.work/t/arch-linux-hardware-video-acceleration/17502>\
**Category:** Linux\
**Created:** [April 13, 2022, 3:27pm UTC](https://community.frame.work/t/arch-linux-hardware-video-acceleration/17502 "2022-04-13T15:27:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenVosper](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/benvosper/32/8244_2.png) [@BenVosper](https://community.frame.work/u/BenVosper)\
**Post date:** [April 13, 2022, 3:27pm UTC](https://community.frame.work/t/arch-linux-hardware-video-acceleration/17502/1 "2022-04-13T15:27:09Z")

</div>

Is anyone else having trouble getting `VA-API` / `VDPAU` working on their machine? From what I’m reading the hardware (i7-1165G7 in this case) is supposed to support it fine.

I’ve followed the [guide](https://wiki.archlinux.org/title/Hardware_video_acceleration) for setting it up, but I just get:

```auto
libva error: /usr/lib/dri/iHD_drv_video.so has no function __vaDriverInit_1_0
vaInitialize failed with error code -1 (unknown libva error),exit

```

When I run `vainfo`.

That’s using the `intel-media-driver` and with `LIBVA_DRIVER_NAME=iHD` set globally.

I tried with the older `libva-intel-driver` but got the same error.

I’ve also enabled [Early KMS Start](https://wiki.archlinux.org/title/Kernel_mode_setting#Early_KMS_start) after reading that it might be related.

Am I missing anything obvious?

---

<div class="post-metadata">

**Author:** ![Prince\_Cooper](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@Prince\_Cooper](https://community.frame.work/u/Prince_Cooper)\
**Post date:** [April 13, 2022, 11:35pm UTC](https://community.frame.work/t/arch-linux-hardware-video-acceleration/17502/2 "2022-04-13T23:35:10Z")

</div>

Did you read & follow section 1.1?

---

<div class="post-metadata">

**Author:** ![BenVosper](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/benvosper/32/8244_2.png) [@BenVosper](https://community.frame.work/u/BenVosper)\
**Post date:** [April 14, 2022, 9:47am UTC](https://community.frame.work/t/arch-linux-hardware-video-acceleration/17502/3 "2022-04-14T09:47:06Z")

</div>

@Prince_Cooper I believe so. I’ve got both `intel-media-driver` and `linux-firmware` installed. That’s the correct driver for this hardware right? What am I missing?

---

<div class="post-metadata">

**Author:** ![Robert\_Ricci](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/robert_ricci/32/4516_2.png) [@Robert\_Ricci](https://community.frame.work/u/Robert_Ricci)\
**Post date:** [April 15, 2022, 9:38pm UTC](https://community.frame.work/t/arch-linux-hardware-video-acceleration/17502/4 "2022-04-15T21:38:20Z")

</div>

I had a problem like this, which turned out to be a problem with an Arch package. See this for the bug report (now fixed): [FS#74330 : [intel-media-driver][intel-gmmlib] iHD\_drv\_video.so init failed](https://bugs.archlinux.org/task/74330) - your problem might go away if you update?

---

<div class="post-metadata">

**Author:** ![BenVosper](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/benvosper/32/8244_2.png) [@BenVosper](https://community.frame.work/u/BenVosper)\
**Post date:** [April 20, 2022, 9:46am UTC](https://community.frame.work/t/arch-linux-hardware-video-acceleration/17502/5 "2022-04-20T09:46:54Z")

</div>

@Robert_Ricci I think you’re right. It seems to be working now (according to `vainfo`) .

With `mesa 22.0.1-3` and `intel-media-driver 22.3.1-1`.

Now to get firefox to actually use the hardware decoding…

---

<div class="post-metadata">

**Author:** ![Proximus](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/proximus/32/7800_2.png) [@Proximus](https://community.frame.work/u/Proximus)\
**Post date:** [April 25, 2022, 3:30pm UTC](https://community.frame.work/t/arch-linux-hardware-video-acceleration/17502/6 "2022-04-25T15:30:08Z")

</div>

@BenVosper Did you find a way to use hardware encoding on firefox?

I know vaapi is woking, checking with `vainfo` command.

Followed [this](https://wiki.archlinux.org/title/Firefox#Hardware_video_acceleration) archwiki to let firefox use vaapi (hardware decoding), but I don’t seem to get it working.

MPV and VLC work with vaapi no problem, check with `sudo intel_gpu_top` command.
