You are not logged in.
Hi everyone, I'm having trouble with audio output on my laptop that uses PipeWire and WirePlumber. My setup includes a monitor with a 3.5mm audio jack connected via HDMI. In pavucontrol, I've selected the profile "Digital Stereo (HDMI) out + Analog Stereo Input" to route audio output through HDMI. Recently I've been experiencing frequent issues where the audio output automatically switches to the laptop’s built-in speakers. I can manually switch it back to HDMI via pavucontrol, and sometimes it switches back to the HDMI output on its own. The logs in journalctl during these switching events are as follows:
Sep 07 22:47:04 ***hostname*** pipewire[1082]: pw.node: (alsa_output.pci-0000_00_1f.3.analog-stereo-105) graph xrun not-triggered (0 suppressed)
Sep 07 22:47:04 ***hostname*** pipewire[1082]: pw.node: (alsa_output.pci-0000_00_1f.3.analog-stereo-105) xrun state:0x761329425008 pending:2/3 s:0 a:0 f:0 waiting:0 process:0 status:triggered
Does anyone have suggestions on how to fix this?
Offline
This doesn't really solve the problem, but you can run this one-liner at startup as a temporary fix until you do find a real solution.
while : ;do pacmd set-default-sink <n> ;sleep 10m ;done
Replace <n> with the index number of the HDMI device which can be found with "pacmd list-sinks". Also maybe replace the duration of the sleep command with whatever seems suitable for your situation.
if [[ $yourProblem = "fixed" ]] ;then
sed -i 's/Title/[SOLVED] Title/g' your.thread | please --thank-you
fi
Offline
Julia: Thanks for the reply. Since I'm using pipewire, there is no `pacmd` command. I tried `pactl list sinks` instead, but found that there was always only one sink listed, and each time the switching happened, the sink id will increase (from 272 to 299, and then to 451, for example).
Offline
Coming here to say I have the same issue. Only built-in speakers work by default, even when another device is selected for the default sink. Pipewire, wireplumper, pipewire-pulse all report the correct device as the default sink, however its never used, unless I manually select the right device for an application.
Offline