Of course, in linux we have the complete control over all aspects of computing and you can control your cpu speed with cpufrequtils.
Run the following to install cpufrequtils:
$sudo apt-get install cpufrequtilsThe next step is to learn about cpufrequtils, it has two programs: cpufreq-info and cpufreq-set. Just run cpufreq-info to get all the info you need on the cpu frequency settings. The important things to note are the governor values and the available step frequencies. Then you can just run the cpufreq-set to set it at the desired frequency. The painful thing is you have to set it for a given cpu at a time. This should set the cpus to a powersave mode:
$sudo cpufreq-set -c 0 -g powersave $sudo cpufreq-set -c 1 -g powersave $sudo cpufreq-set -c 2 -g powersave $sudo cpufreq-set -c 3 -g powersaveIn case you have more cores as specified by cpufreq-info set all of them. If you want to get more performance, say because you are running a flash player. (I know they just suck the battery life!!). If you want performance just set the governor option -g to performance. You can also look at the scaling percentages of cpus with the cpufreq-info, in case you see your cpu underperforming. Happy hacking!!!
No comments:
Post a Comment