[Pm-utils] [PATCH 1/2] Fix audio powersave script to look for snd_* modules
Chase Douglas
chase.douglas at canonical.com
Tue Jun 8 12:34:48 PDT 2010
Without this change the snd_hda_intel module is skipped.
Signed-off-by: Chase Douglas <chase.douglas at canonical.com>
---
pm/power.d/intel-audio-powersave | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pm/power.d/intel-audio-powersave b/pm/power.d/intel-audio-powersave
index 2bf0a51..2402aea 100644
--- a/pm/power.d/intel-audio-powersave
+++ b/pm/power.d/intel-audio-powersave
@@ -19,7 +19,7 @@ EOF
}
audio_powersave() {
- for dev in /sys/module/snd_*_codec/parameters/power_save; do
+ for dev in /sys/module/snd_*/parameters/power_save; do
[ -w $dev ] && [ "$INTEL_AUDIO_POWERSAVE" = "true" ] && echo $1 > $dev
done
}
@@ -31,4 +31,4 @@ case $1 in
*) exit $NA
esac
-exit 0
\ No newline at end of file
+exit 0
--
1.7.0.4
More information about the Pm-utils
mailing list