A while ago I posted a crappy quick fix solution for the static, buzzing noise sound problem that a lot of Linux users have. It seems to be a pretty common problem for those who run Ubuntu, Linux Mint, Xubuntu and also other Linux distros.
I finally figured out what was causing the problem.
I’ll explain how to fix the problem with the crackling noise in Linux below.

The solution to the static noise problem in Linux
Open the terminal and type:
sudo nano /etc/pulse/default.pa
You will now have to type your admin password.
Once the file is open in nano, press CTRL + W to open the search field.
Type “suspend” without the quotes and press Enter.
You will now see this line:
### Automatically suspend sinks/sources that become idle for too long
load-module module-suspend-on-idle
You need to disable this line. Just type “#” without the quotes in front of the line with the text “load-module module-suspend-on-idle”.
It should now look like this:
### Automatically suspend sinks/sources that become idle for too long
#load-module module-suspend-on-idle
Save the file by pressing CTRL + S. Then exit with CTRL + X.
Reboot your computer.
Hopefully you’ll be free from the annoying static sound.