Am Mittwoch, 23. Oktober 2024, 20:46:05 CEST schrieb Eben King:
> I have a variable-speed CPU.  Normally the OS manages it.  If I want to make
> less heat inside the case, is it possible to cap it at a certain speed?

Try the command "cpufreq-set" like the example:

cpufreq-set -c 0 -u 800MHz

or any frequency your cpu can use.

I added this command to a little shell script named "cpufreq-min.sh" and copied 
it to /usr/bin/

So the cpu is forced to stay low on frequency. There is another script, called 
"cpufreq-max.sh" 
which does set the opposite, I guess you know the trick.

Note: You must set each cpu seperately, so if you got i.e. 4 cores, your sript 
will need 4 lines for 
each core, like: 

---

#:/bin/bash

cpufreq-set -c 0 -u 800MHz
cpufreq-set -c 1 -u 800MHz
cpufreq-set -c 2 -u 800MHz
cpufreq-set -c 3 -u 800MHz

---

This got the advantage, you can control each core seperately.

Hope this helps.

Best

Hans

Reply via email to