[Pm-utils] [PATCH 08/12] Proposed pm-utils 1.2.3 patches, take 2

Victor Lowther victor.lowther at gmail.com
Sun Nov 30 16:33:19 PST 2008


Drop 65alsa -- it is useless by itself.

alsa drivers that support suspend/resume will save their state without it.

alsa drivers that don't will need to be unloaded and reloaded as well as
having their state saved and restored to work properly.

See thread at http://mailman.alsa-project.org/pipermail/alsa-devel/2008-November/013030.html
---
 pm/sleep.d/65alsa |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)

diff --git a/pm/sleep.d/65alsa b/pm/sleep.d/65alsa
deleted file mode 100755
index 37ba3fe..0000000
--- a/pm/sleep.d/65alsa
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-# Ensure that ALSA state is saved and restored correctly.
-# TODO: Modern ALSA does not need this hack.  Is it worth trying to detect
-#       that and disable this hook if we do not need it?
-
-. "${PM_FUNCTIONS}"
-
-command_exists alsactl || exit $NA
-
-case "$1" in
-	hibernate|suspend)
-		alsactl store 0 >/dev/null 2>&1
-		;;
-	thaw|resume) 
-		alsactl restore 0 >/dev/null 2>&1
-		;;
-	*) exit $NA
-		;;
-esac
-- 
1.6.0.4



More information about the Pm-utils mailing list