* Home :: Get a random password :: Get a multi-word password :: What is my IP? (v4 | v6)
* My projects

Pulseaudio is disabling the device/sink (too quickly)

Tags: howto,sound

Date: 20240910


I have now encountered this on several versions of both Fedora and Debian. So what basically happens is that very shortly after a sound is made Pulseaudio disabled the audio device.
This is probably done for power management reasons, but I observed it also on PCs/workstations that have no issues with power usage.
It's a very annoying thing to happen because then for any notification the device/sink needs to "wake up" to play the sound and if it's a short one (as they usually are), then all you'll hear is a garbled up sound instead of the notification.

Fixing this issues is however quite easy, we just need to stop Pulseaudio from suspending the device/sink on idle. It's easily done, just comment out "load-module module-suspend-on-idle" in /etc/pulse/default.pa and restart pulseaudio:


sed -i 's/^load-module module-suspend-on-idle/#&/g' /etc/pulse/default.pa && killall pulseaudio
        


(c)The Nux(tm) ;-)

No CSS, no Javascript, no some HTML.
No ads, no tracking, no cookies.


Optimised for Dillo browser, great in Lynx, too :)