It seems with my new PC that almost every time a sound starts to play there is a pop sound like when someone turns an amp on, any ideas?
Note: doesn't matter whether I use the built in speakers or the line out ones, same issue
It seems with my new PC that almost every time a sound starts to play there is a pop sound like when someone turns an amp on, any ideas?
Note: doesn't matter whether I use the built in speakers or the line out ones, same issue
Yes, I have a hunch that it is a powersave feature.
That is indeed exactly what happens when powersave is activated.
Do you have those pops only when on battery power ?
Because on AC you shouldn't have them.
I have the same thing happen on a desktop. It does have to do with power save but the the way I fixed it in the past doesn’t seem to work like it did.
Its an AIO - but It doesn't go in to power save mode at all.
Strange, I don't have that problem.
It only pops on my laptop if i'm on batterypower.
Best thing to do is to use 'powertop' to check if the audiohardware is entering sleep state despite being on AC.
If it does*, you can read from powertop which command you have to put in /etc/rc.local
*=(I wouldn't be surprised because 80% of computer ACPI is buggy as heck)
I found a link to an article about a possible fix. I need to try it on the computer I have the problem on and post a link if it works.
This is what worked for me for now. What I did was, open up terminal and enter sudo nano /etc/modprobe.d/alsa-base.conf then add this line at the end of this options snd-hda-intel power_save=0 power_save_controller=N then ctrl o to save and ctrl x to exit nano. I found this at audio - Linux Ubuntu Speakers Popping every few seconds - Super User
Hope this helps
cool, I am trying that. I made a copy of the original file before saving the changes. I will let you know if that worked.
still happening for me. Could it be that I need to reboot if this file is only read during startup? I will do so as soon as I can and report back.
I think a restart is a good thing. I have it in my head that it needs the restart for the change to take effect.
Thank you for your help. It has been fixed by your solution. Is this permanent? I guess maybe until I update to 24.04...
It should be permanent. It should be to repeat this same process then so long as they don’t change anything about where we put this. Glad to be of help.
Related? The screen no longer shuts off and backlight when no activity after 30 mins
Never mind - all is well. (I had caffeine running, LOL)
so, I am still hesitant with modifying the crontab or cron or whatever it is. Is there anyway to create a script using
echo 0 | sudo tee /sys/module/snd_hda_intel/parameters/power_save
and create a launcher or add to startup applications? I am really not wanting to break my installation.
it works for as long as I don't reboot, then I have to run it again. I don't mind doing that but wanting to make it run on demand or startup at boot time using startup applications
You mean you want a script with root privileges that runs at startup? This looks like the approach I'd follow: Run Bash script as root in startup on ubuntu 18.04 - Stack Overflow
I'm not sure if it's necessary, but the script might also need to call modprobe to unload and load the snd_hda_intel module again - that could lead to a whole bunch of mess with dependencies. If that's the case, I'd probably stick with edits to /etc/modprobe.d/alsa-base.conf
instead - as that's precisely the tool for organising the various options to use in kernel modules.