You are not logged in.
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
lm_sensors
Zygfryd Homonto
Offline
Get a cooling pad, they are about $20, your laptop will thank you
Offline
Get a cooling pad, they are about $20, your laptop will thank you
Even just a bit of wood to keep the airflow going... Assuming you want your laptop to last much longer
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Get a cooling pad, they are about $20, your laptop will thank you
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
Found xfce4-sensors-plugin, but it only shows current temperature...
will you modify it to forecast it ?
Zygfryd Homonto
Offline
no, just make some action when the temperature is high, to show some messagebox or notification....
Offline
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