Set desired CPU frequency

There seams to be a problem with some eee’s and the latest kernel that Ubuntu implements, thus it is inherited by the latest Leeenux. Newer machines do not seam to be affected by this.

Tested on eee 4G, the problem is that the CPU frequency cannot be set manually, and since this is the old machine, it is desirable to be always on 900MHz.

How to do this? Well, first let’s check our CPU’s frequency with command lscpu
The output on my eee 4G is that the current frequency is 630MHz while working something, and it drops up to 112MHz when idle.

The solution:

  1. First make sure that you have installed cpufrequtils: sudo apt-get install cpufrequtils
  2. Do these commands one by one:
    1. sudo modprobe acpi_cpufreq
    2. sudo modprobe cpufreq_performance
    3. sudo modprobe cpufreq_ondemand
    4. sudo modprobe cpufreq_conservative
    5. sudo modprobe cpufreq_powersave
    6. sudo modprobe cpufreq_stats
    7. sudo modprobe cpufreq_userspace
  3. Try sudo cpufreq-set -f 900, followed by lscpu. If it is still on less than 900MHz, continue reading. sudo modprobe p4-clockmod
  4.  sudo apt-get install indicator-cpufreq
  5.  sudo indicator-cpufreq, and give it some time to start
  6. Indicator is now in the panel and via it you can set the desired frequency. If you like it, you can add it to the panel permanently, which is exactly what I would do.

Leave a Reply