[Bug 797966] New: pm-utils intel-audio-powersave script error results in logging errors in pm-powersave.log
https://bugzilla.novell.com/show_bug.cgi?id=797966 https://bugzilla.novell.com/show_bug.cgi?id=797966#c0 Summary: pm-utils intel-audio-powersave script error results in logging errors in pm-powersave.log Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Minor Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: d_werner@gmx.net QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Firefox/17.0 The script /usr/lib/pm-utils/power.d/intel-audio-powersave contains errors which result in error entries in /var/log/pm-powersave.log The problem exists in pm-utils-1.4.1-18.6.1.x86_64 (current version of openSUSE 12.2) and also in pm-utils-1.4.1-24.2.x86_64 (current version of openSUSE factory/12.3MS2). The faulty log entry looks like this: Running hook /usr/lib/pm-utils/power.d/intel-audio-powersave false: /usr/lib/pm-utils/power.d/intel-audio-powersave: line 25: printf: {/sys/module/snd_ac97_codec##*/}: invalid number Setting power savings for to 0...Setting power savings for to 0...Done. following patch solves the problem: 25c25 < printf "Setting power savings for %s to %d..." "${dev##*/}" "$1" ---
printf "Setting power savings for $s to %d..." "{$dev##*/}" "$1"
With this patch the log entry looks like this: /usr/lib/pm-utils/power.d/hal-cd-polling false: success. Running hook /usr/lib/pm-utils/power.d/intel-audio-powersave false: Setting power savings for snd_ac97_codec to 0...Done. Reproducible: Always Steps to Reproduce: 1.audio hardware detected by the script exists /sys/module/snd_* 2.intel-audio-powersave must apply settings (e.g. at system startup) 3.check /var/log/pm-powersave.log Actual Results: log data in /var/log/pm-powersave.log: Running hook /usr/lib/pm-utils/power.d/intel-audio-powersave false: /usr/lib/pm-utils/power.d/intel-audio-powersave: line 25: printf: {/sys/module/snd_ac97_codec##*/}: invalid number Setting power savings for to 0...Setting power savings for to 0...Done. Expected Results: no errors in /var/log/pm-powersave.log, correct devicename. patch for /usr/lib/pm-utils/power.d/intel-audio-powersave 25c25 < printf "Setting power savings for %s to %d..." "${dev##*/}" "$1" ---
printf "Setting power savings for $s to %d..." "{$dev##*/}" "$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=797966 https://bugzilla.novell.com/show_bug.cgi?id=797966#c1 Peter Linnell <plinnell@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |easy_fix Status|NEW |ASSIGNED CC| |plinnell@suse.com --- Comment #1 from Peter Linnell <plinnell@suse.com> 2013-01-14 02:17:25 UTC --- https://build.opensuse.org/request/show/148335 pending -- 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=797966 https://bugzilla.novell.com/show_bug.cgi?id=797966#c Peter Linnell <plinnell@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Found By|--- |Community User -- 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=797966 https://bugzilla.novell.com/show_bug.cgi?id=797966#c2 --- Comment #2 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-01-16 19:00:09 CET --- This is an autogenerated message for OBS integration: This bug (797966) was mentioned in https://build.opensuse.org/request/show/148745 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=797966 https://bugzilla.novell.com/show_bug.cgi?id=797966#c3 --- Comment #3 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-04-12 16:00:30 CEST --- This is an autogenerated message for OBS integration: This bug (797966) was mentioned in https://build.opensuse.org/request/show/163752 Maintenance / -- 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=797966 https://bugzilla.novell.com/show_bug.cgi?id=797966#c4 Benjamin Brunner <bbrunner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Benjamin Brunner <bbrunner@suse.com> 2013-04-22 16:53:20 CEST --- Update released for openSUSE 12.2. Resolved fixed. -- 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=797966 https://bugzilla.novell.com/show_bug.cgi?id=797966#c5 --- Comment #5 from Swamp Workflow Management <swamp@suse.de> 2013-04-22 15:05:04 UTC --- openSUSE-RU-2013:0705-1: An update that has 7 recommended fixes can now be installed. Category: recommended (moderate) Bug References: 633491,768867,782891,797966,806632,806635,806641 CVE References: Sources used: openSUSE 12.3 (src): pm-utils-1.4.1-26.5.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=797966 https://bugzilla.novell.com/show_bug.cgi?id=797966#c6 --- Comment #6 from Dirk Weber <d_werner@gmx.net> 2013-04-22 18:26:00 UTC --- the patch was not correctly included into pm-utils-1.4.1-26.5.1.x86_64 and one error is back: #### Running hook /usr/lib/pm-utils/power.d/intel-audio-powersave false: /usr/lib/pm-utils/power.d/intel-audio-powersave: line 25: printf: snd_ac97_codec: invalid number Setting power savings for to 0...Setting power savings for to 0...Done. #### the line 25 of the script should read: printf "Setting power savings for %s to %d..." "${dev##*/}" "$1" but the released script contains: printf "Setting power savings for $s to %d..." "${dev##*/}" "$1" To be more verbose: there is no variable $s, it should be the format specifier %s -- 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=797966 https://bugzilla.novell.com/show_bug.cgi?id=797966#c7 --- Comment #7 from Swamp Workflow Management <swamp@suse.de> 2013-05-02 08:05:21 UTC --- openSUSE-RU-2013:0733-1: An update that has 7 recommended fixes can now be installed. Category: recommended (moderate) Bug References: 633491,768867,782891,797966,806632,806635,806641 CVE References: Sources used: openSUSE 12.2 (src): pm-utils-1.4.1-18.10.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