WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: lm-sensors  (Read 4180 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
lm-sensors
« on: February 03, 2009, 10:12:54 AM »
lm-sensors extensions posted

Basically a utility that will attempt to detect various sensors on your motherboard - temperature, fan speed, cpu voltage, etc - and propose the kernel modules required to monitor any sensors found.

Note that once the sensors are located and the kernel modules loaded, various sensors can be monitored with conky without any further requirement for lm-sensors.

Code: [Select]
Title:          lm-sensors.tcel
Description:    lm-sensors
Version:        3.0.2
Author:         see list of sites below
Original-site:  see list of sites below
Copying-policy: see list of sites below
Size: 120K
Extension_by:   juanito
Comments:       motherboard sensors detection utility
                requires bash.tce, perl5.tcel, hwmon-cpufreq-2.6.26.tcem
                ----------
                $ sudo sensors-detect
                ..will attempt to detect sensors and propose required kernel modules
                $ sensors
                .. will display sensor readings once kernel modules are loaded
                ----------
                This extension contains:
                lm_sensors-3.0.2 - GPLv2 - http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-3.0.2.tar.bz2
Change-log:     First version
Current:        2009/02/02

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: lm-sensors
« Reply #1 on: February 03, 2009, 10:34:31 AM »
..a worked example:
Code: [Select]
$ sudo sensors-detect         
# sensors-detect revision 5249 (2008-05-11 22:56:25 +0200)

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.
...
Now follows a summary of the probes I have just done.
Just press ENTER to continue:

Driver `lm78' (should be inserted):
  Detects correctly:
  * Bus `SMBus PIIX4 adapter at 8800'
    Busdriver `i2c-piix4', I2C address 0x2d
    Chip `National Semiconductor LM78' (confidence: 6)

Driver `lm75' (should be inserted):
  Detects correctly:
  * Bus `SMBus PIIX4 adapter at 8800'
    Busdriver `i2c-piix4', I2C address 0x48
    Chip `National Semiconductor LM75' (confidence: 6)

Do you want to generate /etc/sysconfig/lm_sensors? (YES/no):
[this bit doesn't work..]

..so load the modules and then:
Code: [Select]
$ sensors
lm75-i2c-0-48
Adapter: SMBus PIIX4 adapter at 8800
temp1:       +28.5 C  (high = +52.0 C, hyst = +47.0 C) 

lm78-i2c-0-2d
Adapter: SMBus PIIX4 adapter at 8800
VCore 1:     +1.12 V  (min =  +0.26 V, max =  +2.05 V)   
VCore 2:     +1.22 V  (min =  +0.26 V, max =  +2.05 V)   
+3.3V:       +0.05 V  (min =  +0.83 V, max =  +3.07 V)   ALARM
+5V:         +4.70 V  (min =  +1.40 V, max =  +5.16 V)   
+12V:       +11.00 V  (min =  +8.33 V, max = +13.86 V)   
-12V:       -11.52 V  (min =  -9.74 V, max = -13.13 V)   
-5V:         -4.19 V  (min =  -3.13 V, max =  -5.23 V)   
fan1:       3668 RPM  (min = 2343 RPM, div = 4)
fan2:       3276 RPM  (min = 2343 RPM, div = 4)
fan3:          0 RPM  (min =    0 RPM, div = 2)
temp1:       +29.0 C  (high = +52.0 C, hyst = +47.0 C) 
cpu0_vid:   +3.500 V

..and something like the following in .conkyrc will display the sensor readings:
Code: [Select]
fan1:     $color ${i2c 0-002d fan 1} rpm
fan2:     $color ${i2c 0-002d fan 2} rpm
fan3:     $color ${i2c 0-002d fan 3} rpm
temp1:    $color ${i2c 0-002d temp 1} degC
temp2:    $color ${i2c 0-0048 temp 1} degC

note:

/sys/bus/i2c/devices/0-002d
/sys/bus/i2c/devices/0-0048