# HW accel broken for flatpak

**URL:** <https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782>\
**Category:** Plex Players\
**Tags:** server-linux, player-linux\
**Created:** [August 29, 2024, 5:59pm UTC](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782 "2024-08-29T17:59:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike9868](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@mike9868](https://forums.plex.tv/u/mike9868)\
**Post date:** [August 29, 2024, 5:59pm UTC](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782/1 "2024-08-29T17:59:16Z")

</div>

Hi, flatpak support for newer hardware is currently broken resulting in non hardware accelerated videos which draws battery on a notebook and has issues with 4k videos. I am plagued by this issue since I moved from an older intel CPU to a 13th Gen Intel.

The logs show this:

```auto
Aug 29, 2024 19:51:07.892 [140701004203712] DEBUG - [MPVEngine/mpv] libmpv_render: Loading hwdec driver 'vaapi-egl'
Aug 29, 2024 19:51:07.892 [140701004203712] DEBUG - [MPVEngine/mpv] libmpv_render/vaapi-egl: using VAAPI EGL interop
Aug 29, 2024 19:51:07.892 [140701004203712] DEBUG - [MPVEngine/mpv] libmpv_render/vaapi-egl: Trying to open a x11 VA display...
Aug 29, 2024 19:51:07.892 [140701004203712] DEBUG - [MPVEngine/mpv] libmpv_render/vaapi-egl: Trying to open a drm VA display...
Aug 29, 2024 19:51:07.892 [140701004203712] DEBUG - [MPVEngine/mpv] libmpv_render/vaapi-egl: Could not create a VA display.
Aug 29, 2024 19:51:07.892 [140701004203712] DEBUG - [MPVEngine/mpv] libmpv_render: Loading failed.

```

---

<div class="post-metadata">

**Author:** ![mike9868](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@mike9868](https://forums.plex.tv/u/mike9868)\
**Post date:** [October 13, 2024, 8:21am UTC](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782/3 "2024-10-13T08:21:40Z")

</div>

This is still not working with the latest release, neither for the flatppak nor the snap version.

---

<div class="post-metadata">

**Author:** ![anon5074910](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@anon5074910](https://forums.plex.tv/u/anon5074910)\
**Post date:** [October 13, 2024, 8:36am UTC](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782/4 "2024-10-13T08:36:55Z")

</div>

Wild guess but are you running wayland as your windows manager ? If so as a test try x11 and see if that helps.

---

<div class="post-metadata">

**Author:** ![mike9868](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@mike9868](https://forums.plex.tv/u/mike9868)\
**Post date:** [October 13, 2024, 9:15am UTC](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782/5 "2024-10-13T09:15:18Z")

</div>

No, this does not make a difference. No hardware acceleration, neither with wayland, nor with X.

---

<div class="post-metadata">

**Author:** ![anon5074910](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@anon5074910](https://forums.plex.tv/u/anon5074910)\
**Post date:** [October 13, 2024, 11:18am UTC](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782/6 "2024-10-13T11:18:16Z")

</div>

Just curious, but what linux distro are you using, what drivers are installed for your video card/intel igpu and what kernel are you running ?

---

<div class="post-metadata">

**Author:** ![mike9868](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@mike9868](https://forums.plex.tv/u/mike9868)\
**Post date:** [October 13, 2024, 1:17pm UTC](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782/7 "2024-10-13T13:17:11Z")

</div>

This is most likely a hardware support related issue. I have a 13th gen intel and neither flatpak nor snap are able to use it. The complete same disk image works fine on my 7th generation intel integrated GPU. VLC and mpv also work fine.

---

<div class="post-metadata">

**Author:** ![Mitzsch](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mitzsch/32/308163_2.png) [@Mitzsch](https://forums.plex.tv/u/Mitzsch)\
**Post date:** [October 13, 2024, 1:31pm UTC](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782/8 "2024-10-13T13:31:34Z")

</div>

snap (and flatpak?) packages include drivers, they are probably out of date. That’s why vaapi decoding with such new hardware probably fails.

---

<div class="post-metadata">

**Author:** ![mike9868](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@mike9868](https://forums.plex.tv/u/mike9868)\
**Post date:** [December 13, 2024, 8:56pm UTC](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782/9 "2024-12-13T20:56:06Z")

</div>

Well, that might be true, but the hardware is about a year old now, so it is not THAT new any more. Furthermore I am also using the snap version of VLC and hardware acceleration is working fine there.

---

<div class="post-metadata">

**Author:** ![bemymonkey](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bemymonkey](https://forums.plex.tv/u/bemymonkey)\
**Post date:** [December 29, 2024, 11:39am UTC](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782/10 "2024-12-29T11:39:29Z")

</div>

> [@mike9868](#):
>
> This is most likely a hardware support related issue. I have a 13th gen intel and neither flatpak nor snap are able to use it. The complete same disk image works fine on my 7th generation intel integrated GPU. VLC and mpv also work fine.

That’s pretty interesting, because it doesn’t work on 8th gen.

If the “bundled drivers” really are too old they must be REALLY old to make the cut-off between 7th and 8th gen Intel Core…

-edit- Still broken in case that wasn’t clear.

 ![image](https://global.discourse-cdn.com/plex/original/4X/3/c/e/3ce2e4d857e0c1fa44a4927eeb5db4a800c34509.png)

---

<div class="post-metadata">

**Author:** ![Menel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/menel/32/21732_2.png) [@Menel](https://forums.plex.tv/u/Menel)\
**Post date:** [December 29, 2024, 6:33pm UTC](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782/11 "2024-12-29T18:33:46Z")

</div>

Correct. This is known and intended behavior. Hardware access to GPU is blocked by flat/snap sandboxing. Stop using flat/snap.

Use APT or Docker if you want full features and control.

---

<div class="post-metadata">

**Author:** ![mike9868](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@mike9868](https://forums.plex.tv/u/mike9868)\
**Post date:** [December 30, 2024, 9:20am UTC](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782/12 "2024-12-30T09:20:47Z")

</div>

This is not really true, both support hardware acceleration and it works just fine for other applications. As for using docker or deb packages, I think your are talking about the server side. To my knowledge there are no deb packages for the client side.

---

<div class="post-metadata">

**Author:** ![rcork](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/rcork/32/4386_2.png) [@rcork](https://forums.plex.tv/u/rcork)\
**Post date:** [January 9, 2025, 5:08pm UTC](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782/13 "2025-01-09T17:08:58Z")

</div>

Installed 1.106.0 this morning and HW acceleration still not working on 8th gen intel. Can we just get a native .deb package so we can troubleshoot without the sandboxing. MPV works just fine playing back my 4K movies but Plex on the same machine brings the system to it’s knees.

---

<div class="post-metadata">

**Author:** ![Menel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/menel/32/21732_2.png) [@Menel](https://forums.plex.tv/u/Menel)\
**Post date:** [January 14, 2025, 12:07pm UTC](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782/14 "2025-01-14T12:07:35Z")

</div>

…? It’s available in all the normal places. On the website: [https://www.plex.tv/media-server-downloads](https://www.plex.tv/media-server-downloads)

Or via plex repository: [https://support.plex.tv/articles/235974187-enable-repository-updating-for-supported-linux-server-distributions/](https://support.plex.tv/articles/235974187-enable-repository-updating-for-supported-linux-server-distributions/)

Or via docker from plexinc: [https://hub.docker.com/r/plexinc/pms-docker/](https://hub.docker.com/r/plexinc/pms-docker/)

---

<div class="post-metadata">

**Author:** ![rcork](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/rcork/32/4386_2.png) [@rcork](https://forums.plex.tv/u/rcork)\
**Post date:** [January 14, 2025, 1:44pm UTC](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782/15 "2025-01-14T13:44:13Z")

</div>

Not the server. The client.

---

<div class="post-metadata">

**Author:** ![ranger671](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ranger671/32/330200_2.png) [@ranger671](https://forums.plex.tv/u/ranger671)\
**Post date:** [January 14, 2025, 3:37pm UTC](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782/16 "2025-01-14T15:37:17Z")

</div>

I am seeing the same thing. Additionally, I see more cpu utilization in flatpak by comparison to the snap, but not so much to indicate that HW acceleration is functional in one but not the other.

---

<div class="post-metadata">

**Author:** ![mike9868](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@mike9868](https://forums.plex.tv/u/mike9868)\
**Post date:** [January 23, 2025, 1:39pm UTC](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782/17 "2025-01-23T13:39:08Z")

</div>

Ok, I found the issue why hardware decoding is not working with flatpaks. The culprit is that the startup shell script in the flatpak sets the LIBVA\_DRIVERS\_PATH to something which ONLY exists in a snap. As a result the drivers are not being found.  
To fix this issue you can do the following.

- Install the flatpak for your user and not system, this makes it easier to change the files
- Open “~/.local/share/flatpak/app/tv.plex.PlexDesktop/current/active/files/bin/Plex” with an editor and comment line 40 which sets the LIBVA\_DRIVERS\_PATH

If you then start the plex flatpak, hardware decoding will work again. Please note, this change needs to be done again once the application is updated.

I do hope that someone from plex reads this and makes the change in the file so editing it manually is not required.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [January 23, 2025, 7:08pm UTC](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782/18 "2025-01-23T19:08:34Z")

</div>

@mike9868

Thank you for the report and the investigation.

I’ve taken your findings and submitted to Engineering as written 🙂

The Triage meeting will review and assign to the project team.

---

<div class="post-metadata">

**Author:** ![mike9868](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@mike9868](https://forums.plex.tv/u/mike9868)\
**Post date:** [January 23, 2025, 9:38pm UTC](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782/19 "2025-01-23T21:38:58Z")

</div>

Thanks,

I guess the most straight forward fix is to only set it, if the snap variable is set in the first place, but deleting the line in the flatpak was the quick way to test it

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [January 23, 2025, 11:20pm UTC](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782/20 "2025-01-23T23:20:28Z")

</div>

@mike9868

There’s internal discussion on this already.  
I expect, based on the discussion, in conjunction with your findings, for a prompt fix.

---

<div class="post-metadata">

**Author:** ![mike9868](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@mike9868](https://forums.plex.tv/u/mike9868)\
**Post date:** [January 28, 2025, 8:01pm UTC](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782/21 "2025-01-28T20:01:05Z")

</div>

I just installed the latest update made the change again but HW decoding is not being used.

Update: A reboot fixed this issue, but even with HW decoding working watching 4K movies is impossible

[Next page](https://forums.plex.tv/t/hw-accel-broken-for-flatpak/886782.md?page=2)
