
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.