You are not logged in.
Hi
I've got laptop ASUS k50ij, snd-hda-intel for sound. When i resume from suspend i've got two loud pop sounds. I have tried to mute the sound in /etc/conf.d/alsa, then this "options snd_hda_intel power_save=0", but nothing worked.
lspci:
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
Any help? Thx
Last edited by Shark (2011-03-08 12:42:35)
If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau
Registered Linux User: #559057
Offline
I'm interested in this too..
ᶘ ᵒᴥᵒᶅ
Offline
Got this too...
Offline
Got this too...²
user@localhost $ grep -rnw "." -e "hacking"
Offline
It's caused by /etc/pm/sleep.d/90alsa script:
#!/bin/sh
#
# 90alsa: suspend/wakeup ALSA devices
case "$1" in
hibernate|suspend)
;;
thaw|resume)
aplay -d 1 /dev/zero
;;
*) exit $NA
;;
esac
According to a post here it's needed to properly wake up alsa devices when the pc was suspended during playback.
Offline
Good guess. Commenting out the line stopped the 2 loud noises.
The sound is still working after wake up, even if the pc was suspend during playback.
Offline
Which lines have to be commented?
My /etc/pm/sleep.d/90alsa looks the same but problem is still here. In above link the user Thomas Mudrunka (harvie) say:
"...please include following /etc/pm/sleep.d/90alsa to alsa-utils...".
How can i do that?
If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau
Registered Linux User: #559057
Offline
/etc/pm/sleep.d/90alsa is already included in alsa-utils, that's why you have it on your system. You have to comment out aplay -d 1 /dev/zero to get rid of the clicks.
Offline
aaaaa, thx. Works perfectly.
If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau
Registered Linux User: #559057
Offline
Sorry to resurrect a dead post, but I thought I'd share an alternate solution to this which has worked for me. Removing the aplay line from this script occasionally left me with dead sound after sleeping... not good. Instead, I toggle each of my mixers twice with:
mixers="Master PCM"
for mixer in $mixers ; do
/usr/bin/amixer -q sset $mixer toggle
/usr/bin/amixer -q sset $mixer toggle
done
You may have to add other mixers if you have more than just Master and PCM. So far, I've had no problems with this.
Enjoy.
Offline
Sorry about my ignorance, but which file do you put those lines?
EDIT: Nevermind, I just did this:
#!/bin/sh
#
# 90alsa: suspend/wakeup ALSA devices
case "$1" in
hibernate|suspend)
/usr/bin/amixer -q sset Front mute
;;
thaw|resume)
aplay -d 1 /dev/zero
/usr/bin/amixer -q sset Front unmute
;;
*) exit $NA
;;
esac
It just makes more sense to me. No more pops, yay!
Last edited by priapism (2011-12-18 18:12:14)
Offline