Skip to content

Instantly share code, notes, and snippets.

@ammuench
Created December 28, 2023 03:09
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ammuench/164ea026909eb256ba379f9e3a99af85 to your computer and use it in GitHub Desktop.
Save ammuench/164ea026909eb256ba379f9e3a99af85 to your computer and use it in GitHub Desktop.
Fixing Crackling/Buzzing Audio on Pipewire

Fixing Crackling/Buzzing Audio on Pipewire

Quick potential fix for crackling/buzzing audio issues

Check values of these two files:

cat /sys/class/rtc/rtc0/max_user_freq
cat /proc/sys/dev/hpet/max-user-freq

If they have defaulted back to 64 for whatever resaon, that's likely causing your crackling. You can fix it by running the following commands

sudo -i
echo 2048 > /sys/class/rtc/rtc0/max_user_freq
echo 2048 > /proc/sys/dev/hpet/max-user-freq

then restart pipewire with

systemctl --user restart pipewire.service

(or you can reboot if that's easier)

This should fix the crackling!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment