HOW-TO for the 'lm-sensors' hardware monitoring package.
Posted: Fri 21 Sep 2007, 01:39
How to Install and Configure 'lm-sensors' - hardware monitoring package..
By crafty - forum name "craftybytes"..
20/09/2007.
*******************************************************************
Download from here: http://dotpups.de/dotpups/System_Utilit ... 2.10.4.pet
http://dotpups.de/dotpups/System_Utilit ... s_docs.pet
*******************************************************************
This is a short how-to on installing the lm-sensors package into Puppy.
Some background info:
=====================
My particular motherboard is a VIA chipset based - ASROCK VIA K7VM4 - with an - AMD Duron 1.8 Ghz CPU.
With a VT8235 Southbridge chip and a Winbond i/o chip, 'sensors-detect' recommended the following drivers for this board -
"i2c-viapro" & "i2c-isa" - for the adapter;
"w83781d" & "w83697hf" - for the sensor chip drivers.
For YOUR motherboard - take note of the drivers "suggested" by 'sensors-detect' - and use those as a start.
If you have problems with the "suggested" drivers - check in your M/B's technical Handbook for the 'chip' types that
are actually used - or - use "google" on the web to check..
Now to the "INSTALL" steps :-
=========================================
1. Install lm-sensors using Petget GUI.
2. In 'rxvt' terminal - type "makedev" (without quotes)..
3. Now in 'rxvt' terminal - type "sensors-detect" (without quotes) and answer YES to all YES/no questions.
I suggest use the ISA bus rather than the SMBus bus, however - YMMV.!!
At the end of the detection phase, a list of modules that needs to be loaded will displayed.
You will need to write these down or print the list for the next steps.
Below is an example of results from sensors-detect:
#************************************************* *****************************
To make the sensors modules behave correctly, add these lines to
/etc/modules:
#----cut here----
# I2C adapter drivers
i2c-viapro
i2c-isa
# I2C chip drivers
eeprom
it87
#----cut here----
To make the sensors modules behave correctly, add these lines to
/etc/modprobe.conf:
#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----
#************************************************* *******************************
4. To do this correctly, you should add the modules in reverse order (order is critical!) in "/etc/modules".
Note: for my system - the modules to use were - i2c-viapro (for the adapter driver) and - w83697hf (for the chip driver)..
So for your particular machine these 'drivers' may be different - as listed in the 'sensors-detect' report - just
substitute those for the ones shown in the examples below..
#************************************************* ***********************
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a "#", and everything on the line after them are ignored.
psmouse
mousedev
ide-cd
ide-disk
ide-generic
lp
#For lm-sensors, i2c modules
it87
i2c-viapro
i2c-isa
#end of file!
#************************************************* ****************
5.Now load the modules manually using modprobe and update the dependencies.
In 'rxvt' terminal - type:
modprobe i2c-dev
modprobe i2c-viapro # or the 'module' that was detected in above 'sensors-detect' step..
modprobe i2c-isa
modprobe it87 # or the 'module' that was detected in above 'sensors-detect' step..
depmod -a <may not be needed!>
#******************************************************************
6. Now test the sensor output using the lm-sensors utility "sensors".
In 'rxvt' terminal - type "sensors" (without quotes)..
# Example 'sensors' output:
#*******************************************************************
it87-isa-0290
Adapter: ISA adapter
VCore 1: +1.57 V (min = +1.42 V, max = +1.57 V) ALARM
VCore 2: +2.66 V (min = +2.40 V, max = +2.61 V) ALARM
+3.3V: +6.59 V (min = +3.14 V, max = +3.46 V) ALARM
+5V: +5.11 V (min = +4.76 V, max = +5.24 V)
+12V: +11.78 V (min = +11.39 V, max = +12.61 V)
-12V: -19.14 V (min = -12.63 V, max = -11.41 V) ALARM
-5V: +0.77 V (min = -5.26 V, max = -4.77 V) ALARM
Stdby: +5.00 V (min = +4.76 V, max = +5.24 V)
VBat: +3.12 V
fan1: 3668 RPM (min = 0 RPM, div =
fan2: 0 RPM (min = 664 RPM, div = ALARM
fan3: 0 RPM (min = 2657 RPM, div = 2) ALARM
M/B Temp: +39°C (low = +15°C, high = +40°C) sensor = thermistor
CPU Temp: +36°C (low = +15°C, high = +45°C) sensor = thermistor
Temp3: +96°C (low = +15°C, high = +45°C) sensor = diode
#**********************************************************************
7. If the above output looks suspect - then :
in 'rxvt' terminal - type "sensors -s" (without quotes)..
Then type "sensors" (without quotes)..
The output should hopefully now be what one would expect for YOUR particular
M/B's sensors readings..
If not - you may need to 'tweak' the settings in the "/etc/sensors.conf" file - as per step 9. below..
8. Reboot Puppy and the sensors should now be detected during the boot process properly!
9. The sensor output may be tweaked by editing the "/etc/sensors.conf" file. It is also possible to correct
inaccurate scaling too. For details check "man sensors.conf.
Note: for my M/B's settings - I had to adjust the '-12V' & '-5V' scaling formulas - to get 'sensible' readings - YMMV..!!
#==================================================================================
I hope this helps for those Puppy users who elect to install the 'lm-sensors' package - it does work and goes well with either 'conky' or 'Gkrellm' or even 'Torsmo' for continuous desktop monitoring..
Crafty.
.
By crafty - forum name "craftybytes"..
20/09/2007.
*******************************************************************
Download from here: http://dotpups.de/dotpups/System_Utilit ... 2.10.4.pet
http://dotpups.de/dotpups/System_Utilit ... s_docs.pet
*******************************************************************
This is a short how-to on installing the lm-sensors package into Puppy.
Some background info:
=====================
My particular motherboard is a VIA chipset based - ASROCK VIA K7VM4 - with an - AMD Duron 1.8 Ghz CPU.
With a VT8235 Southbridge chip and a Winbond i/o chip, 'sensors-detect' recommended the following drivers for this board -
"i2c-viapro" & "i2c-isa" - for the adapter;
"w83781d" & "w83697hf" - for the sensor chip drivers.
For YOUR motherboard - take note of the drivers "suggested" by 'sensors-detect' - and use those as a start.
If you have problems with the "suggested" drivers - check in your M/B's technical Handbook for the 'chip' types that
are actually used - or - use "google" on the web to check..
Now to the "INSTALL" steps :-
=========================================
1. Install lm-sensors using Petget GUI.
2. In 'rxvt' terminal - type "makedev" (without quotes)..
3. Now in 'rxvt' terminal - type "sensors-detect" (without quotes) and answer YES to all YES/no questions.
I suggest use the ISA bus rather than the SMBus bus, however - YMMV.!!
At the end of the detection phase, a list of modules that needs to be loaded will displayed.
You will need to write these down or print the list for the next steps.
Below is an example of results from sensors-detect:
#************************************************* *****************************
To make the sensors modules behave correctly, add these lines to
/etc/modules:
#----cut here----
# I2C adapter drivers
i2c-viapro
i2c-isa
# I2C chip drivers
eeprom
it87
#----cut here----
To make the sensors modules behave correctly, add these lines to
/etc/modprobe.conf:
#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----
#************************************************* *******************************
4. To do this correctly, you should add the modules in reverse order (order is critical!) in "/etc/modules".
Note: for my system - the modules to use were - i2c-viapro (for the adapter driver) and - w83697hf (for the chip driver)..
So for your particular machine these 'drivers' may be different - as listed in the 'sensors-detect' report - just
substitute those for the ones shown in the examples below..
#************************************************* ***********************
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a "#", and everything on the line after them are ignored.
psmouse
mousedev
ide-cd
ide-disk
ide-generic
lp
#For lm-sensors, i2c modules
it87
i2c-viapro
i2c-isa
#end of file!
#************************************************* ****************
5.Now load the modules manually using modprobe and update the dependencies.
In 'rxvt' terminal - type:
modprobe i2c-dev
modprobe i2c-viapro # or the 'module' that was detected in above 'sensors-detect' step..
modprobe i2c-isa
modprobe it87 # or the 'module' that was detected in above 'sensors-detect' step..
depmod -a <may not be needed!>
#******************************************************************
6. Now test the sensor output using the lm-sensors utility "sensors".
In 'rxvt' terminal - type "sensors" (without quotes)..
# Example 'sensors' output:
#*******************************************************************
it87-isa-0290
Adapter: ISA adapter
VCore 1: +1.57 V (min = +1.42 V, max = +1.57 V) ALARM
VCore 2: +2.66 V (min = +2.40 V, max = +2.61 V) ALARM
+3.3V: +6.59 V (min = +3.14 V, max = +3.46 V) ALARM
+5V: +5.11 V (min = +4.76 V, max = +5.24 V)
+12V: +11.78 V (min = +11.39 V, max = +12.61 V)
-12V: -19.14 V (min = -12.63 V, max = -11.41 V) ALARM
-5V: +0.77 V (min = -5.26 V, max = -4.77 V) ALARM
Stdby: +5.00 V (min = +4.76 V, max = +5.24 V)
VBat: +3.12 V
fan1: 3668 RPM (min = 0 RPM, div =
fan2: 0 RPM (min = 664 RPM, div = ALARM
fan3: 0 RPM (min = 2657 RPM, div = 2) ALARM
M/B Temp: +39°C (low = +15°C, high = +40°C) sensor = thermistor
CPU Temp: +36°C (low = +15°C, high = +45°C) sensor = thermistor
Temp3: +96°C (low = +15°C, high = +45°C) sensor = diode
#**********************************************************************
7. If the above output looks suspect - then :
in 'rxvt' terminal - type "sensors -s" (without quotes)..
Then type "sensors" (without quotes)..
The output should hopefully now be what one would expect for YOUR particular
M/B's sensors readings..
If not - you may need to 'tweak' the settings in the "/etc/sensors.conf" file - as per step 9. below..
8. Reboot Puppy and the sensors should now be detected during the boot process properly!
9. The sensor output may be tweaked by editing the "/etc/sensors.conf" file. It is also possible to correct
inaccurate scaling too. For details check "man sensors.conf.
Note: for my M/B's settings - I had to adjust the '-12V' & '-5V' scaling formulas - to get 'sensible' readings - YMMV..!!
#==================================================================================
I hope this helps for those Puppy users who elect to install the 'lm-sensors' package - it does work and goes well with either 'conky' or 'Gkrellm' or even 'Torsmo' for continuous desktop monitoring..
Crafty.
.