Output on sink stops after 1-2s; pactl subscribe spam; consistent CPU load
Version, Distribution, Desktop Environment: 0.3.31, Arch, i3
Update: It somehow didn't occur to me to test this with pulseaudio alone, but that also didn't work, so it's seemingly not a pipewire issue. Maybe you can help me debug it regardless?
I just set up pipewire on this machine today. It has a USB audio interface and a standard 3.5mm speaker plug. When I switch the default sink in pavucontrol (or with pactl) to use my audio interface, which has my headphones plugged in, I only hear sound for 1-2s and then nothing. Monitoring the volume meter in pavucontrol does not show any signs of the output stopping, however.
The same interface worked just fine on a different machine.
Furthermore, I noticed that I have quite consistently 30% CPU usage on pipewire
and pipewire-pulse
, while pactl subscribe
is spammed with events like these:
Event 'new' on client #65
Event 'new' on client #64
Event 'remove' on client #62
Event 'remove' on client #64
Event 'remove' on client #65
Event 'new' on client #65
Event 'new' on client #64
Event 'remove' on client #65
Event 'remove' on client #64
Event 'new' on client #65
Event 'remove' on client #65
Event 'new' on client #65
Event 'new' on client #64
Event 'remove' on client #65
Event 'remove' on client #64
Event 'new' on client #64
The pipewire
logs are spammed with connection problems (except from the last 5s)
Jul 12 13:16:10 dracaena pipewire[1469921]: connection 0x55c393e31c10: could not recvmsg on fd:56: Connection reset by peer
Jul 12 13:16:10 dracaena pipewire[1469921]: protocol-native 0x55c393cd94d0: client 0x55c393dd3be0 error -104 (Connection reset by peer)
Jul 12 13:16:11 dracaena pipewire[1469921]: connection 0x55c393e31c10: could not recvmsg on fd:56: Connection reset by peer
Jul 12 13:16:11 dracaena pipewire[1469921]: protocol-native 0x55c393cd94d0: client 0x55c393dd3be0 error -104 (Connection reset by peer)
Jul 12 13:16:11 dracaena pipewire[1469921]: connection 0x55c393e31c10: could not recvmsg on fd:56: Connection reset by peer
Jul 12 13:16:11 dracaena pipewire[1469921]: protocol-native 0x55c393cd94d0: client 0x55c393dd3be0 error -104 (Connection reset by peer)
Jul 12 13:16:13 dracaena pipewire[1469921]: connection 0x55c393e31c10: could not recvmsg on fd:56: Connection reset by peer
Jul 12 13:16:13 dracaena pipewire[1469921]: protocol-native 0x55c393cd94d0: client 0x55c393dd3be0 error -104 (Connection reset by peer)
Jul 12 13:16:14 dracaena pipewire[1469921]: connection 0x55c393e31c10: could not recvmsg on fd:56: Connection reset by peer
Jul 12 13:16:14 dracaena pipewire[1469921]: protocol-native 0x55c393cd94d0: client 0x55c393dd3be0 error -104 (Connection reset by peer)
Jul 12 13:16:15 dracaena pipewire[1469921]: connection 0x55c393dd8940: could not recvmsg on fd:57: Connection reset by peer
Jul 12 13:16:15 dracaena pipewire[1469921]: protocol-native 0x55c393cd94d0: client 0x55c393dd3be0 error -104 (Connection reset by peer)
Jul 12 13:16:15 dracaena pipewire[1469921]: connection 0x55c393e31c10: could not recvmsg on fd:56: Connection reset by peer
Jul 12 13:16:15 dracaena pipewire[1469921]: protocol-native 0x55c393cd94d0: client 0x55c393dd3be0 error -104 (Connection reset by peer)
while the pipewire-pulse
logs don't show consistent problems
Jul 12 12:38:39 dracaena systemd[680]: Started PipeWire PulseAudio.
Jul 12 12:40:09 dracaena pipewire-pulse[483400]: client 0x556d51285fe0 [Firefox]: stream 0x556d5128ace0 UNDERFLOW channel:0 offset:33193984 underrun:16384
Jul 12 12:56:33 dracaena systemd[680]: Stopping PipeWire PulseAudio...
Jul 12 12:56:33 dracaena systemd[680]: Stopped PipeWire PulseAudio.
Jul 12 12:56:33 dracaena systemd[680]: pipewire-pulse.service: Consumed 4min 57.278s CPU time.
Jul 12 12:56:33 dracaena systemd[680]: Started PipeWire PulseAudio.
Jul 12 12:57:37 dracaena systemd[680]: Stopping PipeWire PulseAudio...
Jul 12 12:57:37 dracaena systemd[680]: Stopped PipeWire PulseAudio.
Jul 12 12:57:37 dracaena systemd[680]: pipewire-pulse.service: Consumed 32.159s CPU time.
Jul 12 12:57:37 dracaena systemd[680]: Started PipeWire PulseAudio.
Jul 12 13:05:31 dracaena pipewire-pulse[953639]: connection 0x561782e181a0: could not recvmsg on fd:26: Connection reset by peer
Jul 12 13:05:31 dracaena pipewire-pulse[953639]: connection 0x561782c962f0: could not recvmsg on fd:29: Connection reset by peer
Jul 12 13:05:31 dracaena pipewire-pulse[953639]: connection 0x561782c06aa0: could not recvmsg on fd:32: Connection reset by peer
Jul 12 13:06:39 dracaena systemd[680]: Stopping PipeWire PulseAudio...
Jul 12 13:06:39 dracaena systemd[680]: Stopped PipeWire PulseAudio.
Jul 12 13:06:39 dracaena systemd[680]: pipewire-pulse.service: Consumed 4min 6.543s CPU time.
Jul 12 13:06:39 dracaena systemd[680]: Started PipeWire PulseAudio.
Jul 12 13:10:43 dracaena systemd[680]: Stopping PipeWire PulseAudio...
Jul 12 13:10:43 dracaena systemd[680]: Stopped PipeWire PulseAudio.
Jul 12 13:10:43 dracaena systemd[680]: pipewire-pulse.service: Consumed 1min 29.946s CPU time.
Jul 12 13:10:43 dracaena systemd[680]: Started PipeWire PulseAudio.
If there is anything more I can provide, feel very free to ask. I can also try git master. Which AUR packages would I need to that? All packages for which I installed the non-git version?