[MLUG] Setting the cpu frequency permanently

Sorin Toma sorinakis at gmail.com
Sat Dec 27 12:20:10 EST 2008


Nick Nobody wrote:
> [...]
>
> My question is, is there a proper way to always make the processor run at
> full speed (Ie. persist across reboots)? I know it's possible if you use a
> cpu frequency control applet, but this system doesn't run a desktop
> environment. Right now I just include the previously mentioned bash script
> in an rc file, but I'd like the know the proper way (if there is a
> standard way) to do it.
>   
Hello,
you can blacklist the cpufreq modules.
/[root at Mobile ~]# lsmod  | grep cpu
cpufreq_ondemand        7372  0
cpufreq_conservative     7016  0
cpufreq_powersave       2240  0
freq_table              4480  2 cpufreq_ondemand,speedstep_centrino/

so, let's check the freq:
/[root at Mobile ~]# cpufreq-info
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux at brodo.de, please.
analyzing CPU 0:
  driver: centrino
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 600 MHz - 1.50 GHz
  available frequency steps: 600 MHz, 800 MHz, 1000 MHz, 1.20 GHz, 1.40 
GHz, 1.50 GHz
  available cpufreq governors: ondemand, conservative, powersave, 
userspace, performance
  current policy: frequency should be within 600 MHz and 1.50 GHz.
                  The governor "userspace" may decide which speed to use
                  within this range.
  current CPU frequency is 600 MHz (asserted by call to hardware).
/
Then let's remove the modules:
/[root at Mobile ~]# rmmod cpufreq_ondemand cpufreq_conservative 
cpufreq_powersave speedstep_centrino freq_table

/ Check again:
/[root at Mobile ~]# cpufreq-info
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux at brodo.de, please.
analyzing CPU 0:
  no or unknown cpufreq driver is active on this CPU

/Hmm, so, checking the old way:
/[root at Mobile ~]# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 9
model name      : Intel(R) Pentium(R) M processor 1500MHz
stepping        : 5
*cpu MHz         : 1500.069*
/
That's it! Now let's modify the /etc/modprobe.d/blacklist (other 
distro's use different names) by adding cpufreq, speedstep and 
freq_table here.
Reboot to check and voila!

/
/

-- 
Best Regards,
Sorin Toma 



More information about the mlug mailing list