PipeWire interferes working PulseAudio
Pulseaudio randomly losing ALSA devices (after it browsers and video players stopping play video).
After restarting Pulseaudio I always see the same picture in the gnome control center (only Dummy Output available)
Bluetooth devices could work at this time. (because bluetooth devices work via PulseAudio without ALSA) The players which work with ALSA directly (for example DeadBeef) they are could play music via ALSA devices.
I filled bugreport for PulseAudio, but we found out that the cause of the problem is that PipeWire has exclusive access to ALSA devices.
$ sudo lsof /dev/snd/* lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs Output information may be incomplete. lsof: WARNING: can't stat() fuse file system /run/user/1000/doc Output information may be incomplete. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME alsactl 1210 root 4r CHR 116,9 0t0 17609 /dev/snd/controlC0 alsactl 1210 root 5r CHR 116,14 0t0 20989 /dev/snd/controlC1 pulseaudi 2462 mikhail 18u CHR 116,9 0t0 17609 /dev/snd/controlC0 pulseaudi 2462 mikhail 23u CHR 116,9 0t0 17609 /dev/snd/controlC0 pulseaudi 2462 mikhail 24u CHR 116,9 0t0 17609 /dev/snd/controlC0 pulseaudi 2462 mikhail 25u CHR 116,14 0t0 20989 /dev/snd/controlC1 pipewire 5578 mikhail 16u CHR 116,1 0t0 22782 /dev/snd/seq pipewire 5578 mikhail 21u CHR 116,1 0t0 22782 /dev/snd/seq
I am unable to remove PipeWire, because PipeWire integrated deeply with system.
So I am here for the problem solution:
- How to disable Pipeware exclusive access to ALSA devices (I don't know how to do this)
- Completely replacing PulseAdio with Pipewire. It means Pipewire could transparently capture all audio stream from applications which send audio streams to PulseAudio.
$ pipewire --version pipewire Compiled with libpipewire 0.2.96 Linked with libpipewire 0.2.96
P.S. I found the application which trigger
/dev/snd/seq capture by pipewire. This is Telegram desktop.