You are not logged in.

#1 2011-03-07 09:35:39

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

[SOLVED] Loud pop sounds after resuming from suspend

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

#2 2011-03-07 09:53:55

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [SOLVED] Loud pop sounds after resuming from suspend

I'm interested in this too..


ᶘ ᵒᴥᵒᶅ

Offline

#3 2011-03-07 14:00:32

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] Loud pop sounds after resuming from suspend

Got this too...

Offline

#4 2011-03-07 14:07:57

abarahc
Member
Registered: 2010-04-30
Posts: 128

Re: [SOLVED] Loud pop sounds after resuming from suspend

Got this too...²


user@localhost $ grep -rnw "." -e "hacking"

Offline

#5 2011-03-07 23:39:02

Arpione
Member
From: Pécs, Hungary
Registered: 2010-09-13
Posts: 31

Re: [SOLVED] Loud pop sounds after resuming from suspend

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

#6 2011-03-08 06:40:24

jib2
Member
From: Paris, France
Registered: 2009-08-13
Posts: 93

Re: [SOLVED] Loud pop sounds after resuming from suspend

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

#7 2011-03-08 11:13:28

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: [SOLVED] Loud pop sounds after resuming from suspend

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

#8 2011-03-08 12:37:50

Arpione
Member
From: Pécs, Hungary
Registered: 2010-09-13
Posts: 31

Re: [SOLVED] Loud pop sounds after resuming from suspend

/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

#9 2011-03-08 12:41:59

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: [SOLVED] Loud pop sounds after resuming from suspend

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

#10 2011-12-01 19:00:27

kamdh
Member
Registered: 2011-12-01
Posts: 1

Re: [SOLVED] Loud pop sounds after resuming from suspend

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

#11 2011-12-18 03:17:25

priapism
Member
Registered: 2011-12-17
Posts: 13

Re: [SOLVED] Loud pop sounds after resuming from suspend

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

Board footer

Powered by FluxBB