You are not logged in.

#1 2008-12-08 20:05:28

vaidas
Member
Registered: 2008-02-08
Posts: 15

Laptop temperature monitor

Hi,

I offten use my laptop in my bed, sometimes if i'm compiling something or playing it just gets too hot and turns of (I forget to look to my conky for a CPU temp)

The question is - are there any software that could alert me, maybe I need to write some sort of script and integrate it into acpid or sth? I just dont know where to start...

Offline

#2 2008-12-08 20:22:55

zyghom
Member
From: Poland/currently Africa
Registered: 2006-05-11
Posts: 432
Website

Re: Laptop temperature monitor

lm_sensors


Zygfryd Homonto

Offline

#3 2008-12-08 21:23:01

toorima
Member
Registered: 2007-11-06
Posts: 12

Re: Laptop temperature monitor

Get a cooling pad, they are about $20, your laptop will thank you smile

Offline

#4 2008-12-08 21:55:51

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,222
Website

Re: Laptop temperature monitor

toorima wrote:

Get a cooling pad, they are about $20, your laptop will thank you smile

Even just a bit of wood to keep the airflow going... Assuming you want your laptop to last much longer smile

Offline

#5 2008-12-09 09:14:56

vaidas
Member
Registered: 2008-02-08
Posts: 15

Re: Laptop temperature monitor

toorima wrote:

Get a cooling pad, they are about $20, your laptop will thank you smile

Thanks, I have never known about the existance of such thing...

Found xfce4-sensors-plugin, but it only shows current temperature... I gues I will have to modify it for a bit myself....

Offline

#6 2008-12-09 10:37:49

zyghom
Member
From: Poland/currently Africa
Registered: 2006-05-11
Posts: 432
Website

Re: Laptop temperature monitor

vaidas wrote:

Found xfce4-sensors-plugin, but it only shows current temperature...

will you modify it to forecast it ?


Zygfryd Homonto

Offline

#7 2008-12-10 15:51:20

vaidas
Member
Registered: 2008-02-08
Posts: 15

Re: Laptop temperature monitor

no, just make some action when the temperature is high, to show some messagebox or notification....

Offline

#8 2008-12-10 16:25:33

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Laptop temperature monitor

vaidas wrote:

no, just make some action when the temperature is high, to show some messagebox or notification....

A script like this could do what you want:

#!/bin/sh

SLEEP=15
THRESHOLD=60
ICON=/usr/share/icons/Tango/48x48/status/gtk-dialog-warning.png

while :
do
    temp=`cat /proc/acpi/thermal_zone/THRM/temperature | sed 's/[^0-9]//g'`
    if [ $temp -gt $THRESHOLD ] && [ "$DISPLAY" = ":0.0" ]; then
        notify-send "WARNING! High Temperature!" \
            "Current system temperature is $temp" \
            -i "$ICON" \
            -t 150000 \
            -u critical
    fi
    sleep $SLEEP
done

You would need to run it with your X session (start if from .xinitrc, for example).

But in general -- this sounds like a hardware problem that should be taken care of.  If it is possible you should try opening the laptop and cleaning it out.

EDIT: You need notification-daemon package installed for this to work.

Last edited by fwojciec (2008-12-10 16:27:46)

Offline

Board footer

Powered by FluxBB