Cannot use mpv in X if a Wayland compositor is running in another VT.
I was testing out mpv in Weston on another VT, which worked wonderfully. I CTRL+ALT+F1'd back to X and tried to play mpv there for a moment, while Weston was still running. I got this:
Playing: [Filename Redacted].mkv
[stream] Video (+) --vid=1 'H.264 720p BD' (h264)
[stream] Audio (+) --aid=1 --alang=jpn (*) 'AAC LC 2.0 200Kbps' (aac)
[stream] Subs (+) --sid=1 --slang=eng (*) 'Styled Subtitles' (ass)
File tags:
TITLE: [Title Redacted]
wl_drm@20: error 0: authenicate failed
[vo/opengl] OpenGL context creation failed!
Segmentation fault
After exiting Weston and switching back to X, mpv worked again. I guess if authentication fails, it doesn't try to use the X backend?
Also, curiously, there is a typo in that authentication error. It says "authenicate".
I can confirm this, exact same problem for me.
In the config file specify a backend for the opengl output.
vo=opengl-hq:backend=x11
wl_drm@20: error 0: authenicate failed
Thats an error from the wayland library:
Commit: 593e5e4a25812662478d830e1effbc1bb5f3b97e should fix this but note that it executes vdpau after opengl.
Does it work like expected now? I will close this issue. If there are still some questions or problems feel free to comment and to reopen this issue.
Woah, that was unexpected. I have the same problem on debian unstable with mpv version 0.20.0-1+b1 and weston 1.11.0-1 running. Fortunately killing the weston sesssion fixes this problem.
Playing: <any file>
(+) Video --vid=1 (*) (h264)
(+) Audio --aid=1 --alang=und (*) (aac)
wl_drm@15: error 0: authenicate failed
Segmentation fault