[SOLVED] Weird static noise in headset on Ubuntu 20.04
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
After updating to Ubuntu 20.04, there's always a very low volume static noise that keeps coming and going on my in-ear headset when my laptop is charging. The noise is not noticeable when something is playing but it's driving me crazy. I tried almost all the solutions I could find and nothing worked.
This problem is only present in Ubuntu and goes away when I boot into Windows 10. I am using Dell Inspiron 15 7547. Can anyone help?
Troubleshoot pulseaudio, I'd say.
Start by opening the mixer and make sure that microphone and other Line IN or Capture channels are muted.
I very little idea about sound systems but I did try muting sound inputs.
I also tried disabling loopback and setting headphone mic boost to 10dB as suggested but nothing worked.
Also note that the problem goes away when the laptop is not charging.
Distribution: Ubuntu based stuff for the most part
Posts: 1,172
Rep:
SInce it is not present in Windows makes me wonder if it is doing some noise cancelling. A quick search turned up this link to enable noise cancelling in Ubuntu; https://www.informaticar.net/enable-...ion-in-ubuntu/
SInce it is not present in Windows makes me wonder if it is doing some noise cancelling. A quick search turned up this link to enable noise cancelling in Ubuntu; https://www.informaticar.net/enable-...ion-in-ubuntu/
Doing the noise cancellation turned of my output sound and selecting headphones as output device froze my screen for some time.
Entering "pulseaudio -k" helped reducing the sound a little.
But anyway, Turns out the noise happens in windows too. Although it is still very hard to notice and I only did so after focusing hard in a very silent environment.
So, I am suspecting electricity leakage or faulty charger/laptop.
Thanks everyone who tried to help and I am sorry for wasting your time.
Distribution: Ubuntu 20.04 LTS, Linux Mint 20, (Win10, WS12R2, WS16, WS19)
Posts: 4
Rep:
Had same problem after update from Ubuntu 18.04 LTS to 20.04 LTS - random crackings, popping noise, sometimes when moving or clicking the mouse, but also just by chance.
Found hints that Ubuntu is now using power safe features?
-- but on "askubuntu" which I currently cannot paste ("You cannot post URLs to other sites") -- so I will quote
(i.e. switching devices/audio back on will make that cracking, like when you plug in a speaker or headset)
Quote:
Verify how is your sound card's power_save parameter:
cat /sys/module/snd_hda_intel/parameters/power_save
If it returns 1, do the following to change it temporally:
echo "0" | sudo tee /sys/module/snd_hda_intel/parameters/power_save
So you can try and test, it that's the right way for a solution - for me it was - but still investigating
Had same problem after update from Ubuntu 18.04 LTS to 20.04 LTS - random crackings, popping noise, sometimes when moving or clicking the mouse, but also just by chance.
Found hints that Ubuntu is now using power safe features?
-- but on "askubuntu" which I currently cannot paste ("You cannot post URLs to other sites") -- so I will quote
(i.e. switching devices/audio back on will make that cracking, like when you plug in a speaker or headset)
So you can try and test, it that's the right way for a solution - for me it was - but still investigating
BRs kg
Thank you for sharing this but i'm afraid that was not the problem for me. my problem is with the hardware/power supply.
Distribution: Ubuntu 20.04 LTS, Linux Mint 20, (Win10, WS12R2, WS16, WS19)
Posts: 4
Rep:
Have you tested if your power_save parameter is 1 i.e. on,
and have you tested to switch it off temporarily (until next boot, but can also be changed permanently), if that changes the situation?
A difference, even in intense, Win/Ubuntu and after update to 20.04 looks like different driver usage or handling by different systems and change in Ubuntu 20.04 which more user stated (from which version before?)
"not charging" - when you unplug the charger or when the battery reached 100% and still connected to mains, or both?
Is your laptop always connected to the power adapter and it charges only by chance,
or do you only plug it into mains and adapter for charging, and then the noise happens?
So would the noise go away again, if you unplug the power connector from the laptop.
Does moving the way of the cables or changing positions of the components (powersupply, head/headphones, laptop) to each other make a difference?
Do you use other power devices, power adaptors for phones, network switch and other equipment, even a powerline LAN adapter -- try a single outlet for your laptop charger, unplugging other "unnescessary" devices from circuits in the surroundings?
If you think, it's the power adapter - have you tried another?
- do you use an original one or just a kind of universal switching supply with the right plug?
- so you may try another, borrowed from a friend, from a shop or school nearby,
- or trying another cheep(er) universal (eg. a car adapter) you may buy or an original but second hand/refurbrished one?
- see DELL part numbers for matching supplies (often short letters/digits-mix) you may enter your laptop's "service tag" from the back side, often hard to read (use photo), under dell.com > support > product support - which may also give you other hints and updates, e.g. BIOS?!
-- but I would suggest doing a more systematically repetitive testing.
Is your headset connected by cable / stereo plug - or by bluetooth - or by another, eg. proprietary radio (device with USB or stereo plug to wireless headset?) - which all may interfere somehow.
Would the noise go, if you use another (plain, plugged in) headset?
For me, I have tried the cinnamon-desktop-environment which also changed the situation for me successfully!
(via $ sudo apt install cinnamon, e.g. itsfoss.com/install-cinnamon-on-ubuntu) - which can be switched to and forth from the login screen's setting button
I just hopped on to Debian KDE yesterday and I used Kubuntu last month. the problem existed in both.
I checked echo $power_save and got an empty output.
My laptop is almost always connected to the adapter but yes I did try plugging it in/out in various battery level and the noise always disappears when it's plugged out of main.
Another thing I noticed is that when I touch the laptop body, the noise kind of goes down or sometimes almost goes away. So I believe somehow the current is leaking out and that's the culprit.
I was going to take it to a shop to properly test it but I just could not find the time for it.
I am also suspecting that it might be something to do with the electricity system of the apartment. Because a few years ago I was using a desktop, and whenever I was touched the metal part of the CPU case, it gave me a shock. I just covered the case up and moved on.
Last edited by tahnoon19; 10-16-2020 at 11:37 AM.
Reason: forgot the $
Another thing I noticed is that when I touch the laptop body, the noise kind of goes down or sometimes almost goes away. So I believe somehow the current is leaking out and that's the culprit.
No, it's a grounding problem.
With the laptop itself, or its power supply, or the phones, or the point where they connect.
Distribution: Ubuntu 20.04 LTS, Linux Mint 20, (Win10, WS12R2, WS16, WS19)
Posts: 4
Rep:
a) it was $ cat /sys/module/snd_hda_intel/parameters/power_save
to print the content of a config file -- not an (empty while non-existing?) environment variable
==> still not tested?
b) grounding
b1) @ondoho: that kind of "ground loop" will only happen if you have an external analog inbound signal (eg. recording from phono, disk player, walkman) to a kind of amplifier,
occuring between two analog devices,
between the source of analog (audio) signal and a analog amplifier (connected to loudspeakers or headset)
- I would assume that here it is the audio output (headphone jack) of the laptop, like for playing digital mp3 watching digital video/audio file
b2) the human body works both, as antenna for parasitic signals (= source of noise), and as drain to ground - that's why you should avoid touching bare live leads (wires) - but this can also attenuate, reduce other (unwanted) signals, especially, if there is no correct system ground and shielding.
b3) grounding & appartment: that really sounds bad!
- like an open, missing, broken wire, lost connection in a plug, cable, or outlet, which should be the return-to-ground for all and other devices plugged in, and resulting in a floating ground line (and your body connects the residual currents to ground if you touch any metal chassis) - so the former PC may have been correctly grounded but to a defunct ground wire) - this can also be a problem with a Residual Current operated Circuit-Breaker (RCD; defect or loose wire?)
- meaning the protection for humans will catastrophically fail -
and if so, this should get repaired ASAP! best: "yesterday!" -- can only be tested by professional electrician (test equipment & repair)!
Some houses and regions still have different power supply systems, like neutral = earth (no "protective-earth", no RCD) - then also the neutral wire may float...
b4) grounding & power supply: today, most types are "switching power supplies", which show a huge inrush current (and often destructive to high-side switches / circuit breakers) and other side effects -- and they are applied with PFCs and Y-capacitors between Live/Neutral to Protective Earth (Ground wire) - and some even use NTCs in a "cheap way" without fuses, which also may break...
-- if such a component becomes too old, worn off, this may also look like a bad installation, leaking unwanted voltages to ground - and bringing unwanted "noise" from anywhere into your device
==> have you tried another and best an alternative power supply? (and it's cheaper than a worker on-site?)
==> have you tried to avoid other devices (which may inject that noise and other currents to ground)
c) it is possible, that you hear mice and rats (like having "fleas and lice") - meaning, you are now sensible, but you may sense two different issues?
I went to the repair shop and the static noise was gone. It came back after I plugged my laptop in my apartment. So, I guess I am done with this crap and buying a wireless headsets.
Thanks to everyone who spent their valuable time to help me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.