Koozali.org: home of the SME Server

temperature sensor options and lm_sensors

Anonymous

temperature sensor options and lm_sensors
« on: April 20, 2004, 08:18:46 PM »
I have two Intel i865G Chipset Motherboards: Model "D865GBFL" with SME 6 installed on both. The Intel 82801EB part of the chipset is supported by i2c-i801 driver for lm_sensors. I have gotten lm_sensors installed and working on other hardware with sme but just can't seem to get it working with this motherboard. Is there another option for temp monitoring that will work with lm_sensors or something else. We seem to be having an over heating problem, and really need to be able to monitor sensor readings. Sysmon, and other tools are running and nice, but with out temp, and fan info we are stuck. Any idea on how to get this working with what we have, or some inexpensive ad on card with sensor probes.

Offline Reinhold

  • *
  • 517
  • +0/-0
    • http://127.0.0.1
temperature sensor options and lm_sensors
« Reply #1 on: April 20, 2004, 11:45:49 PM »
Just a note...
The rpm SME version of lm-sensors is a bit on the old side... .-)
"rpm -Uvh" the newest one you find on their website...
I believe they do support the previous version of the chipset that has the same temp sensor interface.

Reinhold
............

Anonymous

temperature sensor options and lm_sensors
« Reply #2 on: April 21, 2004, 12:04:44 AM »
Thanks... yea I noticed that too. I just got it all working. I installed the dev stuff and kernel headers, then compiled the latest i2c and lm_sensors. Now all is working great. Just took me 2 hours to figure it all out though..

Woodbuger

temperature sensor options and lm_sensors
« Reply #3 on: April 21, 2004, 05:49:04 AM »
Well Ive been struggling with this for about a week now to no avail. But then Im a bit of a newbie to Linux.

SME system:
800 Duron
Syntax SV266A MB
384mb Ram
sme 6.01 custom iso configured as server/gateway

Anyone kind enough to walk me through this?
I believe that I need to update the Kernal to run the latest ver of lm_sensors.

Any help appreciated!

mbachmann

temperature sensor options and lm_sensors
« Reply #4 on: April 21, 2004, 10:24:02 AM »
Guest, who installed lm_sensor on i865G: i think the SME community would appreciate very much if you put your efforts into a  howto and make it available to us.

Offline Reinhold

  • *
  • 517
  • +0/-0
    • http://127.0.0.1
temperature sensor options and lm_sensors
« Reply #5 on: April 21, 2004, 11:19:25 AM »
mbachman,

There ain't much to say:
lm_sensors itself is pretty independed easy to compile and install
Most people don't even need that since the e-smith contribs
(sysmon et al) work well
plus the lm_sensors developers often
output new dev code AND ATrpms supplies rpms within days ...

(0)diy compile ...for people from "krautland" only .-)
http://www.antbear.org/linux24_lm_sensors.html

(1)ATrpms ... for SME stock (rh7.3):
http://atrpms.net/dist/rh3/lm_sensors/

Howto for new lm_sensors (as of today) is 2 commands:
grab package
wget "http://download.atrpms.net/production/packages/redhat-7.3-i386/atrpms/lm_sensors-2.8.6-0_28.rh7.3.at.i386.rpm"
install package
rpm -Uvh  lm_sensors-2.8.6-0_28.rh7.3.at.i386.rpm

should be all you need...

Reinhold

P.S.: Woodburger -nope- no new kernel just use the stuff above (interesting concept though ;-)
BTW: You DID look for the WELLSI contrib/homepage ???
That IS walking you through...look here:
http://www.wellsi.com/sme/lms/lm_sensors.html
............

wififun

temperature sensor options and lm_sensors
« Reply #6 on: April 21, 2004, 06:55:19 PM »
Original guest here:

Reinhold's post about the rpms should work for most folks. For some reason they did not work correctly for me. The sensors-detect component would just not find anything after using the rpms. Here is what I did to get things running (it did not take long, but be aware of what you are doing):

First: i already had the sysmon contrib installed.
From http://mirror.contribs.org/smeserver/contribs/hpe/devtools-6.01/dev-rpms/
I wget and installed with rpm -Uvh the following:
autoconf-2.13-17.noarch.rpm
automake-1.4p5-4.noarch.rpm
bison-1.35-1.i386.rpm
cpp-2.96-113.i386.rpm
gcc-2.96-113.i386.rpm
glibc-devel-2.2.5-44.i386.rpm
glibc-kernheaders-2.4-7.16.i386.rpm
kernel-source-2.4.20-18.7.i386.rpm
m4-1.4.1-7.i386.rpm

