You are not logged in.

#1 2025-05-30 20:47:09

beroal
Member
From: Ukraine
Registered: 2009-06-07
Posts: 384
Website

Need to switch the sound card off and on to make PulseAudio play

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

#2 2025-05-30 21:13:00

Xephon
Member
Registered: 2024-12-22
Posts: 189

Re: Need to switch the sound card off and on to make PulseAudio play

PulseAudio is outdated and deprecated. Remove it, install pipewire-pulse

Offline

#3 2025-06-03 13:44:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,960

Re: Need to switch the sound card off and on to make PulseAudio play

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 pulseaudio

Offline

Board footer

Powered by FluxBB