Ubuntu – Audio stuttering in Ubuntu 18.04

18.04sound

I installed Ubuntu 18.04 in my HP Pavilion laptop but the audio is stuttering when I play YouTube or offline audio. I have tried changes in PulseAudio and Alsamixer but nothing seems to work.

When I type:

:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC3241 Analog [ALC3241 Analog]
  Subdevices: 1/1

This is what I get.

I have tried the following but none of it seems to work:

Best Answer

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:

  1. Turn off realtime scheduling - edit /etc/pulse/daemon.pa (I had /etc/pulse/daemon.conf):
; realtime-scheduling = yes
realtime-scheduling = no
  1. Restart pulseaudio:
pulseaudio --kill
pulseaudio --start

Original solution from https://fitzcarraldoblog.wordpress.com/2017/04/20/stuttering-audio-in-linux-pulseaudio-strikes-again/

Related Question