Wayland + NVIDIA update for HTPC Linux

Server Version#: 1.40.3.8555
Player Version#: 1.64.0.170-84278903
Hello, I have a Linux machine with an NVIDIA GPU running a Wayland desktop environment and thankfully NVIDIA drivers are finally improving to the point where former issues are theoretically fixable. In particular, I’ve run into the infamous flickering screen effect running the flatpak version of Plex HTPC in fullscreen, which is supposedly fixable with their most recent driver release allowing explicit sync. Being totally honest a lot of this goes over my head, but I do have the latest drivers and am not sure if the fix needs to be implemented on the development side. I was wondering if this was on anybody’s radar, and if a fix in the near future was likely?

Edit Update:
Ok I was digging around and found an error message that may be related:

ERROR - Failed to create wl_display (No such file or directory)
INFO - Could not load the Qt platform plugin "wayland" in "/app/bin/../plugins/platforms:" even though it was found.

Hopefully that is useful, it seems that the Qt wayland libraries are just failing to load for some reason.

Update 2:
Ok found another post with some helpful insight. I overlooked the flatpak permissions, it was set to default to X11, that said, with the setting changed, it crashes immediately when launching like the other poster. My OS log is the following:

User Logs:
ERROR:gles2_cmd_decoder.cc(10716)] [.WebGL-0x55ab1ddb80e0]RENDER WARNING: there is no texture bound to the unit 1
ERROR:gles2_cmd_decoder.cc(10716)] [.WebGL-0x55ab1ddb80e0]RENDER WARNING: there is no texture bound to the unit 1
ERROR:gles2_cmd_decoder.cc(10716)] [.WebGL-0x55ab1ddb80e0]RENDER WARNING: there is no texture bound to the unit 1
ERROR:gl_context_egl.cc(277)] eglCreateContext failed with error EGL_BAD_CONTEXT
ERROR:gpu_channel_manager.cc(771)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
ERROR:gl_context_egl.cc(277)] eglCreateContext failed with error EGL_BAD_CONTEXT
ERROR:gpu_channel_manager.cc(771)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
ERROR:gl_context_egl.cc(277)] eglCreateContext failed with error EGL_BAD_CONTEXT
ERROR:gpu_channel_manager.cc(771)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
ERROR:gl_context_egl.cc(277)] eglCreateContext failed with error EGL_BAD_CONTEXT
ERROR:gpu_channel_manager.cc(771)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub

My plex logs that (I think) are relevant:

DEBUG - [MPVEngine/mpv] libmpv_render/vaapi-egl: using VAAPI EGL interop
DEBUG - [MPVEngine/mpv] libmpv_render/vaapi-egl: Trying to open a x11 VA display...
DEBUG - [MPVEngine/mpv] libmpv_render/vaapi-egl: Trying to open a drm VA display...
DEBUG - [MPVEngine/mpv] libmpv_render/vaapi-egl: Could not create a VA display.
DEBUG - [MPVEngine/mpv] libmpv_render: Loading failed.
DEBUG - [MPVEngine/mpv] libmpv_render: Loading hwdec driver 'cuda-nvdec'
DEBUG - [MPVEngine/mpv] libmpv_render: Loading failed.
DEBUG - [MPVEngine/mpv] libmpv_render: Loading hwdec driver 'drmprime-drm'
DEBUG - [MPVEngine/mpv] libmpv_render/drmprime-drm: Failed to retrieve DRM fd from native display.
DEBUG - [MPVEngine/mpv] libmpv_render: Loading failed.
DEBUG - Executed command '["stop",]'

To also preemptively post, I’m using NVIDIA proprietary drivers, my NVIDIA driver version is: 555.58.02, CUDA Version: 12.5, sudo cat /sys/module/nvidia_drm/parameters/modeset returns Y, so I believe there’s nothing wrong with my system (recently performed a clean install, so it should be pretty fresh). First thought was to try “releasing the floodgates” in Flatseal and make sure that there was nothing important being blocked, but it still crashed. Truth be told, like I said originally this is reaching the limits of what I understand about Linux, so any help would be appreciated.

I was hoping 555.58.02would finally see me move to wayland, however I also could not get the plex desktop app to work and upon checking some other video players I found gnome videos, mpv and vlc cannot play x.265 encoded video so I just switched back to x11 which all works flawlessly.

IMO, 555.58.02 is a step forward but its only a step. Dispite what many folks would make you believe, its just not ready and certain apps just don’t work well or at all. I’d say it’ll take a few more iterations of the nvidia drivers before things truly get stable. X11 will be around for a while yet :slight_smile:

Yeah, I’ve mostly had good luck, but I fear you’re right. I’m looking forward to the day I won’t have to think about it, but for now I’ll probably just get a backup X11 DE for when I need it.

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