The Dell XPS 13 has been my primary computer for the past couple months. It has worked great but recently I noticed some audio crackling when starting/stopping playback.
I found the problem was an issue with
tlp, a fantastic tool that helps
save power on Linux laptops. Issue was it was cutting power to my
audio jack when not in use which caused the loud crackling when it was
turned on and off.
Check if tlp is running
systemctl status tlp
● tlp.service - TLP system startup/shutdown Loaded: loaded (/usr/lib/systemd/system/tlp.service; enabled; vendor preset: enabled) Active: active (exited) since Fri 2017-05-12 00:27:00 EDT; 59min ago Docs: http://linrunner.de/tlp Process: 1574 ExecStart=/usr/sbin/tlp init start (code=exited, status=0/SUCCESS) Main PID: 1574 (code=exited, status=0/SUCCESS) Tasks: 0 (limit: 4915) CGroup: /system.slice/tlp.service May 12 00:27:00 XPS systemd: Starting TLP system startup/shutdown... May 12 00:27:00 XPS tlp: Applying power save settings...done. May 12 00:27:00 XPS tlp: Setting battery charge thresholds...done. May 12 00:27:00 XPS systemd: Started TLP system startup/shutdown.
In the output you should see the 3rd line "
Active: active" if
is running. Otherwise this solution likely won't fix your problem.
Edit your tlp config
To solve this edit
/etc/default/tlp (for beginners use "
/etc/default/tlp" or "
sudo nano /etc/default/tlp").
Then restart your computer.
That will stop
tlp from turning your audio on and off when audio
stops playing. You may loose some slight power savings, but I haven't
noticed anything significant. So it's worth doing just to ditch the
Update: Headphone Audio Whining
Recently I have noticed a constant whining when using headphones. The Arch Wiki provides a solution that seems to work:
amixer -c 0 cset 'numid=10' 1