Bug 113615 - ERROR (CPUFreq_Kernel:21) Could not set ondemand governor
Summary: ERROR (CPUFreq_Kernel:21) Could not set ondemand governor
Status: VERIFIED FIXED
: 118735 (view as bug list)
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Beta 3
Hardware: HP All
: P5 - None : Major
Target Milestone: ---
Assignee: Forgotten User ZhJd0F0L3x
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-28 09:35 UTC by Ulrich Lange
Modified: 2007-06-05 11:20 UTC (History)
1 user (show)

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


Attachments
/var/log/messages (7.42 KB, application/x-gunzip)
2005-08-28 09:35 UTC, Ulrich Lange
Details
/var/log/messages (130.09 KB, text/plain)
2005-09-06 03:42 UTC, Ulrich Lange
Details
/var/log/messages (450.39 KB, application/octet-stream)
2005-09-09 22:27 UTC, Ulrich Lange
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Lange 2005-08-28 09:35:16 UTC
HW: HP Omnibook 6100 1 GHz, 768 MB RAM

After installation I found
Aug 28 18:35:58 linux [powersave]: ERROR (getBatteryDetailedInfo:50) Could not
get list of batteries in system: The name org.freedesktop.Hal was not provided
by any .service files
in logfile messages
Comment 1 Ulrich Lange 2005-08-28 09:35:49 UTC
Created attachment 47883 [details]
/var/log/messages
Comment 2 Olaf Kirch 2005-08-29 09:12:56 UTC
There are lots of diagnostic error messages in the syslog. Even if they 
say "Error" this doesn't actually have to be an error. 
 
Can you please describe what is not working? 
Comment 3 Ulrich Lange 2005-08-30 01:35:49 UTC
I thought the Error was clear.

One consequence I found is a problem with kpowersave.
The setting under SetCPU Frequence Policy is Dynamic by default.
Changing to Performance and Powersave is possible, but by changing back to
Dynamic Window with a Warning! occurs: CPU Freq Policy Dynamic could not be set.
After a klick in kpowersave icon again menu point "SetCPU Frequency Policy" in
PullDownMenu is gone. Ok, it can be a bug in kpowersave as well.
Two entries from logfile messages to this failure:
Aug 30 13:00:41 Test [powersave]: WARNING (setMode:143) Could not set on_demand
governor. Isthe module loaded?
Aug 30 13:00:41 Test [powersave]: ERROR (handleActionMessage:1822) Could not set
dynamic mode

The module should be loaded, look to the list.
Test:~ # modprobe -l | grep cpufreq
/lib/modules/2.6.13-rc6-git13-4-default/kernel/drivers/cpufreq/cpufreq_powersave.ko
/lib/modules/2.6.13-rc6-git13-4-default/kernel/drivers/cpufreq/cpufreq_stats.ko
/lib/modules/2.6.13-rc6-git13-4-default/kernel/drivers/cpufreq/cpufreq_userspace.ko
/lib/modules/2.6.13-rc6-git13-4-default/kernel/drivers/cpufreq/cpufreq_ondemand.ko
/lib/modules/2.6.13-rc6-git13-4-default/kernel/drivers/cpufreq/cpufreq_conservative.ko
/lib/modules/2.6.13-rc6-git13-4-default/kernel/drivers/cpufreq/freq_table.ko
/lib/modules/2.6.13-rc6-git13-4-default/kernel/arch/i386/kernel/cpu/cpufreq/longrun.ko
/lib/modules/2.6.13-rc6-git13-4-default/kernel/arch/i386/kernel/cpu/cpufreq/powernow-k8.ko
/lib/modules/2.6.13-rc6-git13-4-default/kernel/arch/i386/kernel/cpu/cpufreq/powernow-k7.ko
/lib/modules/2.6.13-rc6-git13-4-default/kernel/arch/i386/kernel/cpu/cpufreq/powernow-k6.ko
/lib/modules/2.6.13-rc6-git13-4-default/kernel/arch/i386/kernel/cpu/cpufreq/speedstep-smi.ko
/lib/modules/2.6.13-rc6-git13-4-default/kernel/arch/i386/kernel/cpu/cpufreq/speedstep-lib.ko
/lib/modules/2.6.13-rc6-git13-4-default/kernel/arch/i386/kernel/cpu/cpufreq/speedstep-ich.ko
/lib/modules/2.6.13-rc6-git13-4-default/kernel/arch/i386/kernel/cpu/cpufreq/longhaul.ko
/lib/modules/2.6.13-rc6-git13-4-default/kernel/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.ko
/lib/modules/2.6.13-rc6-git13-4-default/kernel/arch/i386/kernel/cpu/cpufreq/p4-clockmod.ko
/lib/modules/2.6.13-rc6-git13-4-default/kernel/arch/i386/kernel/cpu/cpufreq/cpufreq-nforce2.ko
/lib/modules/2.6.13-rc6-git13-4-default/kernel/arch/i386/kernel/cpu/cpufreq/gx-suspmod.ko
/lib/modules/2.6.13-rc6-git13-4-default/kernel/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.ko

