[Bug 697379] New: Powermanagement snd_hda_intel - Skript /usr/lib/pm-utils/intel-audio-powersave doesnt' work
https://bugzilla.novell.com/show_bug.cgi?id=697379 https://bugzilla.novell.com/show_bug.cgi?id=697379#c0 Summary: Powermanagement snd_hda_intel - Skript /usr/lib/pm-utils/intel-audio-powersave doesnt' work Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: x86-64 OS/Version: openSUSE 11.4 Status: NEW Severity: Minor Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: user2304@web.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 Skript /usr/lib/pm-utils/intel-audio-powersave should change /sys/module/snd_hda_intel/parameters/power_save - to "1" when powersaving is enabled - to "0" when powersaving is disabled e.g. via "pm-powersave true/false". This doesn't work. State isn't being changed. Reproducible: Always Steps to Reproduce: 1. pm-powersave true Actual Results: /sys/module/snd_hda_intel/parameters/power_save is "0" Expected Results: /sys/module/snd_hda_intel/parameters/power_save should be "1" -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=697379
https://bugzilla.novell.com/show_bug.cgi?id=697379#c
zj jia
https://bugzilla.novell.com/show_bug.cgi?id=697379
https://bugzilla.novell.com/show_bug.cgi?id=697379#c1
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=697379
https://bugzilla.novell.com/show_bug.cgi?id=697379#c2
--- Comment #2 from Fabio Scalvino
https://bugzilla.novell.com/show_bug.cgi?id=697379
https://bugzilla.novell.com/show_bug.cgi?id=697379#c3
--- Comment #3 from Fabio Scalvino
https://bugzilla.novell.com/show_bug.cgi?id=697379
https://bugzilla.novell.com/show_bug.cgi?id=697379#c4
Fabio Scalvino
sudo ./mylocal/intel-audio-powersave true Setting power savings for snd_hda_intel to 1...Done. sudo cat /sys/module/snd_hda_intel/parameters/power_save 1 Is it possible to delete Comment 2? :)
-- 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.
https://bugzilla.novell.com/show_bug.cgi?id=697379
https://bugzilla.novell.com/show_bug.cgi?id=697379#c5
--- Comment #5 from Fabio Scalvino
https://bugzilla.novell.com/show_bug.cgi?id=697379
https://bugzilla.novell.com/show_bug.cgi?id=697379#c6
--- Comment #6 from Fabio Scalvino
https://bugzilla.novell.com/show_bug.cgi?id=697379
https://bugzilla.novell.com/show_bug.cgi?id=697379#c7
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=697379
https://bugzilla.novell.com/show_bug.cgi?id=697379#c8
--- Comment #8 from Fabio Scalvino
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.
https://bugzilla.novell.com/show_bug.cgi?id=697379
https://bugzilla.novell.com/show_bug.cgi?id=697379#c9
--- Comment #9 from Fabio Scalvino
https://bugzilla.novell.com/show_bug.cgi?id=697379
https://bugzilla.novell.com/show_bug.cgi?id=697379#c10
Vojta Dziewięcki
https://bugzilla.novell.com/show_bug.cgi?id=697379
https://bugzilla.novell.com/show_bug.cgi?id=697379#c11
--- Comment #11 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=697379
https://bugzilla.novell.com/show_bug.cgi?id=697379#c12
Vojta Dziewięcki
https://bugzilla.novell.com/show_bug.cgi?id=697379
https://bugzilla.novell.com/show_bug.cgi?id=697379#c13
--- Comment #13 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com