[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 <zjjia@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@novell.com AssignedTo|bnc-team-screening@forge.pr |mvyskocil@novell.com |ovo.novell.com | -- 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#c1 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |user2304@web.de --- Comment #1 from Michal Vyskocil <mvyskocil@novell.com> 2011-06-02 07:22:27 UTC --- Can you attach /var/log/pm-powersave.log to see what happens? -- 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#c2 --- Comment #2 from Fabio Scalvino <fa0sck@gmail.com> 2011-07-06 13:24:49 UTC --- Created an attachment (id=438545) --> (http://bugzilla.novell.com/attachment.cgi?id=438545) ugly patch to make intel-audio-powersave, hopefully -- 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#c3 --- Comment #3 from Fabio Scalvino <fa0sck@gmail.com> 2011-07-06 13:30:03 UTC --- (From update of attachment 438545) --- /usr/lib/pm-utils/power.d/intel-audio-powersave 2011-03-01 13:15:38.000000000 +0100 +++ mylocal/intel-audio-powersave 2011-07-06 15:01:02.167541090 +0200 @@ -20,9 +20,9 @@ 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 } -- 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#c4 Fabio Scalvino <fa0sck@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fa0sck@gmail.com --- Comment #4 from Fabio Scalvino <fa0sck@gmail.com> 2011-07-06 13:35:34 UTC --- Sorry, I made a mess with previous post. And I also missed the comment. I apologize: I run into the same error, as well; therefor I had a look at /usr/lib/pm-utils/power.d/intel-audio-powersave and made some changes, hoping to make it works. E.G.:
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 <fa0sck@gmail.com> 2011-07-06 13:38:07 UTC --- Created an attachment (id=438547) --> (http://bugzilla.novell.com/attachment.cgi?id=438547) ugly patch to make intel-audio-powersave, hopefully And here's the (this time I hope) wright patch -- 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#c6 --- Comment #6 from Fabio Scalvino <fa0sck@gmail.com> 2011-07-06 20:27:03 UTC --- It appears I ended with the very same file used in Ubuntu Natty, but I did not copy it. -- 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#c7 Michal Vyskocil <mvyskocil@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|mvyskocil@suse.com |vdziewiecki@suse.com --- Comment #7 from Michal Vyskocil <mvyskocil@suse.com> 2012-06-14 12:47:57 UTC --- new maintainer of pm-utils -- 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#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.
https://bugzilla.novell.com/show_bug.cgi?id=697379 https://bugzilla.novell.com/show_bug.cgi?id=697379#c9 --- Comment #9 from Fabio Scalvino <fa0sck@gmail.com> 2012-06-14 22:45:52 UTC --- Created an attachment (id=494923) --> (http://bugzilla.novell.com/attachment.cgi?id=494923) little fix for /usr/lib/pm-utils/power.d/intel-audio-powersave I forgot the "patch" attachment. -- 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#c10 Vojta Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|user2304@web.de | --- Comment #10 from Vojta Dziewięcki <vdziewiecki@suse.com> 2012-06-15 13:58:03 UTC --- Hi Fabio, thanks for the patch, it works for me, too. There clearly was a mistake in the original code, since $dev/parameters/power_save" would be something like /sys/module/snd_hda_intel/parameters/power_save/parameters/power_save, which is nonsense. So I will add this fix to next maintenance update and to factory too, once I fix Bug 753589 and Bug 751621. -- 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#c11 --- Comment #11 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-06-21 20:00:08 CEST --- This is an autogenerated message for OBS integration: This bug (697379) was mentioned in https://build.opensuse.org/request/show/125701 Factory / pm-utils -- 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#c12 Vojta Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution| |FIXED --- Comment #12 from Vojta Dziewięcki <vdziewiecki@suse.com> 2012-06-25 11:45:02 UTC --- Submitted. 12.1: sr#125700 11.4: sr#125699 Closing. -- 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#c13 --- Comment #13 from Swamp Workflow Management <swamp@suse.de> 2012-07-03 15:09:17 UTC --- openSUSE-RU-2012:0816-1: An update that has 5 recommended fixes can now be installed. Category: recommended (low) Bug References: 633496,697379,751621,751811,753589 CVE References: Sources used: openSUSE 12.1 (src): pm-utils-1.4.1-12.25.1 openSUSE 11.4 (src): pm-utils-1.4.1-5.32.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.
participants (1)
-
bugzilla_noreply@novell.com