[ltp] cpu MHz & TP-T30 & FC3

morpheus linux-thinkpad@linux-thinkpad.org
Fri, 14 Jan 2005 12:13:02 -0500


If you really want maximum CPU speed all the time, you can change the
governor to "performance".
# echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Then if you
cat /proc/cpuinfo
It should be at maximum.  However, as Christopher says, there's no need
to run at maximum since cpuspeed will automatically give you the cpu
power that you need according to load.
To return to speed-stepping, type:
# echo userspace > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

For even more fun, you can set the cpu speed explicitly, as follows:

# echo 1200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed

Be sure to only use valid cpu speeds.  A list of supported speeds for
your cpu is available as follows:

# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies

Have fun!
-m


On Fri, 2005-01-14 at 09:06 +0100, Pino Giaquinto wrote:
> When I type form the console:
> 
> cat /proc/cpuinfo
> 
> With AC power supply I see:
> 
> processor : 0
> vendor_id : GenuineIntel
> cpu family : 15
> model : 2
> model name : Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz
> stepping : 4
> cpu MHz : 1196.263
>  ...
> 
> Must be 'cpu MHz : 1800' when I use AC power supply and 'cpu MHz : 1200' 
> when I use battery???
> 
> Besides If I type:
> 
> cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
> 
> I see:
> 
> 1200000
> 
> If I type
> 
> cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
> 
> I see:
> 
> 1800000
> 
> Please help me...! 
> 
>