Comment 4 Olaf Kirch 2005-08-30 07:37:26 UTC
Thanks. It's always helpful to have both the diagnostic output of the 
application and a description of the symptoms. 
 
Thomas, Pavel - looks like another issue with the ondemand cpufreq 
governor. 
Comment 5 Pavel Machek 2005-08-31 08:32:34 UTC
Can you confirm that ondemand is really loaded according to lsmod?

Can you do echo to /sys/.../governor file to confirm that setting ondemand
governor really fails? And see dmesg if something goes on there?
Comment 6 Ulrich Lange 2005-08-31 10:42:25 UTC
/proc/modules shows
cpufreq_ondemand 6044 0 - Live 0xf0ea0000
cpufreq_userspace 4444 0 - Live 0xf0ea3000
cpufreq_powersave 1792 0 - Live 0xf0e88000

Sorry, this with /sys/... is for me not comprehensible. Could you describe this
little more detailed, what you need?
Comment 7 Thomas Renninger 2005-08-31 10:44:37 UTC
This is a userspace problem (powersave daemon).
Seems as if something has been forgotten to check when switching modes?!?
I'll have a look and come back if I need more info...
Comment 8 Forgotten User ZhJd0F0L3x 2005-09-02 11:32:07 UTC
which cpufreq module is used? speedstep-ich? This one is too slow for ondemand
IIRC (will have to test), so you must use the userspace governor with

CPUFREQ_CONTROL=userspace
in /etc/sysconfig/powersave/cpufreq
Comment 9 Forgotten User ZhJd0F0L3x 2005-09-02 11:39:29 UTC
this might be a duplicate of bug #114616
Comment 10 Ulrich Lange 2005-09-03 03:16:05 UTC
I did CPUFREQ_CONTROL=userspace and now the CPU-speed was reduced to 730 MHz.

kpowersave showed:
Pluged in -- 98% charged -- 731 MHz

I plugged off the power and after 12 minutes the icon changed to status battery
and showed:
Running batteries -- 94% charged (3:47 hours remaining) -- 997 MHz

Something goes wrong! The speed is now unplugged higher then plugged?

----- logfile messages -----
Sep  3 14:36:21 linux rcpowersaved: enter 'speedstep_ich' into CPUFREQD_MODULE
in /etc/sysconfig/powersave/cpufreq.
Sep  3 14:36:21 linux rcpowersaved: this will speed up starting powersaved and
avoid unnecessary warnings in syslog.
Sep  3 14:36:22 linux [powersave]: WARNING (initHal:54) hal not ready. We will
try later...This may sometimes happen dur

lsmod | grep speed
speedstep_ich           5004  0
speedstep_lib           4228  1 speedstep_ich
freq_table              4612  1 speedstep_ich

----- hwinfo 1 plugged on -----
56: None 00.0: 10103 CPU
  [Created at cpu.290]
  Unique ID: rdCR.j8NaKXDZtZ6
  Hardware Class: cpu
  Arch: Intel
  Vendor: "GenuineIntel"
  Model: 6.11.1 "Intel(R) Pentium(R) III Mobile CPU      1000MHz"
  Features:
fpu,vme,de,pse,tsc,msr,pae,mce,cx8,sep,mtrr,pge,mca,cmov,pat,pse36,mmx,fxsr,sse
  Clock: 730 MHz
  Cache: 512 kb
  Config Status: cfg=new, avail=yes, need=no, active=unknown

----- hwinfo 2 plugged off -----
56: None 00.0: 10103 CPU
  [Created at cpu.290]
  Unique ID: rdCR.j8NaKXDZtZ6
  Hardware Class: cpu
  Arch: Intel
  Vendor: "GenuineIntel"
  Model: 6.11.1 "Intel(R) Pentium(R) III Mobile CPU      1000MHz"
  Features:
fpu,vme,de,pse,tsc,msr,pae,mce,cx8,sep,mtrr,pge,mca,cmov,pat,pse36,mmx,fxsr,sse
  Clock: 996 MHz
  Cache: 512 kb
  Config Status: cfg=new, avail=yes, need=no, active=unknown
Comment 11 Thomas Renninger 2005-09-03 18:11:39 UTC
kpowersave only shows a momentary snapshot of current cpufreq.
Maybe something pushed CPU load and cpufreq went up.

Better use:
watch -n1 cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq

also watch top whether your CPU load.
Seife can you watch this bug, I try to solve some ACPI issues currently...,
reassign it to me if you also have too much workload ...
Comment 12 Ulrich Lange 2005-09-06 03:16:03 UTC
Hi Thomas, what a sense it should make to use scaling_cur_freq? The results are
always the same. 
I tested again with power and battery status. I found that the status of the cpu
frequence changed after I disconnected power and I stopped and started
kpowersave. But there is no difference in scaling_cur_freq, kpowersave,
/proc/cpuinfo or hwinfo about the cpu frequence.
Comment 13 Ulrich Lange 2005-09-06 03:42:02 UTC
Created attachment 48874 [details]
/var/log/messages

I have started the daemon in debug mode /usr/sbin/powersaved -d -f
/var/run/acpid.socket -v 16 .
Interesting is the first change from 997 MHz (Line 96) to 731 MHz (Line 104).
Comment 14 Forgotten User ZhJd0F0L3x 2005-09-09 11:23:49 UTC
you are missing lots of messages if you only include "DEBUG", so please repeat
this with "-v 31" to get also INFO, DIAG, etc.
Comment 15 Forgotten User ZhJd0F0L3x 2005-09-09 11:35:27 UTC
i can not reproduce this. Are you sure that your AC profile does not have
different cpufreq settings than your battery profile? For me the frequency is
the same on AC and on battery, dynamic mode works fine on both.
There could be some interaction with weird BIOS settings, but i doubt it.

Holger, if you want to play with this: the Armada e500 on my shelf is running
with a P3 coppermine (550/700MHz).

Pavel, there is probably not much you can help here, so i'll remove you from cc :-)
Comment 16 Ulrich Lange 2005-09-09 22:27:43 UTC
Created attachment 49487 [details]
/var/log/messages

I changed the line 262 in file /etc/init.d/powersaved in startproc
/usr/sbin/powersaved -d -f /var/run/acpid.socket -v31
and started the system new. This is the logfile from this coldstart. See line
294. The CPU speed is changed here.
Comment 17 Forgotten User ZhJd0F0L3x 2005-09-14 17:42:11 UTC
the speed is changed lots of times in this logfile:

seife@strolchi:~> grep setSpeed /tmp/messages
Sep 10 10:17:00 linux [powersave]: Info (setSpeed:90) Speed set to: 997500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:02 linux [powersave]: Info (setSpeed:90) Speed set to: 731500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:09 linux [powersave]: Info (setSpeed:90) Speed set to: 997500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:10 linux [powersave]: Info (setSpeed:90) Speed set to: 731500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:11 linux [powersave]: Info (setSpeed:90) Speed set to: 997500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:13 linux [powersave]: Info (setSpeed:90) Speed set to: 731500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:23 linux [powersave]: Info (setSpeed:90) Speed set to: 997500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:24 linux [powersave]: Info (setSpeed:90) Speed set to: 731500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:25 linux [powersave]: Info (setSpeed:90) Speed set to: 997500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:26 linux [powersave]: Info (setSpeed:90) Speed set to: 731500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:27 linux [powersave]: Info (setSpeed:90) Speed set to: 997500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:31 linux [powersave]: Info (setSpeed:90) Speed set to: 731500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:32 linux [powersave]: Info (setSpeed:90) Speed set to: 997500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:36 linux [powersave]: Info (setSpeed:90) Speed set to: 731500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:37 linux [powersave]: Info (setSpeed:90) Speed set to: 997500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:43 linux [powersave]: Info (setSpeed:90) Speed set to: 731500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:44 linux [powersave]: Info (setSpeed:90) Speed set to: 997500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:44 linux [powersave]: Info (setSpeed:90) Speed set to: 731500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:45 linux [powersave]: Info (setSpeed:90) Speed set to: 997500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:45 linux [powersave]: Info (setSpeed:90) Speed set to: 731500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:45 linux [powersave]: Info (setSpeed:90) Speed set to: 997500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:46 linux [powersave]: Info (setSpeed:90) Speed set to: 731500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:50 linux [powersave]: Info (setSpeed:90) Speed set to: 997500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:17:51 linux [powersave]: Info (setSpeed:90) Speed set to: 731500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:18:00 linux [powersave]: Info (setSpeed:90) Speed set to: 997500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Sep 10 10:18:00 linux [powersave]: Info (setSpeed:90) Speed set to: 731500KHz 
in file /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed

so this actually seems to work. Also i cannot reproduce this on my speedstep-ich
machines. Since we changed the logmessage to point to the userpace governor, i
consider this bug fixed.
Comment 18 Forgotten User ZhJd0F0L3x 2005-09-26 16:24:07 UTC
*** Bug 118735 has been marked as a duplicate of this bug. ***