pipewire-pulse sometimes switches to "Unknown output" when using outputs of external monitors
- PipeWire version (
pipewire --version
):
pipewire
Compiled with libpipewire 0.3.59
Linked with libpipewire 0.3.59
- Distribution and distribution version (
PRETTY_NAME
from/etc/os-release
): Arch Linux - Desktop Environment: sway
- Kernel version (
uname -r
): 6.0.2-zen1-1-zen
Description of Problem:
Sometimes I manually use pavucontrol
to switch mpv
's audio output to external monitors (HDMI). It plays fine until a restart, which would cause it to hang on startup or play without audio. If it's stuck, simply opening pavucontrol
or alike makes it play (get the right output). The latter would show as "Unknown output" and requires me to change it to a proper output manually.
It seems like pipewire#579 (closed), but this one doesn't involve a BT device, rather a external monitor.
Steps to Reproduce:
- Start mpv, use
pavucontrol
or alike to switch to external monitor's output (plays fine) - Restart mpv (now it has no audio)
- Check the output in
pavucontrol
(shows "Unknown output") - Choose a output (plays fine again)
Or
- Restart mpv (stuck on startup, no window)
- Open
pavucontrol
(mpv opens and plays)
Expected Results:
mpv gets correct output every time on startup
Update
It's not restricted to a restart nor mpv, but to any application trying to use the output of the external monitor.
Edited by Mike Yuan