overheatd

Download

overheatd-0.1.tar.xz (2010-10-22)

What ?

From time to time, my laptop decides to shutdown when the temperature is above 100 °C. That's not funny, so I had to do something about it.

This little daemon looks every 5 seconds if the temperature is above a certain level (default 90 °C). If it is, it'll advise the CPU to go into powersafe mode (lowest possible speed) via cpufreq. If the temperature is low again, it'll set it back to ondemand.

Parameters

-t [temp] Set temperature treshold in °C (default: 90)
-p [poll] poll interval in seconds (default: 5)
-l [logfile] logfile (default: /var/log/overheatd.log)

Anything else ?

I'm not sure what this tool does if the number of CPUs is 10 or above - it may run wild, crash, I don't know. If you made any experience, feel free to email me.

Warning

I'm a poor programmer and fiddling with the temperature of your CPU may be dangerous. I won't buy you a new one if it burns yours. In other words: Use at your own risk.

Legal stuff

I don't like licensing incompatibilities, so I decided to release code as "public domain" (strictly speaking this is not possible in Germany where I come from, but I give you all rights on my code, which means the same). This means: Do with it whatever you want.

License

I, the copyright holder of this work, hereby release it into the public domain. This applies worldwide. In case this is not legally possible: I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.