Sepero / temp-throttle

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

Add Option: sleep interval #40

Closed stossenbrink closed 6 months ago

stossenbrink commented 3 years ago

Thanks for the project. I was short on thermal paste and found this feature helpful.

Sepero commented 3 years ago

Out of curiosity, how frequently did you require the script to check temperature? 😊

Jeremy7701 commented 3 years ago

I can't use this great throttling product on my current PC due to lack of temperature sensors; on my old computer I used a modified main loop. Obviously there are lots of customisation you could do...

####### Main loop while true; do get_temp # Gets the current temperature and set it to the variable TEMP. if [ $TEMP -gt $MAX_TEMP ]; then # Throttle if too hot. throttle sleep 3 ###### wait a bit extra elif [ $TEMP -le $LOW_TEMP ]; then # Unthrottle if cool. unthrottle fi sleep 5 ###### The amount of time between checking temperatures. done

stossenbrink commented 3 years ago

Out of curiosity, how frequently did you require the script to check temperature? blush

While feeding pdfs into paperless-ng, the temperature was rising at 2C° every second, so I set the target temperature to 65C° and the interval to 0.5s. The temperature peaked at 90C° until the throttling to 0.8Ghz cooled it down. Then a loop began that was wandering around 1.5-2Ghz with 60-70C°.

Sepero commented 6 months ago

I've implemented this, but in a totally different way and with many more options. Coming in a new release soon. Thank you ❤️