How to Fix Audio Issues When Remotely Playing a DVD Over SSH?

0
9
Asked By TechyTurtle99 On

I'm using a laptop with Debian and Cage, and I want to play a DVD using mpv over SSH. When I run the command `WAYLAND_DISPLAY=wayland-0 mpv dvdnav:// --fs` remotely, the video displays fine, but I'm running into audio problems. I have PipeWire drivers, and my audio is connected to a Bluetooth speaker. Locally, everything works great, but when I try it over SSH, I get several errors related to `XDG_RUNTIME_DIR`. It says it's invalid or not set, and I also see that audio driver 'pulse' fails to initialize, resulting in no sound. How can I resolve these issues?

1 Answer

Answered By SoundWaveMaster On

It looks like you need to set the `XDG_RUNTIME_DIR` variable properly. Typically, it should be set to `/run/user/$UID`. You can do this in your SSH session by running `export XDG_RUNTIME_DIR=/run/user/$(id -u)` before starting mpv. It's strange that it wasn't set up correctly in the first place, especially since Wayland is working. Give that a try and see if it helps!

CuriousCoder77 -

Thanks for the tip! Where exactly should I set this variable in my SSH connection?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.