# Testing Linux EGL

**URL:** <https://forums.plex.tv/t/testing-linux-egl/776726>\
**Category:** Plex Players\
**Tags:** plex-htpc\
**Created:** [February 16, 2022, 3:28pm UTC](https://forums.plex.tv/t/testing-linux-egl/776726 "2022-02-16T15:28:33Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![LudvigH](https://avatars.discourse-cdn.com/v4/letter/l/c68b51/32.png) [@LudvigH](https://forums.plex.tv/u/LudvigH)\
**Post date:** [February 24, 2022, 6:03pm UTC](https://forums.plex.tv/t/testing-linux-egl/776726/21 "2022-02-24T18:03:40Z")

</div>

I remember I had this issue a bit on the arch package, but I don’t remember exactly what I did to fix it.

One thing you could try is setting `gpu-context=x11egl` in `~/snap/plex-htpc/common/mpv.conf` (you have to create the file and add the line) and see if that makes any difference maybe?

On another note I managed to fix my HW acceleration issues I previously had when trying to reproduce this (ref: [Testing Linux EGL - #8 by LudvigH](https://forums.plex.tv/t/testing-linux-egl/776726/8#main-setup-intel-graphics-on-gnome-wayland-2))

When running on XWayland intel only, I noticed this error:

```auto
ERROR - [MPVEngine/mpv] libmpv_render/vaapi-egl/vaapi: libva: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)

```

And setting `LIBVA_DRIVER_NAME=iHD` manually seems to fix it and libva correctly loads the driver. I now get the desired output (`Hardware decoding: vaapi (vaapi-egl)`).

So it seems there are some issues with auto-detecting the graphics device and selecting the correct driver.

For reference. My complete env to get this working is:  
`DISABLE_WAYLAND=1 QT_XCB_GL_INTEGRATION=xcb_egl LIBVA_DRIVER_NAME=iHD snap run plex-htpc`

---

<div class="post-metadata">

**Author:** ![e10kstarfire](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/e10kstarfire/32/259675_2.png) [@e10kstarfire](https://forums.plex.tv/u/e10kstarfire)\
**Post date:** [March 1, 2022, 10:15pm UTC](https://forums.plex.tv/t/testing-linux-egl/776726/22 "2022-03-01T22:15:21Z")

</div>

> [@gbooker02](#):
>
> Maybe your OS GL is incompatible with the libraries in the snap or perhaps something else is going on

What OS would you recommend ? |'m on Linux Mint

---

<div class="post-metadata">

**Author:** ![gbooker02](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/gbooker02/32/9726_2.png) [@gbooker02](https://forums.plex.tv/u/gbooker02)\
**Post date:** [March 2, 2022, 4:45pm UTC](https://forums.plex.tv/t/testing-linux-egl/776726/23 "2022-03-02T16:45:52Z")

</div>

Snaps likely work the best on Ubuntu (since that’s the target for compilation). I wonder if you could test this in a Live disk so you don’t have to install anything and effectively test the hardware with this distro.

---

<div class="post-metadata">

**Author:** ![e10kstarfire](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/e10kstarfire/32/259675_2.png) [@e10kstarfire](https://forums.plex.tv/u/e10kstarfire)\
**Post date:** [March 2, 2022, 5:03pm UTC](https://forums.plex.tv/t/testing-linux-egl/776726/24 "2022-03-02T17:03:02Z")

</div>

I’ll install Ubuntu then, no issue overwriting the current OS as it’s only there for Plex.

---

<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:** [March 3, 2022, 9:03am UTC](https://forums.plex.tv/t/testing-linux-egl/776726/25 "2022-03-03T09:03:07Z")

</div>

Is there an ETA for the inclusion of the `radeonsi_drv_video.so` lib? (or is it something the devs are looking into?) As far as I can tell the new (Plex HTPC V1.12) snap does not ship the lib and therefore no AMD hwdec.

---

<div class="post-metadata">

**Author:** ![Mogul345](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@Mogul345](https://forums.plex.tv/u/Mogul345)\
**Post date:** [March 5, 2022, 10:18pm UTC](https://forums.plex.tv/t/testing-linux-egl/776726/26 "2022-03-05T22:18:23Z")

</div>

- What GPU are you using?
  - Intel Comet Lake UHD Graphics

- Which drivers (particularly those with Nvidia GPUs and whether they are the proprietary or OSS drivers)?
  - Mesa 21.2.6

- When you launched with the environment variable set, did the UI display and work?
  - Yes

- Did playback work (both cases)?
  - Yes

- Did you get the expected values for the hardware decoding?
  - Yes

Here’s the output of `glxinfo -B`:

```auto
name of display: :0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) UHD Graphics (CML GT2) (0x9bca)
    Version: 21.2.6
    Accelerated: yes
    Video memory: 3072MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics (CML GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 21.2.6
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 21.2.6
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.2.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

```

Seems to work as expected, not sure if either one performs better than the other though. Using Plex HTPC v 1.12.

---

<div class="post-metadata">

**Author:** ![VXXii](https://avatars.discourse-cdn.com/v4/letter/v/34f0e0/32.png) [@VXXii](https://forums.plex.tv/u/VXXii)\
**Post date:** [May 10, 2022, 5:24pm UTC](https://forums.plex.tv/t/testing-linux-egl/776726/28 "2022-05-10T17:24:21Z")

</div>

1. _What GPU are you using?_  
NVIDIA GP107 [GeForce GTX 1050 Ti]

2. _Which drivers (particularly those with Nvidia GPUs and whether they are the proprietary or OSS drivers)?_  
proprietary 470.103.01

3. _When you launched with the environment variable set, did the UI display and work?_  
No

4. _Did playback work (both cases)?_  
regular launch worked, using env. variables yielded black screen.

5. _Did you get the expected values for the hardware decoding?_  
in the first case I expected it, but got Hardware Decoding: no (?) -in the second case, black screen with no debug overlay

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [August 8, 2022, 5:24pm UTC](https://forums.plex.tv/t/testing-linux-egl/776726/29 "2022-08-08T17:24:40Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

[Previous page](https://forums.plex.tv/t/testing-linux-egl/776726.md?page=1)
