Audio stuttering in Ubuntu 18.04
In my case (ubuntu 18.04 on alienware m15 laptop) the sound stuttered and glitched randomly with any sound source. Disabling the Wi-Fi is not an option for me, I have stumbled upon a blog post that suggests the problem is in pulseaudio's realtime-scheduling
setting, solution from there helped me fix the problem:
- Turn off realtime scheduling - edit
/etc/pulse/daemon.pa
(I had/etc/pulse/daemon.conf
):
; realtime-scheduling = yes
realtime-scheduling = no
- Restart pulseaudio:
pulseaudio --kill
pulseaudio --start
Original solution from https://fitzcarraldoblog.wordpress.com/2017/04/20/stuttering-audio-in-linux-pulseaudio-strikes-again/
This turns out to be a bug as suggested by GoodGuyNick in the question comments. The workaround is to disable WiFi when not in use.