How I Fixed Buzzing Noise Coming from Speakers in Linux
======
I used a laptop for a long time but only recently switched to a desktop setup for my remote work at It’s FOSS.
I noticed a constant buzzing sound coming from the speakers. It was annoying and gave me headaches. I started out to fix the issue. It was quite interesting to know the root cause of the issue.
I will share my experience of fixing the buzzing noise from speakers in Linux. I found it working with Ubuntu, Debian and Pop OS on the same hardware.
One thing to consider is that you may have a serious hardware issue if this guide does not work for you. For most users, the given solution should get the job done.
**Before you try the fix …**
I have tried to make things easy to follow safely. You try the temporary fix and if it works, you make the changes permanent. However, it would be a good idea to make system snapshots with Timeshift. If you are easily panicked when things do not work, you can restore the system to the earlier state.
Also, check your sound card. In my case, it was snd_hda_intel. For USB card, it could be snd_usb_audio. You have to change the commands according to your sound card.
```
cat /proc/asound/modules
```
### The reason behind the buzzing noise from speakers in Linux
After combing through numerous forum posts and websites, I learned the root cause of the issue. It is because of capacitor discharge in the speakers. And it can be solved by turning off the power-saving setting of a sound card.
By turning off power saving, you are allowing the system to charge those capacitors when they get discharged. It is similar to using a phone while charging constantly.
And you can check whether the power-saving setting for the sound card is enabled on your system by using the given command:
![power saving setting in sound card making buzzing sound in linux][1]
And if you get 1 in output like mine, the power saving is turned on. So let’s have a look at the solution.
Don’t worry. This will not affect your battery percentage drastically, as the shown method is only applied to the sound card.
### Try fixing the buzzing noise issue (temporary)
The reason why I included the temporary way is to identify whether the humming sound is being caused due to capacitor discharge or if there is any serious hardware problem going on.
If this temporary solution works, you can go ahead with the permanent solution.
The first step is to switch to the root user:
```
sudo su
```
And then, execute the given command, and it should stop the buzzing sound until the next boot: