Tuesday, October 2, 2012

lm-sensors reads cpu temperature (available in Debian repository)

Lm-sensors available in debian repository helps to find cpu temperature along with other readings.

Package download and information.
http://packages.debian.org/squeeze/lm-sensors
http://lm-sensors.org/

Usage is simple. Install it using apt so it starts like this.

$ sudo apt-get install lm-sensors     # install package

$ sudo sensors-detect    # this will probe your cpu for drivers that can be used for getting the readings. Follow the instructions which is quite informative.

The command will suggest available drivers which has to be loaded via modprobe command. Additionally add the lines suggested by sensors-detect to /etc/modules file so it loads on each reboot.

$ sudo sensors    # gives you readings.

Sample output :

fayad@mintboxd /var/log $ sudo sensors
[sudo] password for fayad:
acpitz-virtual-0
Adapter: Virtual device
temp1:        +45.0°C  (crit = +88.0°C)
temp2:        +45.0°C  (crit = +88.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +47.0°C  (high = +80.0°C, crit = +90.0°C)
fayad@mintboxd /var/log $

No comments:

Post a Comment