How To Fix PC Making Crackling Noise – Linux & Windows

Tech

Are you hearing a crackling sound on a Linux or Windows computer? When the audio is playing, does your computer occasionally make a cracking noise? If so, this blog might be helpful for you.

The noise reminds me of a lot of static from an old analogue television. For your reference, I have captured the noise on video and shared it below.

Example of crackling noise on my computer

I’m new to Linux and am still learning how to use and troubleshoot it. Although I am not an expert, I am describing my procedure for resolving a crackling sound that occurred on my desktop Linux machine. As part of my study guide and for your reference, the fundamental troubleshooting procedure for a computer running Windows has also been detailed at the end of the blog.

Sponsored links

Background

I built my Linux running computer for the first time at the end of the year 2020…

Since then, the computer has operated without any problems, but after being in use for almost six months, it has started to occasionally emit a crackling noise whenever the audio is played, as when watching YouTube. While the problem persisted, I got in touch with ASUS assistance and ultimately had to RMA the motherboard. Regrettably, it did not fix the issue and was returned to its original state. But at least I could say that the motherboard wasn’t damaged and needed more examination from my end.

Some Facts

ConditionNewly built desktop PC with new parts
OSLinux Mint (20.1 Ulyssa)
CPUAMD Ryzen 5 3600
MotherboardPRIME X570-P
BIOSUp to date
Audio DriverUp to date
UsageFor light works and not for gaming of any sort (at least for now)
OccurrenceOnce or twice a day until restart.
The noise stops if restarting but it comes back eventually.
Audio outputI have below three (03) audio output options and noise occurs on all:
1. The audio jack on side of the case
2. Built-in speaker of the monitor connected with HDMI to Graphics Card
3. HD audio jack on top of the case

Basic Troubleshooting

It is advised to check below as the initial troubleshooting step:

  1. Test on different audio output options. If noise only occurs on certain output and not on all outputs, an issue can be narrowed down;
  2. Unplug and plug the audio cable of the speaker (check if cables are known to be good);
  3. Update audio driver;
  4. Update BIOS;
  5. Clean inside the computer and dust off (especially around CPU fan and chipset fan), and re-seat all the connection and components on the motherboard.

You can try the following additional steps if the basic troubleshooting mentioned above does not resolve the issue.

Cause of the crackling noise (identified)

I tried all of the basic troubleshooting methods given above, but sadly nothing worked for me until I changed the PulseAudio file.


What is PulseAudio?
PulseAudio is the sound server used by many Linux systems and is often already installed by your package as default. For example, the OS I use is Linux Mint and it was already installed in my package.
Why PulseAudio?
PulseAudio uses timer-based scheduling, which can contribute to some audio issues such as crackling, and by deactivating it, some audio issues on Linux can be resolved.

How to fix (Linux)

My crackling audio issue was resolved by following the easy procedures below:

  1. Go to the terminal and edit the following file /etc/pulse/default.pa

Any text editor will work to open the file. Use the following command in the terminal to open the file if using nano editor.

sudo nano /etc/pulse/default.pa

Once you open the above file, look for a line where it says load-module module-udev-detect, and add tsched=0 at the end of the line.

Before:

load-module module-udev-detect

After:

load-module module-udev-detect tsched=0

Save the file (For nano, Ctrl + X will quit the editor and it will ask if we want to save the changes before quitting. Press Y for Yes).

  1. Use the following command in the terminal to end the PulseAudio daemon’s current state.
pulseaudio -k

Using the aforementioned command will kill (stop) PulseAudio in use and cause it to relaunch.
In my instance, taking the aforementioned actions resolved the cracking noise issue.

I used to experience the noise issue on a daily basis, but it has been more than three months after I made the aforementioned modification that I have not yet had any sort of noise issue at all!

What is tsched?

According to the documentation of freedesktop.org tsched is defined as:

“Since 0.9.11. Use system-timer based model (aka glitch-free). Defaults to 1 (enabled). If your hardware does not return accurate timing information (e.g. Creative sound cards) you can try to set tsched=0 to enable the interupt based timing which was used in 0.9.10 and before.”

How to fix (Case of Windows)

There was a lot of information about how to fix the crackling noise on the Windows-running machine when I was researching how to diagnose it. The information below may assist in resolving the audio crackling issue if you are using Windows rather than Linux.

Change the audio format

  1. Right-click Speaker → Playback devices
  2. Double click the Default Playback Device
  3. Go to Advanced Tab
  4. Set your audio quality to “16 bit, 44100 Hz (CD Quality)”
  5. Click OK
  6. Test if audio problems persist

(If still continues) Go back to Playback Devices

  1. Right-click Speaker → Properties
  2. Go to Enhancement Tab → Disable all enhancements (manually uncheck all)
  3. Click OK
  4. Test if audio problems persist

(If still continues) Change the audio format

  1. Right-click Speaker → Playback devices
  2. Double Click the Default Playback Device
  3. Go to Advanced Tab
  4. In Exclusive Mode
    → Uncheck “Allow applications to exclusive control of this device”
    → Click OK

f you’ve done everything suggested above and the issue still exists, it can be a defective motherboard or other components. It is advised to get in touch with the manufacturer for guidance if simple troubleshooting fails to resolve the issue and you have any doubts about whether one of your parts might be defective. If the product itself is defective, you might need to use an RMA (return a product to the manufacturer for repair or other solutions the manufacturer suggests depending on the condition).

Comments

Copied title and URL