https://bugzilla.novell.com/show_bug.cgi?id=697379 https://bugzilla.novell.com/show_bug.cgi?id=697379#c8 --- Comment #8 from Fabio Scalvino <fa0sck@gmail.com> 2012-06-14 22:41:30 UTC --- (In reply to comment #7)
new maintainer of pm-utils
Nice to meet you :) new version (openSUSE 12.1) and same little issue. This time I try to modify /usr/lib/pm-utils/power.d/intel-audio-powersave (from pm-utils-1.4.1-12.20.1.x86_64, as of writing) slightly differently: diff --git a/intel-audio-powersave_pm-utils-1.4.1-12.20.1.x86_64 b/usr/lib/pm-utils/power.d/intel-audio-powersave index 36675a8..3f0fed0 100755 --- a/intel-audio-powersave_pm-utils-1.4.1-12.20.1.x86_64 +++ b/usr/lib/pm-utils/power.d/intel-audio-powersave @@ -21,9 +21,9 @@ EOF audio_powersave() { [ "$INTEL_AUDIO_POWERSAVE" = "true" ] || exit $NA for dev in /sys/module/snd_*/parameters/power_save; do - [ -w "$dev/parameters/power_save" ] || continue - printf "Setting power savings for $s to %d..." "$dev##*/" "$1" - echo $1 > "$dev/parameters/power_save" && echo Done. || echo Failed. + [ -w "$dev" ] || continue + printf "Setting power savings for %s to %d... " "${dev%/parameters*}" "$1" + echo $1 > "$dev" && echo Done. || echo Failed. done } Nothing special at all, but seems to work. e.g. manually setting power save on: sudo /usr/lib/pm-utils/power.d/intel-audio-powersave 'true' Setting power savings for /sys/module/snd_hda_intel to 1... Done. Regards -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.