Then I needed flex to compile lm_sensors so
wget http://umn.dl.sourceforge.net/sourceforge/lex/flex-2.5.31.tar.gz
follow it's directions in INSTALL: basically ./configure; make; make install

Then grab:
wget http://secure.netroedge.com/~lm78/archive/i2c-2.8.4.tar.gz
wget http://secure.netroedge.com/~lm78/archive/lm_sensors-2.8.6.tar.gz

gzip -d and tar -xf the silly things and follow the quick directions here:
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/QUICKSTART
Again, just make; make install.

Finally follow the install steps 3-7 here:
http://www.wellsi.com/sme/lms/lm_sensors.html

If everything worked, you should be all set. Like I said, I had sysmon already installed and running from the great contrib, so once this was running sysmon now displayed all the sensor with out any further configuration.

The total time using this method should take about 10-20 min. But do try the rpm's first. That is defiantly easier.

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
temperature sensor options and lm_sensors
« Reply #7 on: April 21, 2004, 07:37:58 PM »
I'll update my lm-sensor HowTo based on this thread.

I looked at it a while ago and realised that it was getting quite old - but didn't get around to updating it.

I have found that there are many people who appreciate being walked through at a nice slow pace - as well as many who are happy enough to be given just a hint as they can work out all the details.

So thanks again for the updates - I'll try to update wellsi.com at the weekend.

Ian
............

Woodbuger

temperature sensor options and lm_sensors
« Reply #8 on: April 22, 2004, 07:39:41 AM »
ok everything goes fine (detection and so forth). I do what it tells me to do in the directions.(adding  the lines where it specifies). But when I get to the last step for initialization at bootup, which is: copy prog/init/lm_sensors.init to /etc/rc.d/lm_sensors the directory "prog" does not exist! I did a search for lm_sensors.init. The only file found was empty. Someone please help!

Anonymous

temperature sensor options and lm_sensors
« Reply #9 on: April 23, 2004, 10:51:29 AM »
wellsi - great if you can update your walkthrough. It sure will help many people in the community.
Kindly note that it is almost always a bad idea to install several drivers... definitely if you intend to use the SME-sysmon... for instance Asus boards with VIA chipsets will always display "0" or worse on the VIA side of things .-) "Like it says: "Drivers are listed in two groups: bus and chip. In general, you need one of each."
You might want to refer readers to:
http://www2.lm-sensors.nu/~lm78/identify.html
...again thanks for the work up to now.

wififun - another "great summary".
I guess your problem may be described already in the prob's section:
"If you do not install the latest i2c, lm_sensors will probably not compile or fail to work properly, even if you have I2C support in your kernel!"
ALSO: FELLOW READERS (if you have followed wififuns' howto)
... do not leave gcc and stuff on a production (outside connected) SME server
... I strongly believe that it's a bad idea to give an attacker an environment on your SME
where he may compile his rootkit directly on your server  :evil:

Woodburger - not sure what you are talking about here
(0) copy is not (really) a valid command .-)
(1) to start you could try
/etc/e-smith/events/local/start_lmsensors
(2) the config file is in (note this is SME): etc/sensors.conf
(...which Wellsi (no doubt) all told you to do/about .-)

Enjoy
Reinhold

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
temperature sensor options and lm_sensors
« Reply #10 on: April 24, 2004, 04:22:57 PM »
As the sun is actually out in the UK for once it may take a little longer to do the update.

On my first test machine I found a problem with just using the lm_sensors-2.8.6-0_28.rh7.3.at.i386.rpm it could not read the temperature.

ERROR: Can't get TEMP1 data!
ERROR: Can't get TEMP2 data!
ERROR: Can't get TEMP3 data!

A little google reveals

"User had an old kernel module (2.6.5) with recent user-space tools (2.8.6),
which was causing the problems."

I'll try the self-compile route on this machine, and try this rpm on test machine machine two later.

===
I found out later that sysmon displayed the temperature correctly despite the 'errors' shown above.
............

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
temperature sensor options and lm_sensors
« Reply #11 on: April 24, 2004, 09:12:09 PM »
Ok, on my other test machine the RPM install went OK - and I see that the install is now easier.

modules.conf may need to be updated as usual, but instead of the init file try:

# ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S86lm_sensors
# /sbin/e-smith/config set lm_sensors service status enabled

which will start it on bootup.

And if you want to start it now...
# /sbin/service lm_sensors start

It is also very easy to change the active sensors as  /etc/sysconfig/lm_sensors contains the module list so delete the ones you don't want.

Reinhold
Quote
Kindly note that it is almost always a bad idea to install several drivers... definitely if you intend to use the SME-sysmon... for instance Asus boards with VIA chipsets will always display "0" or worse on the VIA side of things .-) "Like it says: "Drivers are listed in two groups: bus and chip. In general, you need one of each."
You might want to refer readers to:
http://www2.lm-sensors.nu/~lm78/identify.html
...again thanks for the work up to now.


could you explain this a little more, I didn't really understand this.
............

Woodbuger

temperature sensor options and lm_sensors
« Reply #12 on: April 24, 2004, 10:35:58 PM »
After following wififuns instructions, I managed to get lm_sensors to work on my system! Thank you so much wififun for the stepthru. Wellsi, you deserve a pat on the back for all of your hard work and time too. Now how do I get the sensors to work in sysmon? I have the graphs there for them but everything shows 0!

Thanks again

Anonymous

temperature sensor options and lm_sensors
« Reply #13 on: April 25, 2004, 02:42:17 PM »
wellsi,

Just briefly (since the sun's shining here too .-)

IMO (2) main sources of failure in lm_sensors...
chipdrivers - Most modern mainboards will have serveral possibilities to add sensors (Northbridge or additional I/O chips have means to attach them).
busdrivers - There is at least two main types of bus driver installation:  ISA and I2C (I square C, Philipps).

Many mainboard manufacturers, notably ASUS, will use their own special chips and any "cross" connection (possible !) or worse double installation will be problematic and most likely not work accurately.

SO use ON OF EACH ... and not more!

Ex.: lm_sensors will detect the VIA and the ASUS part.
The "standard" (Wellsi 8-) installation in SME including sysmon will then install ISA and I2C drivers and maybe even two chipsets.  
- May seem to work but may also show "dummy" values especially for temperatures.

With the rule "one of each", the link I gave and a short look onto the mainboard most trouble can be avoided.

OK?

Reinhold

wififun

temperature sensor options and lm_sensors
« Reply #14 on: April 25, 2004, 08:13:50 PM »
Woodbuger,
You had sysmon already installed I take it. My first thought is that you don't actually have lm_sensors running. What happens when you type sensors from the console? Ie: This is one of mine:

Code: [Select]

[user@domain user]# sensors
adm1027-i2c-0-2e
Adapter: SMBus I801 adapter at c400
in0:       +1.475 V  (min =  +0.00 V, max =  +3.32 V)  
in1:       +1.509 V  (min =  +0.00 V, max =  +2.99 V)  
in2:       +3.412 V  (min =  +0.00 V, max =  +4.38 V)  
in3:      +5.176 V  (min =  +0.00 V, max =  +6.64 V)  
in4:      +12.219 V  (min =  +0.00 V, max = +15.94 V)  
fan1:      3752 RPM  (min =    0 RPM)                    
fan2:         0 RPM  (min =    0 RPM)                    
fan3:         0 RPM  (min =    0 RPM)                    
fan4:      4791 RPM  (min =    0 RPM)                    
temp1:    +43.25?C  (low  =  -127?C, high =  +127?C)      
temp2:    +43.00?C  (low  =  -127?C, high =  +127?C)      
temp3:    +46.50?C  (low  =  -127?C, high =  +127?C)      
pwm1:      255
pwm2:      255
pwm3:      255
vid:      +1.525 V    (VRM Version  9.1)

eeprom-i2c-0-50
Adapter: SMBus I801 adapter at c400
Memory type:            DDR SDRAM DIMM
Memory size (MB):       256

eeprom-i2c-0-52
Adapter: SMBus I801 adapter at c400
Memory type:            DDR SDRAM DIMM
Memory size (MB):       256

arp-i2c-0-61
Adapter: SMBus I801 adapter at c400


You can see that the sensors are returning data. Also keep in mind that symon'a default graphs are updated every 1 and 5 min. The first page is I believe a 5 min graph. It will take a bit before you see anything. Of running sensors does not show any data, then lm_sensors is not running correctly. Recheck step 7 from http://www.wellsi.com/sme/lms/lm_sensors.html

Let us know if this still does not work. Make sure you have removed the dev stuff once this is done if this machine is connected to the internet.

Woodbuger

temperature sensor options and lm_sensors
« Reply #15 on: April 26, 2004, 05:42:47 AM »
wififun:
Yes, sysmon is installed (was included in 6.01-01 custom iso). I get sensor output when I callup "sensors" but only in command line. I had lm_sensors-2.6.1-1.i386.rpm installed via the "Update system" button in server-manager but never could get it to initialize upon reboot. If I modprobed the sensors they would begin graphing in sysmon. I then removed the rpm and installed the newer version following your (and Wellsis) directions. The graphs have never worked since. The next thing I did might have been a mistake but I removed the sensors.rrd to get rid of the graphs. Hope this makes sense.

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
temperature sensor options and lm_sensors
« Reply #16 on: April 26, 2004, 08:01:25 AM »
If you get the sensor output from the command line then at least we know that lm_sensors is running.

You should be able to clear out the '/var/lib/rrd/' directory at anytime - you just lose the past history.

So the following would ensure a clean start.
# /bin/rm /var/lib/rrd/*

If I then wait a few minutes the data is there:

[root@testserver home]# ls /var/lib/rrd
drive_hda1.rrd  host_gateway.rrd  processors.rrd  sysmon.rrd
drive_hda3.rrd  iface_eth0.rrd    sensors.rrd     sysmon.stats

You may want to read Reinhold's posts in this thread as he says that if you have too many modules loaded you may see zeroes in sysmon.
............

Woodbuger

temperature sensor options and lm_sensors
« Reply #17 on: April 27, 2004, 01:25:15 AM »
I tried that wellsi but no go on sensors.rrd! All I have is:
drive_hda1.rrd  host_gateway.rrd  iface_ppp0.rrd  sysmon.rrd
drive_hda3.rrd  iface_eth0.rrd    processors.rrd  sysmon.stats
Ive been using your server manager panel lmsensor script with hddtemp integrated. Seems to suffice for now.

Sensor Information

--------------------------------------------------------------------------------


it87-isa-0290
 Adapter: ISA adapter
 VCore 1:   +1.65 V  (min =  +1.50 V, max =  +1.73 V)  
 VCore 2:   +2.56 V  (min =  +2.40 V, max =  +2.61 V)  
 +3.3V:     +3.34 V  (min =  +3.14 V, max =  +3.46 V)  
 +5V:       +4.94 V  (min =  +4.74 V, max =  +5.24 V)  
 +12V:     +11.96 V  (min = +11.40 V, max = +12.60 V)  
 -12V:      -8.80 V  (min = -12.63 V, max = -11.41 V)   ALARM
 -5V:       -2.56 V  (min =  -5.24 V, max =  -4.76 V)   ALARM
 Stdby:     +2.55 V  (min =  +4.74 V, max =  +5.24 V)   ALARM
 VBat:      +2.03 V
 fan1:     5625 RPM  (min = 2008 RPM, div = 8)          
 fan2:     2678 RPM  (min = 2008 RPM, div = 8)          
 fan3:        0 RPM  (min = 2008 RPM, div = 8)          
 M/B Temp:    +29 C  (low  =   +15 C, high =   +40 C)   sensor = thermistor  
 CPU Temp:    +35 C  (low  =   +15 C, high =   +45 C)   sensor = thermistor  
 


/dev/hda: ST310014A: 27 C
 :lol:

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
temperature sensor options and lm_sensors
« Reply #18 on: May 01, 2004, 08:03:44 PM »
I have updated

http://www.wellsi.com/sme/lms/lm_sensors.html

I have tweaked the classic install, added details of how to install the latest RPMs and will later add the install from source once I have tried that.

All comments (and corrections) welcome
Ian
............

Woodbuger

temperature sensor options and lm_sensors
« Reply #19 on: May 03, 2004, 12:03:00 AM »
Thanks for the support wellsi!

Brian J

temperature sensor options and lm_sensors
« Reply #20 on: July 08, 2004, 12:08:45 PM »
Quote from: "wellsi"
I have updated

http://www.wellsi.com/sme/lms/lm_sensors.html

I have tweaked the classic install, added details of how to install the latest RPMs and will later add the install from source once I have tried that.

All comments (and corrections) welcome
Ian


I do not have all the development stuff on my machine. If one of you has compiled vt8231 (VIA Epia 800 support) with the latest 6.01 e-smith release and preferable 2.8.6 or 2.8.7 of lm_sensors and can mail it to me I'd be thankful.

mailto: brj (at) ready.dk

Regards
Brian

Cyrus

temperature sensor options and lm_sensors
« Reply #21 on: July 13, 2005, 08:38:10 AM »
When I try to follow the how to here:

http://wellsi.com/sme/lms/lm_sensors.html

All I get is:

WARNING! If you have some things built into your kernel, the
below list will contain too many modules. Skip the appropriate ones!
To load everything that is needed, add this to some /etc/rc* file:

#----cut here----
# I2C adapter drivers
# I2C chip drivers
#----cut here----

To make the sensors modules behave correctly, add these lines to either
/etc/modules.conf or /etc/conf.modules:

#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----


Just wondering why it does not detect any of the sensors?

I am running an ASUS P4P800 (Intel i865PE chipset)

Thanks

Cy