Sound makes a pop just before it does any sound, not sure how else to describe it

I am on 24.04 LTS, and since upgrading to it, the system makes a pop sound before producing the sound. It's quite annoying. It's like "POP" before a song plays. I tried:

echo "0" | sudo tee /sys/module/snd_hda_intel/parameters/power_save

From AskUbuntu.com, but that didn't seem to work

any and all help will be appreciated. Other than that my 24.04 is PERFECT!

How is your audio connected ?

The command you issued works for the standard headphones and speaker output of your motherboard but it will not work for USB or HDMI audio.

1 Like

ya its the Line out. That command seems to have fixed it. Because I don't know how to make it a permanent change I added the command to startup during boot. Thanks for your help!

2 Likes

anyone else have the popping issue?

I do too. My desktop system is doing the same. the fixes i have posted in the past don'seem to fix it, but as a stop gap i start bucklespring (a little program that gives you a clicky keyboard (it's a snap in the software center)). Hopefully
someone Has a more permanent fix.

I was on reddit and they suggested the following:

This to see if it will work:

sudo echo 0 > /sys/module/snd_hda_intel/parameters/power_save

This to make it permanant.

in /etc/crontab:

@reboot root sleep 20 && echo 0 > /sys/module/snd_hda_intel/parameters/power_save

The first one results in Access denied error and I don't think I should run this as actual root. I have not made the second change as I have not been able to test the first command using just sudo, Well I could use sudo caja...

Any ideas on this? Also this is on 24.04.1

`description: Audio device`

`product: 6 Series/C200 Series Chipset Family High Definition Audio Controller`

`vendor: Intel Corporation`

`physical id: 1b`

`bus info: pci@0000:00:1b.0`

`logical name: card0`

`logical name: /dev/snd/controlC0`

`logical name: /dev/snd/hwC0D0`

`logical name: /dev/snd/hwC0D3`

`logical name: /dev/snd/pcmC0D0c`

`logical name: /dev/snd/pcmC0D0p`

`logical name: /dev/snd/pcmC0D3p`

`version: 05`

`width: 64 bits`

`clock: 33MHz`

`capabilities: pm msi pciexpress bus_master cap_list`

`configuration: driver=snd_hda_intel latency=0`

`resources: irq:38 memory:f7f00000-f7f03fff`

above is my audio specs

Sheite! I installed bucklspring and I cant take the noise. I did a snap remove bucklespring, and the snap was removed but bucklespring is still running,
ps -e|grep bucklespring

returns nothing and killall finds no process. Help! LOL

I was able to kill the process using htop. Whew!

That is right, because the command should be:

echo 0 | sudo tee /sys/module/snd_hda_intel/parameters/power_save

That won't work because no path to echo has been given and crontab is oblivious to what path is set.

try:

@reboot root    /usr/bin/sleep 20 && /usr/bin/echo 0 > /sys/module/snd_hda_intel/parameters/power_save

Yes, you do. This is issued systemwide before you login. That is only possible if the system starts it for you with its own credentials i.e. root.

Also it is not possible to set power_save as non-root.

3 Likes

I am not at all comfortable editing the crontab. Like do I do an su then add the line:

@reboot root /usr/bin/sleep 20 && /usr/bin/echo 0 > /sys/module/snd_hda_intel/parameters/power_save

I mean editing this file should be straightforward, I am just wondering why sudo produced error access denied. Or should I do sudo caja?

Thanks for helping me!

Yes, it should be.

Try this:

sudo pluma /etc/crontab

If that doesn't work then something is quite off.

2 Likes

That line, by itself, is incomplete, unless you precede it with the value assignments for

min hr dom mon dow {command line}


The "crontab -l" command will list everything currently in the crontab.

Just to avoid a possible confusion I'd like to note the following:

  • @mickee 's crontab line @reboot root ... is formatted for system-wide crontab, i.e. /etc/crontab. Namely, please note that username root is specified.
  • crontab -l lists contents of the current user personal crontab, not system-wide one.
  • @reboot is valid time specifier and does not require min hr dom mon dow.
  • See man 5 crontab for more details.
1 Like

Regarding the 'popping' sound - I get those with my recently new stereo when I plug into my laptop - thing is at some lower sound settings it doesn't recognize some sites that produce sound so the stereo goes "sleep mode" and then when the sound gets louder it again "wakes up" with a pop. So that pop might be static or something - might be aux cable as well idk - but just to let you know it might also be the issue with connection :smiley: