You are not logged in.

#1 2012-03-31 03:46:48

awayand
Member
Registered: 2009-09-25
Posts: 398

[SOLVED] I want to see my temperature

Does anyone know of a widget or some command line tool that shows me my cpu/hard drive/mainboard temperature? My laptop has some issues and turns off randomly, I want to see at what temperature that happens and be warned when it increases... Thanks!

Last edited by awayand (2012-03-31 04:44:10)

Offline

#2 2012-03-31 04:29:17

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: [SOLVED] I want to see my temperature

Conky? I'm not sure about the warning part. You might have to write a script for that. Here's a couple scripts to get the cpu temp and hard drive temp:

acpi -t | awk '{printf("%d°", $4)}'

for the hard drive it requires hddtemp run as a daemon and netcat:

nc 127.0.0.1 7634 2>/dev/null | awk '/dev/ {split($0,hd,"|"); printf("%d°", hd[4])}'

I got those from seiichiro0185.

Offline

#3 2012-03-31 04:43:54

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: [SOLVED] I want to see my temperature

Thanks! Didn't realize the acpi thing. That awk snippet is awesome!
EDIT: I use "sudo hddtemp /dev/sda" so I don't need to run the daemon...

Last edited by awayand (2012-03-31 04:44:48)

Offline

Board footer

Powered by FluxBB