Sunday, May 5, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2613  / 2 Years ago, thu, june 16, 2022, 6:51:11

I like to disable 'TurboBoost' and set the maximum CPU speed to a lower value. That means that ongoing calculations would take some more time, but on the other hand the computer runs quiter and has a better battery life, and maybe even more calculations per battery charge.



I tried something like echo 2000000 >/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq as root for every CPU core. However, this setup is lost if I restart the system, and even on every standby cycle.



Where to put this commands to make the change permanent? How can I enable an unprevileged user to invoke this command and adjust the frequency on his demand?


More From » power-management

 Answers
5

I've found there is a tool set named 'TLP' (http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html) that beside a vast collection of other power saving settings is able to set the maximal CPU frequency for AC and battery use on the users preference. It is no clean solution to the question because it does many more things, but most of them are useful too...



After installation, one can modify the configuration at /etc/default/tlp. There are two entries for that: CPU_SCALING_MAX_FREQ_ON_AC and CPU_SCALING_MAX_FREQ_ON_BAT. The values given there will be used by the TLP scripts to set the CPU frequency limits depending on if a battery is used or not, and it will restore the values after suspend and standby too. Changes to the config can be activated immediately using sudo tlp start.


[#30206] Saturday, June 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ionodest

Total Points: 252
Total Questions: 122
Total Answers: 100

Location: Liechtenstein
Member since Tue, Apr 27, 2021
3 Years ago
ionodest questions
Sat, Jan 1, 22, 06:31, 2 Years ago
Wed, May 12, 21, 03:21, 3 Years ago
Tue, Feb 22, 22, 09:46, 2 Years ago
Thu, Jun 30, 22, 12:12, 2 Years ago
;