15

I have a little Sony VAIO P series computer on which is installed Ubuntu 15.10 running LXDE. I've found that all audio played on the device is choppy, everything from MP4 videos played on VLC, to Skype, to Festival, is choppy. Here is a sound recording to illustrate:

https://clyp.it/vp1j2q2j

From aplay -l, I can see that the hardware playback device is HDA Intel MID ALC275. What could be going wrong and how could I try to fix it?

5

6 Answers 6

24

Edit the file /etc/pulse/default.pa.

Find the following line:

load-module module-udev-detect

Change the line to the following:

load-module module-udev-detect tsched=0

Restart PulseAudio:

pulseaudio -k

Should do the trick.

7
  • Thanks for this solution :) Wonder what this option actually does - and why it is not set by default?
    – Joerg S
    Sep 14, 2017 at 15:37
  • Thanks! It helped me, with a more horrible audio distortion issue. See also askubuntu.com/questions/371595/…
    – miguev
    Nov 2, 2017 at 16:26
  • 2
    can you provide an explanation of the commands and why they are needed? Jan 22, 2020 at 13:43
  • This solution also worked for me on Ubuntu 20.04, with an NVidia 1070/GP104 providing HDMI audio (no audio devices on the other end of the HDMI cables, but it's apparently enabled) and an Intel 100 Series/C230 Series audio device. Thank you so much for the solution, I have been looking for this for a really long time. :-) Sep 4, 2020 at 18:12
  • 1
    @PedroRodrigues The answer you are looking for is described here: askubuntu.com/questions/371595/… Sep 7, 2020 at 7:59
5

The solution for me was to edit /etc/pulse/daemon.conf

sudo -H gedit /etc/pulse/daemon.conf

Find the line

; resample-method = 

uncomment (remove the ;) and change to

resample-method = src-sinc-best-quality

If the line is not there at all, then add it.

Reboot for changes to take effect.

1
  • It worked on Kubuntu 20.04 for me, Kernel version 5.4.0-66 generic, 64 bit OS. Thanks.
    – salep
    Feb 27, 2021 at 11:17
3

For me none of the above worked. My issue appears to have been with adb (Android Debugging Bridge). I resolved my issue simply by stopping the adb server with the following command: adb kill-server.

Wanted to share in case anyone else was having the same issue while using adb

This likely does not apply to a lot of people.

2
2

I just ran into a similar issue with Skype 8 (skypeforlinux).

Here are the instructions that solved my pulseaudio configuration problem.

  1. Resolve Choppy sound in (Pulseaudio) -> Skype

In /etc/pulse/daemon.conf two lines has to be also substituted:

; default-sample-rate = 44100

Should become;

; default-sample-rate = 48000

HT: PCFreak.Net

Your mileage may vary. Best of luck!

2
  • My output was really choppy on CM106 like device (using SPDIF out) and it stopped being that way only after using 96000 default sample rate. I am also using the above suggestions but they did not make a difference themselves.
    – hakunin
    Mar 8, 2019 at 10:22
  • This seems to have solved it for my RME Babyface and pulseaudio 14.2
    – Juliano
    Jul 17, 2021 at 15:38
2

None of the above fixes worked for me (pulseaudio 11.1); what solved it for me was going into /etc/pulse/daemon.conf and turning off realtime-scheduling by adding in the line realtime-scheduling = no beneath the line reading ;realtime-scheduling = yes like so:

;realtime-scheduling = yes
realtime-scheduling = no

This completely fixed the issue for me.

0

I also had same issue. I first watch this => https://www.youtube.com/watch?v=v3Eyu4a1XD4 it didn't solve problem. but i kept all changes which are done according to video. then I enter following command,

$ sudo nano /etc/pulse/daemon.conf

it will open daemon.conf, then locate " ;realtime-scheduling = yes " using arrow down/up and remove " ; " and change it to " realtime-scheduling = no ". then save it (press Ctrl+o then enter)(quit => Ctrl+x). finally, run following command or restart computer.

$ systemctl --user restart pulseaudio.service

it was done job for me. Good luck. :)

2
  • What is the point of watching the video?
    – Pilot6
    Feb 19, 2023 at 10:06
  • This error occur for beginners who install linux/ubuntu most of the time. So they don't know about command line text editors like vi,nano. In video, youtuber explain how to go into file and how to manupulate cord. Thts why i add that link to that answer. just for help beginners. Feb 20, 2023 at 11:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .