Modifier la fréquence de son processeur

From / Bloc Notes Informatique
Jump to: navigation, search

1 Introduction

So, you have an irritatingly loud CPU fan which is making you consider whether or not launching your laptop through the nearest window is a good idea. And you want to save the plant too ! Well, before you do that, why not give CPU frequency scaling a go. Look at laptop mode !

2 Installation

You'll need to install the package :

Command apt-get
apt-get install laptop-mode-tools

If you're on ubuntu, you can look at ubuntu-laptop-mode package.

3 Configuration

Modify this line to 1 to always activate laptop mode :

Configuration File /etc/laptop-mode/laptop-mode.conf

Then you also can modify this line to autoadapt the CPU with your needs :

Configuration File /etc/laptop-mode/conf.d/cpufreq.conf

After restart the service :

/etc/init.d/laptop-mode restart

4 Advanced Configuration

4.1 Loading Module

OK, first of all, roll up your sleeves and insert the p4_clockmod module :

Command sudo
sudo modprobe p4_clockmod

This shouldn’t return any output.

Now, add the line :

Configuration File /etc/modules

to ensure the CPU clock scaling module starts with the system.

4.2 CPU frequency scaling monitor

Now, to add the CPU frequency scaling monitor applet to the panel, right click over an empty area in the panel, select 'add to panel', and select the CPU frequency applet. Hopefully it'll pop up showing the CPU frequency now. Reboot your laptop if it doesn’t seem to be working immediately.

4.3 Set frequency

Finally, if you (like I did) get miffed off with the laptop ‘lagging’ when needing a quick boost of power, you can manually set the frequency you want it to run at. Sometimes 250Mhz just isn’t enough!

Command sudo
sudo cpufreq-selector -f 1000000

Would set the CPU frequency to 1GHz - Easy eh?

There you have it, CPU frequency scaling in 5 minutes and a good deal cheaper than lobbing your computer through a window!