On 23 Oct 2024 14:46 -0400, from e...@gmx.us (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?

CPU speed is controlled by the CPU frequency governor.

Set /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor to
"ondemand" or "conservative" (the main difference is how quickly they
react to load changes), and 
/sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq
as desired. (Value in the latter is in Hz.) The
"scaling_available_governors" and "scaling_available_frequencies"
pseudo-files in the same directory are likely to be instructive.

You can also set the governor to "powersave" to run the CPU at its
minimum supported speed.

The changes will be lost on reboot so you'll need something to reapply
them during or after a reboot if that's what you want.

I think the linux-cpupower Debian package provides a nicer CLI
front-end.

-- 
Michael Kjörling
🔗 https://michael.kjorling.se

Reply via email to