diff options
author | tnut <tnut at nutyx dot org> | 2012-05-03 21:10:08 +0200 |
---|---|---|
committer | tnut <tnut at nutyx dot org> | 2012-05-03 21:10:08 +0200 |
commit | da38d2b0170922c01a607a04af092e77ca2d64d1 (patch) | |
tree | 81932879a719a11b2e8fab5f9224b09e7fba6c6b /pm-utils/pm-utils-12-fix-intel-audio-powersave-hook.patch | |
parent | cdd472312568aca412d979d2af1e4c0d7105a0a3 (diff) | |
download | nutyx-pakxe-da38d2b0170922c01a607a04af092e77ca2d64d1.tar.gz nutyx-pakxe-da38d2b0170922c01a607a04af092e77ca2d64d1.tar.bz2 nutyx-pakxe-da38d2b0170922c01a607a04af092e77ca2d64d1.tar.xz nutyx-pakxe-da38d2b0170922c01a607a04af092e77ca2d64d1.zip |
ajout pm-utils
Diffstat (limited to 'pm-utils/pm-utils-12-fix-intel-audio-powersave-hook.patch')
-rw-r--r-- | pm-utils/pm-utils-12-fix-intel-audio-powersave-hook.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pm-utils/pm-utils-12-fix-intel-audio-powersave-hook.patch b/pm-utils/pm-utils-12-fix-intel-audio-powersave-hook.patch new file mode 100644 index 000000000..41e5b0917 --- /dev/null +++ b/pm-utils/pm-utils-12-fix-intel-audio-powersave-hook.patch @@ -0,0 +1,16 @@ +diff --git a/pm/power.d/intel-audio-powersave b/pm/power.d/intel-audio-powersave +index 36675a8..da63e40 100644 +--- a/pm/power.d/intel-audio-powersave ++++ b/pm/power.d/intel-audio-powersave +@@ -20,9 +20,9 @@ EOF + + audio_powersave() { + [ "$INTEL_AUDIO_POWERSAVE" = "true" ] || exit $NA +- for dev in /sys/module/snd_*/parameters/power_save; do ++ for dev in /sys/module/snd_*; do + [ -w "$dev/parameters/power_save" ] || continue +- printf "Setting power savings for $s to %d..." "$dev##*/" "$1" ++ printf "Setting power savings for %s to %d..." "${dev##*/}" "$1" + echo $1 > "$dev/parameters/power_save" && echo Done. || echo Failed. + done + } |