Bug 146608 - Powersave polutes syslog when CPU doesn't support frequency scaling
Summary: Powersave polutes syslog when CPU doesn't support frequency scaling
Status: VERIFIED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Other (show other bugs)
Version: Beta 2
Hardware: All Other
: P5 - None : Minor (vote)
Target Milestone: ---
Assignee: Holger Macht
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-30 14:16 UTC by Forgotten User 55iwwMllzz
Modified: 2007-06-05 10:01 UTC (History)
0 users

See Also:
Found By: Beta-Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Forgotten User 55iwwMllzz 2006-01-30 14:16:41 UTC
Since my laptop processor does not support frequency scaling (it's an Intel Celeron), Powersave sends the same warnings and errors to syslog everytime there is battery charging state event:

[powersave]: WARNING (getCoresAffectedCpus:251) failed to get affected_cpus for cpu 0
[powersave]: WARNING (getCoresAffectedCpus:251) failed to get affected_cpus for cpu 0
[powersave]: ERROR (read_line:118) Could not open '/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor': No such file or directory
[powersave]: WARNING (initSingleInterface:102) Kernel ondemand governor not working, trying userspace instead
[powersave]: ERROR (read_line:118) Could not open '/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor': No such file or directory
[powersave]: WARNING (initSingleInterface:91) Could not init userspace governor
[powersave]: ERROR (initSingleInterface:104) Neither ondemand nor userspace governor working

I have set CPUFREQ_ENABLED="off" in /etc/sysconfig/powersave/cpufreq (and afterwards ran SuSEconfig and restarted Powersave) but still the same messages are sent to syslog. 
Couldn't Powersave send those messages only when it starts, instead of each time the battery charging state changes?
Comment 1 Thomas Renninger 2006-01-30 15:16:55 UTC
This should already be fixed.
Reassigning to Holger just to be sure.
Comment 2 Holger Macht 2006-01-30 15:20:12 UTC
Yes, the warning should not appear in newer version. But I have to look why CPUFREQ_ENABLED="off" does not have any effect.
Comment 3 Holger Macht 2006-01-31 09:25:56 UTC
It has to be CPUFREQ_ENABLED="no", but its functionality was corrupted anyway. Fixed in svn.
Comment 4 Forgotten User 55iwwMllzz 2006-01-31 12:02:00 UTC
> It has to be CPUFREQ_ENABLED="no", but its functionality was corrupted anyway.

From your comment I presume that, even after the fix, the user will still need to manually edit /etc/sysconfig/powersave/cpufreq and change CPUFREQ_ENABLED?
If so, couldn't Powersave notice the processor does not support frequency scaling and automatically assume CPUFREQ_ENABLED="no"? (or show a warning only when it starts, but not on every battery state change?)
Comment 5 Holger Macht 2006-01-31 12:13:02 UTC
With the fix only one warning on daemon startup will be shown. Please reopen if that's not the case with beta3.

Unfortunatelly, the fix for the CPUFREQ_ENABLED variable won't make it into beta4.