Bug#380490: [Pkg-alsa-devel] Bug#380490: alsa-utils: fails to store/restore mixer settings after apm suspend

Elimar Riesebieter riesebie at lxtec.de
Sun Jul 30 17:06:45 UTC 2006


On Sun, 30 Jul 2006 the mental interface of
Andreas Hübner told:

> Package: alsa-utils
> Version: 1.0.11-6
> Severity: normal
> 
> Hi,
> 
> I have alsa configured to unload the sound module (snd-cs46xx in my case)
> when I do a `apm -s`. However, the mixer settings are lost after resume.
> This is because the storing/restoring mixer facility moved from the alsa
> init-script to alsa-utils and the script in /etc/apm/script.d/ does not
> know about this change.
> A simple fix would be an alsa-utils apm script that is run before the
> alsa suspend and after the alsa resume.

apm is deprecated. Can't you youce acpi? Anyway, please try attached
patch against /etc/apm/alsa.

Elimar

-- 
  "Talking much about oneself can also 
   be a means to conceal oneself."
         -Friedrich Nietzsche
-------------- next part --------------
--- alsa.orig	2006-07-30 19:00:08.000000000 +0200
+++ alsa	2006-07-30 19:01:13.000000000 +0200
@@ -3,7 +3,7 @@
 # apmd proxy script for ALSA
 
 case "$1,$2" in
-	suspend,*) /etc/init.d/alsa suspend ;;
-	resume,suspend) /etc/init.d/alsa resume ;;
+	suspend,*) /usr/sbin/alsactl store && /etc/init.d/alsa suspend ;;
+	resume,suspend) /etc/init.d/alsa resume && /usr/sbin/alsactl restore;;
 esac
 


More information about the Pkg-alsa-devel mailing list