Ubuntu: Take actions when system temperature gets too high
- by Josh
One of the CPU fans on my Compaq Presario laptop running Ubuntu 9.10 seems to have bit the dust. The fan is deep within the case and I intend to replace the laptop in the next 6 months so it's not worth replacing it. I have the laptop on a cooling pad and most of the time the system is fine, CPU temps around 90°-110°F. Occasionally, however, I'm seeing random lockups which I believe is due to the system overheating. How can I configure the system to:
Lower the CPU speed when the temperature reaches a certain level? (I.E. 110°F)
Shutdown the system when the tempature reaches a critical level? (And what would that be? 130°?)