desktopify icon indicating copy to clipboard operation
desktopify copied to clipboard

Audio crackling on Xubuntu during video playback / here's the solution

Open pseudofunizer opened this issue 4 years ago • 0 comments

Year after year, the culprit stays the same, at least on the Raspberry Pi, and especially in Ubuntu -- the problem is in PulseAudio's settings, particularly the tsched=0 parameter that needs to be set to PA's configuration at /etc/pulse/default.pa to avoid audio crackling, esp. during web video playback. (See more on the subject at: https://fedoraproject.org/wiki/Features/GlitchFreeAudio)

I already solved the problem, as usual.

Here's my solution & a suggestion - add this or some kind of variant of it to the Desktopify setup script:

sudo sed -i 's/load-module udev-detect/load-module udev-detect tsched=0/g' /etc/pulse/default.pa
sudo sed -i 's/load-module module-udev-detect/load-module module-udev-detect tsched=0/g' /etc/pulse/default.pa

That solved all audio crackling issues in web browsers, i.e. Firefox, for me. The problem has been present at least ever since the first unofficial 64-bit Ubuntu Server forks appeared for the Raspberry Pi 4B.

pseudofunizer avatar Sep 14 '20 10:09 pseudofunizer