Page 1 of 1

Raspbian: Pulseaudio tcp connection randomly hangs

Posted: Tue Dec 26, 2017 4:09 pm
by peter_b
Running RPi (Model B) on Raspbian Stretch as pulseaudio-server, connected to speakers.
Everything works like a charm, but every now and then the audio playback just stops:
The client playback applications (audio/video player - even youtube) just stop as if someone had hit "pause". When I kill/restart the pulseaudio daemon, it works again. For a short while...

For debugging, I'm now running pulseaudio in the foreground with debug output:

Code: Select all

$ pulseaudio --start --system=false --daemonize=no -vvvv
Getting the following messages that indicate something's not as flawless as it should be:
I: [alsa-sink-bcm2835 ALSA] alsa-sink.c: Underrun!
I: [alsa-sink-bcm2835 ALSA] alsa-sink.c: Increasing minimal latency to 2,00 ms
D: [alsa-sink-bcm2835 ALSA] alsa-sink.c: Latency set to 24,99ms
D: [alsa-sink-bcm2835 ALSA] alsa-sink.c: hwbuf_unused=126668
D: [alsa-sink-bcm2835 ALSA] alsa-sink.c: setting avail_min=32110
D: [alsa-sink-bcm2835 ALSA] alsa-sink.c: Latency set to 24,99ms
D: [alsa-sink-bcm2835 ALSA] alsa-sink.c: hwbuf_unused=126668
D: [alsa-sink-bcm2835 ALSA] alsa-sink.c: setting avail_min=32110
I: [alsa-sink-bcm2835 ALSA] alsa-sink.c: Scheduling delay of 20,03 ms > 14,96 ms, you might want to investigate this to improve latency...
I: [alsa-sink-bcm2835 ALSA] alsa-sink.c: Underrun!
To be continued...


Links: