[ltp] cpufreq with fedora linux

rcobo linux-thinkpad@linux-thinkpad.org
Mon, 12 Jan 2004 01:55:13 -0500


hello,

i have a T40p i am trying to get cpufreq working in fedora

there is some vague info about  cpufreq and fedora at the end of the 
following page:

http://fedora.redhat.com/docs/release-notes/

i added a line to my /etc/rc.d/rc.local to load the speedstep module at 
boot time.

---------------------------------------------------------------------------------------- 

rc >cat /etc/rc.d/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
/sbin/insmod speedstep-centrino
---------------------------------------------------------------------------------------- 


but it only works one way. i can only go from powersafe mode (started by 
default when booting on batteries) to performance.
i cannot go from performance mode to powersafe mode.

(booting from batteries/ no AC )
---------------------------------------------------------------------------------------- 

rc >cat /proc/cpufreq
         minimum CPU frequency  -  maximum CPU frequency  -  policy
CPU  0       600000 kHz ( 37 %)  -    1600000 kHz (100 %)  -  powersafe
---------------------------------------------------------------------------------------- 

                                                                                                          
^
when i try this command

--------------------------------------------------------------------------------------- 

echo -n "0:600000:1600000:performance" > /proc/cpufreq
--------------------------------------------------------------------------------------- 


it works as shown by:

---------------------------------------------------------------------------------------- 

rc >cat /proc/cpufreq
         minimum CPU frequency  -  maximum CPU frequency  -  policy
CPU  0       600000 kHz ( 37 %)  -    1600000 kHz (100 %)  -  performance
---------------------------------------------------------------------------------------- 

                                                                                                            
^
                                                                         
                                   

but it doesn't work the other way around

---------------------------------------------------------------------------------------- 

echo -n "0:600000:1600000:powersafe" > /proc/cpufreq

rc >cat /proc/cpufreq
         minimum CPU frequency  -  maximum CPU frequency  -  policy
CPU  0       600000 kHz ( 37 %)  -    1600000 kHz (100 %)  -  performance
---------------------------------------------------------------------------------------- 

                                                                                                            
^

i have also tried to set it with percentage instead of Khz with no 
avail. once it is set to performance, there is no way back to powersafe.

does anybody know how to make it work?


TX