Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have been having an overheating issue which makes my laptop shutdown immediately. Is there anyway to monitor the temperature from the sensor and scale down the CPU frequency to avoid that problem? Is there any existing software or shell script that can handle that job?

share|improve this question
up vote 7 down vote accepted

You should have a look at cpufreq-set and cpufreq-info. On Debian and derived distros they are in the cpufrequtils package. For example, on an old laptop with a bad fan that I use as a file server at home I have made these settings:

sudo cpufreq-set -c 0 -g ondemand -u 800000
sudo cpufreq-set -c 1 -g ondemand -u 800000
share|improve this answer
Great, I've just tried and it work great! – tiger2wander Jun 15 '11 at 11:15

There are such tools, but you should look into blowing dust out of your laptop cooler heatsink instead. If that doesn't help you might want to examine/replace thermal grease under heatsink or ultimately bring your laptop to authorized service.

Note: disassembling a typical laptop might be not a trivial task, but instructions can be found on the web rather easily. Consult your warranty card before disassembling!

share|improve this answer
You're giving legal advice to people from Vietnam? ;) – Kim Jun 15 '11 at 11:15
I has disassemble already to clean vacuum from air vent and also use an external cooler but it don't help much. I'm living in a big city so the way to clean vacuum frequently will make my laptop go damage fast :P may the better heatsink can help a bit, thanks! – tiger2wander Jun 15 '11 at 11:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.