2026-11-08 19:03 UTC
I tried for literally an hour or so to redirect mpv’s output from host A (laptop) to host B (phone/termux) using all conceivable combinations and variations of
cat /dev/tty1
cat /dev/tty1 > /dev/pts/0
cat /proc/[pid]/fd/[1-3]
And adding 2>&1 to the above for good measure, but also the program reptyr and simply kill -STOP [pid] kill -CONT [pid] to absolutely no avail, so here’s a picture. Please forgive my lazy ass.
ao at the bottom.
Replies (1)
-
@balsoft@lemmy.ml 2026-11-08 19:50
Aha, ok, so it’s using pipewire when logged in locally, and it can’t find it when using it remotely. Can you try logging in via ssh again and checking if there’s a /run/user/$UID/pipewire-0 (or other pipewire- sockets)? If there isn’t, that means your pipewire service isn’t running, you can try starting it with systemctl --user start pipewire wireplumber. You may need a loginctl enable-linger $USER and a re-login for that to work. If/once that socket is there, you may need to export XDG_RUNTIME_DIR=/run/user/$uid so that mpv can find the socket. You should probably do that in your .profile so it’s set automatically.