You are not logged in.
Hi. For a long time, I used PulseAudio in the system-wide mode. (With my pulseaudio-central package if anybody is curious.) Recently, I switched to the standard configuration. Since then, I have a problem every time I start Sway. After Sway has started, audio programs freeze or terminate. For example, here is the output of mpv:
● Audio --aid=1 (mp3 2ch 48000 Hz 145 kbps)
[ao/pulse] The stream is suspended. Bailing out.
[ao] Failed to initialize audio driver 'pulse'
Could not open/initialize audio device -> no sound.
Audio: no audio
Exiting... (Errors when loading file)pavucontrol-qt shows that PulseAudio is working. If I switch the sound card off and on on the Configuration tab of pavucontrol-qt, programs start playing sound.
we are not condemned to write ugly code
Offline
PulseAudio is outdated and deprecated. Remove it, install pipewire-pulse
Offline
That will likely run into the same underlying issue, unless the cause is an actual conflict between wireplumber and pulse.
Are the user services running when doing this? Is your user session in general started correctly?
printenv | grep DBUS
systemctl --user status pipewire{,-pulse} wireplumber pulseaudioOffline