After the latest update, videos wouldn’t play and testing the sound device in the sound settings would prompt errors in the journal, saying that the audio sink was suspended:
Mär 18 20:21:19 Empy2023 pulseaudio[1571]: Failed to create sink input: sink is suspended.
Mär 18 20:21:19 Empy2023 pulseaudio[1571]: Failed to create sink input: sink is suspended.
Mär 18 20:21:19 Empy2023 pulseaudio[1571]: Failed to create sink input: sink is suspended.
Mär 18 20:21:19 Empy2023 gnome-control-c[2266]: Failed to play sound: Invalid state
Re-plugging my USB sound card worked, but only for a short time.
Yes, sorry about that. It was an unnerving two hours hunting this one down. I meant the first answer, which describes how to solve the problem by disabling suspend-to-idle by commenting out the line
load-module module-suspend-on-idle
in the file /etc/pulse/default.pa with a leading #. Instead of restarting the service I just rebooted my system.
I strongly suspect that pipewire and pulseaudio are running at the same time. If pipewire puts the sound to sleep, pulseaudio will not be able to wake it up, at the same time pulseaudio blocks pipewire from waking up the audio device.
Result: it won’t wake up.
Sure your solution helps, but doubt it solves the core problem. Decide: pipewire or pulseaudio. Can you share that to confirm?
Well, I’ve had some time now and I think I managed to resolve them. At least the PulseAudio service is gone and everything seems to work for now. Thanks for pointing me in that direction.