At the risk that this is an incredibly stupid question, I'm going to ask it anyways <g>. I have lm_sensors installed on my AMD64 box, it seems to work fine other than a questionable voltage alarm that is likely a sensors.conf setting issue. # sensors w83697hf-isa-0290 Adapter: ISA adapter VCore: +1.50 V (min = +1.71 V, max = +1.89 V) +3.3V: +3.38 V (min = +3.14 V, max = +3.47 V) +5V: +5.16 V (min = +4.76 V, max = +5.24 V) +12V: +12.28 V (min = +10.82 V, max = +13.19 V) -12V: -12.28 V (min = -13.18 V, max = -10.80 V) -5V: -5.30 V (min = -5.25 V, max = -4.75 V) ALARM V5SB: +5.51 V (min = +4.76 V, max = +5.24 V) VBat: +3.65 V (min = +2.40 V, max = +3.60 V) fan1: 3443 RPM (min = 33750 RPM, div = 2) fan2: 0 RPM (min = 1328 RPM, div = 4) temp1: +58°C (high = +0°C, hyst = +0°C) sensor = PII/Celeron diode temp2: +34.5°C (high = +80°C, hyst = +75°C) sensor = thermistor alarms: beep_enable: Sound alarm disabled eeprom-i2c-0-51 Adapter: SMBus Via Pro adapter at 0400 Memory type: DDR SDRAM DIMM Memory size (MB): 512 eeprom-i2c-0-50 Adapter: SMBus Via Pro adapter at 0400 Memory type: DDR SDRAM DIMM Memory size (MB): 512 I wanted to track the sensor info over time, so I tried to install the rrdtool scripts that come packaged with lm_sensors. No go, it complains that /proc/sys/dev/sensors doesn't exist. Some googling reveals that means that sensor support isn't compiled into the kernel. That doesn't make sense to me, if sensor support isn't compiled in, then why does lm_sensors seem to work fine? If it is compiled in, then why do I not have a /proc/sys/dev/sensors ? Needless to say, I'm confused and could use some enlightenment. Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.8-24.11-default x86_64
On Sunday 20 March 2005 10:59 pm, Scott Leighton wrote:
I wanted to track the sensor info over time, so I tried to install the rrdtool scripts that come packaged with lm_sensors. No go, it complains that /proc/sys/dev/sensors doesn't exist. Some googling reveals that means that sensor support isn't compiled into the kernel.
That doesn't make sense to me, if sensor support isn't compiled in, then why does lm_sensors seem to work fine?
If it is compiled in, then why do I not have a /proc/sys/dev/sensors ?
Nothing like solving your own problem <g>. For the benefit of others who may have tried to get the rrdtools scripts working with lm_sensors, here's what I have found out; 1) the error message regarding sensor support needing to be compiled in the kernel is completely misleading. The scripts are all written for the 2.4 kernel and they do not grok that things moved elsewhere in the 2.6 kernels. 2) /proc/sys/dev/sensors was used in 2.4, since then the sysfs has undergone a whole bunch of changes, and was basically in a flux until around 2.6.5. Basically, almost the same info can now be found at /sys/devices/platform/i2c-1/1-0290 where the 1-0290 directory will be named differently depending on the type of chip used on your board. You can probably do a 'locate fan1_input' to quickly find the location on your system. 3) The good news, the scripts that came with lm_sensors are pretty straight forward and can be hacked fairly easily to deal with the new location. You'll have to take into account your chipset and the 'compute' values for that chip found in /etc/sensors.conf to adjust the values obtained. For example, I had to do something like this to the sens_update_rrd shell script to adjust the in3 voltage value it updates to the rrd database V=$(echo "$V / 1000" | bc -l ) if [ $i = 'in3' ] then V=$(echo "1.68 * $V" | bc -l) fi The rrd graphs are really cool, with daily, weekly, and weekly summary versions, so it is worth the effort to do the hacking in my opinion. Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.8-24.14-default x86_64
participants (1)
-
Scott Leighton