Sepero / temp-throttle

A shell script for throttling system CPU frequency based on a desired maximum temperature
Other
243 stars 64 forks source link

[Feature Request] Add option to specify CPU freq to use. #54

Open Heisenborgar opened 1 month ago

Heisenborgar commented 1 month ago

I'd like to specify a specific freq like 1800MHz, rather than the default one.

Sepero commented 4 weeks ago

A specific frequency? Maximum frequency or minimum frequency?

I'm curious about the reason for such request.

Sepero commented 4 weeks ago

It's possible you could edit the script and reach your goal. First copy the frequencies file.

sudo cp /sys/devices/system/cpu/cpu$CORE/cpufreq/scaling_available_frequencies /etc/custom_cpu_frequencies

Then edit the new file /etc/custom_cpu_frequencies and remove any frequencies you don't want.

Finally, change 1 line in the temp-throttle script to be your custom frequencies file. From this:

FREQ_FILE="/sys/devices/system/cpu/cpu$CORE/cpufreq/scaling_available_frequencies"

To this:

FREQ_FILE="/etc/custom_cpu_frequencies"