Testing Linux EGL

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)

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

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

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

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.

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

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.

1 Like
  • 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:

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.

  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

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