View the Most Wanted LQ Wiki articles.
LinuxQuestions.org > Linux Wiki > Lm-sensors

From LQWiki

Jump to: navigation, search

lm_sensors is a tool/driver for monitoring CPU/Motherboard temperature, fan speeds, voltage information, etc.

Contents

How to set it up

Warning

Installing (not only running) lm_sensors can cause your computer to spontaneously switch off days later. See lm_sensors_problems.

Quick Recipe

sensors-detect
sensors -s
/etc/init.d/lm_sensors restart
  • Test it like this
bort:~ # sensors
it8718-isa-0290
Adapter: ISA adapter
in0:       +1.26 V  (min =  +0.00 V, max =  +4.08 V)   ALARM
in1:       +3.02 V  (min =  +0.00 V, max =  +4.08 V)   ALARM
in2:       +3.33 V  (min =  +0.00 V, max =  +4.08 V)   ALARM
in3:       +3.01 V  (min =  +0.00 V, max =  +4.08 V)   ALARM
in4:       +2.98 V  (min =  +0.00 V, max =  +4.08 V)   ALARM
in5:       +0.06 V  (min =  +0.00 V, max =  +4.08 V)   ALARM
in6:       +0.10 V  (min =  +0.00 V, max =  +4.08 V)   ALARM
in7:       +2.90 V  (min =  +0.00 V, max =  +4.08 V)   ALARM
in8:       +3.06 V
fan1:     2027 RPM  (min =    0 RPM)
fan2:        0 RPM  (min =    0 RPM)
fan3:     1595 RPM  (min =    0 RPM)
temp1:       +87°C  (low  =    -1°C, high =  +127°C)   sensor = thermistor   ALARM
temp2:       +38°C  (low  =    -1°C, high =  +127°C)   sensor = thermistor   ALARM
temp3:       -35°C  (low  =    -1°C, high =  +127°C)   sensor = thermistor
vid:      +0.000 V

coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +61°C  (high =  +100°C)

coretemp-isa-0001
Adapter: ISA adapter
Core 1:      +60°C  (high =  +100°C)

coretemp-isa-0002
Adapter: ISA adapter
Core 2:      +57°C  (high =  +100°C)

coretemp-isa-0003
Adapter: ISA adapter
Core 3:      +54°C  (high =  +100°C)

Using it

Frontends

There are many front-ends for lm sensors:

Hands On

3. sensord

This daemon resides in /etc/init.d/. You need to restart it to get your sensor modules loaded and be able to gather information form them. Type:

    /etc/init.d/lm_sensors restart

Thus it will try to stop and start the deamon or just start it if it was down.

That's all. Now you will be able to use your favorite application to display your sensor's data.

External Links


Personal tools