Après avoir installé cpufrequtils sudo apt-get install cpufrequtils
, regardez les informations données par la commande cpufreq-info
, puis créez un fichier - sudo nano /etc/default/cpufrequtils
- et écrivez-y comme illustré dans l’image ci-dessous. Dans votre cas, max et min auraient la même valeur.
GOVERNOR="ondemand"
MIN_SPEED="800MHz"
MAX_SPEED="950MHz"
Enfin, la commande permettant au changement d’agir et d’être permanente (sauf lors de l’amorçage, c’est-à-dire) sudo /etc/init.d/cpufrequtils restart
, donnant cette sortie de cpufreq-info
:
peter@peter-HP-Compaq-2510p:~$ cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 10.0 us.
hardware limits: 800 MHz - 1.20 GHz
available frequency steps: 1.20 GHz, 1.07 GHz, 933 MHz, 800 MHz
available cpufreq governors: conservative, ondemand, userspace, powersave, performance
current policy: frequency should be within 800 MHz and 950 MHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency is 933 MHz.
cpufreq stats: 1.20 GHz:1,27%, 1.07 GHz:0,01%, 933 MHz:95,97%, 800 MHz:2,75% (5975)
analyzing CPU 1:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 1
CPUs which need to have their frequency coordinated by software: 1
maximum transition latency: 10.0 us.
hardware limits: 800 MHz - 1.20 GHz
available frequency steps: 1.20 GHz, 1.07 GHz, 933 MHz, 800 MHz
available cpufreq governors: conservative, ondemand, userspace, powersave, performance
current policy: frequency should be within 800 MHz and 950 MHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency is 800 MHz.
cpufreq stats: 1.20 GHz:1,26%, 1.07 GHz:0,01%, 933 MHz:95,83%, 800 MHz:2,90% (7039)
peter@peter-HP-Compaq-2510p:~$
Cela fonctionne pour moi sur Xubuntu 18.04.2