Last night I went to sleep while running a heavy program that used 100% of my Intel i7 multicore processor. When I woke up in the morning, I found my laptop powered off. A look through the /var/log/syslog confirmed that it had shut off due to over heating.
So to control temperature, I wrote a script to throttle cpu frequency. This script must be run with root privileges (sudo) to work. For a desired max temperature of 80 degrees Celsius, use a command like this:
sudo ./temp_throttle.sh 80
This can also result in longer battery life on laptops and portable devices.
Note: This script may not be effective if your system over heating is primarily due to factors other than your CPU. This script simply throttles your CPU frequency based on your systems reported temperature.
Click here to download this temperature throttling script for Linux. Please direct links to this page and the download location will remain up to date.
New User Resources:
Download: temperature throttling script - temp_throttle.sh
If this script helps you in any way, please pay me with a message of thanks, and share this page with others. If you have better ideas or suggestions, then contact me in the comments or email sepero 111 @ gmail.com
cpu scaling temperature control Linux