Skip to contentSkip to conversation

ticket 1775

DISCUSSION David Mathog 2 participants 13 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

(Sorry, couldn't figure out how to amend a ticket through the web interface.)

In reply to ticket 1775 the response was:

Quoted 1 line

try changing sensor type to 3435 in sensors.conf

The sensors.conf from Tyan (and every other one I've found on the web for this mobo) says to do this:

 # thermal sensor types (do not adjust)
   set sensor1 2
   set sensor2 2
   set sensor3 2

Moreover, those settings worked on the same machine when it ran RH 7.3 and an older version of lm_sensors. However, now they do not work (kernel 2.8.6.1 and sensors 2.8.7). Since the hardware type of the sensor on the mobo clearly has not changed (only the OS) why would the sensor type change now from 2 to 3435 with a different version of the kernel or lm_sensors???

Thanks,

David Mathog
[email protected]
Manager, Sequence Analysis Facility, Biology Division, Caltech

#1 lore raw

On Mon, 20 Sep 2004 08:15:54 -0700, David Mathog wrote

Quoted 2 lines

(Sorry, couldn't figure out how to amend a ticket through the web interface.)

Maybe that's because there is no way? Our ticket system sucks.

Quoted 12 lines

In reply to ticket 1775 the response was:

Quoted 1 line

try changing sensor type to 3435 in sensors.conf

The sensors.conf from Tyan (and every other one I've found on the web for this mobo) says to do this:

 # thermal sensor types (do not adjust)
   set sensor1 2
   set sensor2 2
   set sensor3 2
Quoted 7 lines

Moreover, those settings worked on the same machine when it ran RH 7.3 and an older version of lm_sensors. However, now they do not work (kernel 2.8.6.1 and sensors 2.8.7). Since the hardware type of the sensor on the mobo clearly has not changed (only the OS) why would the sensor type change now from 2 to 3435 with a different version of the kernel or lm_sensors???

Completely agreed.

One interesting thing I found in Tyan's proposed configuration file is that there should be two monitoring chips, not just one. What's more, addresses for these chips should be 0x2c and 0x2d, while yours shows at 0x28.

Another thing worth noting IMHO is that Tyan's config file, and your old RH 7.3, date from before the ISA-only w83627hf chip driver was written. Thus I would suggest that you do *not* load the i2c-isa nor w83627hf drivers, so as to be as near as possible from your original setup. We may try using the (possibly better) w83627hf driver at a later time. One thing at a time.

Tyan suggests to use the following line in /etc/modules.conf:
options w83781d force_w83782d=0,0x2d force_subclients=0,0x2d,0x48,0x49 force_w83627hf=0,0x2c force_subclients=0,0x2c,0x4a,0x4b init=0 Did you try doing this? Note that for Linux 2.6, the correct file is /etc/modprobe.conf, not modules.conf.

If it doesn't help, you may provide a scan of your I2C bus (i2cdetect 0) for a starter.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#2 lore raw
In reply to David Mathog

Hi David,

Quoted 16 lines

Your suggestions were a big help.

I added this to /etc/modprobe.conf:

options w83781d force_w83782d=0,0x2d force_subclients=0,0x2d,0x48,0x49 force_w83627hf=0,0x2c force_subclients=0,0x2c,0x4a,0x4b init=0

(which used to be in /etc/modules.conf on the old system)

then

% /etc/rc.d/init.d/lm_sensors start
% sensors

showed reasonable values (see below)

Quoted 7 lines

However...

In /var/log/messages there was:

Sep 20 10:07:11 safserver kernel: w83781d 0-002d: Duplicate addresses
0x4f for subclients.
Sep 20 10:07:13 safserver sensord: sensord started

This is odd, since you supposedly forced the subclient addresses to 0x48 and 0x49. I wonder if the syntax is correct. Having the same parameter twice doesn't look good to me. Could you please try:
* merging both as force_subclients=0,0x2d,0x48,0x49,0,0x2c,0x4a,0x4b
OR
* swapping them as in force_subclients=0,0x2c,0x4a,0x4b force_subclients=0,0x2d,0x48,0x49

Maybe you'll get different results. See below first though.

Quoted 11 lines

and when I tried to load these manually (from
/etc/sysconfig/lm_sensors)

MODULE_0=i2c-amd756
MODULE_1=i2c-isa
MODULE_2=w83781d
MODULE_3=w83627hf

the last one said:

FATAL: Module w83627hf not found.

You should have it, it's part of Linux 2.6 since 2.6.5 if I remember correctly. Maybe you simply forgot to include it as a module at the time you configured your kernel?

Quoted 10 lines

In comparison, for RH 7.3 (2.4 kernel) the modules were:

MODULE_0=i2c-proc
MODULE_1=i2c-dev
MODULE_2=i2c-amd756
MODULE_3=w83781d

so I'm guessing that w83627hf doesn't belong on the current list. Removed it, and sensors still works. The duplicate address warning remains though.

The w83627hf driver is an alternative driver for some chips already supported by the w83781d driver, plus some others. One of your two chips is supported by both the w83781d and the w83627hf drivers. The second is usually prefered but in your case I would stick to the former for both chips if you can get it to work that way.

Note that you don't need i2c-isa if you don't use w83627hf.

Quoted 3 lines

Here's the current output of sensors (without eeprom):
(...)
w83782d-i2c-0-28

This is strange. You forced address 0x2d and still 0x28 shows. Maybe the chip is really at 0x28 and you should use this address for the modprobe.conf file. This could explain why the subclients force failed. So please first try the following line:

options w83781d force_w83782d=0,0x28 force_subclients=0,0x28,0x48,0x49 force_w83627hf=0,0x2c force_subclients=0,0x2c,0x4a,0x4b init=0

(basically, 0x2d becomes 0x28) and try again.

I'd hope that the error message in the logs would disappear, and readings should be all correct.

Signature · 2 lines
Jean "Khali" Delvare
http://khali.linux-fr.org/
#3 lore raw
In reply to David Mathog
Quoted 6 lines
Quoted 6 lines

So please first try the following line:

options w83781d force_w83782d=0,0x28 force_subclients=0,0x28,0x48,0x49
force_w83627hf=0,0x2c force_subclients=0,0x2c,0x4a,0x4b init=0

Quoted 8 lines
Quoted 1 line

(basically, 0x2d becomes 0x28) and try again.

Put that in /etc/modprobe.conf and only this in /etc/sysconfig/lm_sensors

MODULE_0=i2c-amd756
MODULE_1=w83781d

That did eliminate the warning on start up and the values are correct.

The more I think of it, the more I suspect that the "force_subclients=0,0x28,0x48,0x49" part is ignored. Most probably, it just happens that the W83782D subclient addresses were already correct and didn't need forcing.

Quoted 5 lines

Um, well, the alarm seems to come and go here:

VCore 1: +1.73 V (min = +1.66 V, max = +1.94 V)
sometimes it reads ALARM too, sometimes not. The Voltage shown doesn't change though.

No idea. You could try to periodically dump the chip contents (using i2cdump 0 0x28 or i2cdump 0 0x2c) and see if the alarms shows there too (bit 1 of register 0x41). If it does, this is a hardware issue. If it doesn't, it might be a software bug. You may try turning PCI Passive Release and/or PCI Delayed Transaction off in your BIOS configuration and see it it helps.

Quoted 9 lines

These two sets of values still look wrong values to me, the first is awfully high (not sure where VRM1 is, but it shouldn't be higher than the CPU temps) and the DDR voltage looks low. The air coming out of the back of the case is warm but not uncomfortably hot, feels like about 42-44 C.

VRM1 Temp: +62?C (high = -67?C, hyst = -101?C) sensor = 3904
transistor
DDR V: +1.23 V (min = +1.65 V, max = +2.05 V)

VRM1 is obviously the voltage regulator module for CPU1. I wouldn't be surprised that it gets hot, although I admit that 62 degrees C is too much.

DDR is supposedly 2.5V as far as I know, so the reading probably needs a compute line (@*2, @/2). Strange that the alarm doesn't show while the value is obviously out of range. You should change the limits as well, to 2.4 and 2.6V for example.

Quoted 2 lines

These are minor problems though, since all I really need to keep an eye on are the CPU fan speeds and CPU temps.

Glad we could get it to work again. I'd suggest that you provide feedback to Tyan once you get things OK on your system. That way we can hope that other users will benefit from your experience.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#4 lore raw
In reply to David Mathog
Quoted 9 lines
Quoted 5 lines

Um, well, the alarm seems to come and go here:

VCore 1: +1.73 V (min = +1.66 V, max = +1.94 V)
sometimes it reads ALARM too, sometimes not. The Voltage shown doesn't change though.

No idea. You could try to periodically dump the chip contents (using i2cdump 0 0x28 or i2cdump 0 0x2c) and see if the alarms shows there too (bit 1 of register 0x41).

My mistake, it's actually bit 0, not 1.

Signature · 2 lines
Jean "Khali" Delvare
http://khali.linux-fr.org/
#5 lore raw
In reply to David Mathog

On Tue, 21 Sep 2004 16:14:20 -0700, David Mathog wrote

Quoted 6 lines

VRM 1,2 read 61 and 56 degrees C, but when I put my finger on those regulators they only feel warm, not even uncomfortably so, those values must be bogus too. There are some Tyan S2466 machines in my area and they only read about 40 degrees on the VRM with an AMD MP 2200+ in it, one would expect that AMD MP 2000+ should draw even less current.

Depends if the 2000+ are Palomino or Thoroughbred. In the former case, the 2000+ has a higher voltage (1.75V instead of 1.6-1.65V) and higher max current, resulting in a higher max power consumption (+15% or so). I don't have no figures for the average consumption, but I'd expect it to compare similarly.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#6 lore raw
In reply to David Mathog

Your suggestions were a big help.

I added this to /etc/modprobe.conf:

options w83781d force_w83782d=0,0x2d force_subclients=0,0x2d,0x48,0x49 force_w83627hf=0,0x2c force_subclients=0,0x2c,0x4a,0x4b init=0

(which used to be in /etc/modules.conf on the old system)

then

% /etc/rc.d/init.d/lm_sensors start
% sensors

showed reasonable values (see below)

However...

In /var/log/messages there was:

Sep 20 10:07:11 safserver kernel: w83781d 0-002d: Duplicate addresses
0x4f for subclients.
Sep 20 10:07:13 safserver sensord: sensord started

and when I tried to load these manually (from /etc/sysconfig/lm_sensors)

MODULE_0=i2c-amd756
MODULE_1=i2c-isa
MODULE_2=w83781d
MODULE_3=w83627hf

the last one said:

FATAL: Module w83627hf not found. In comparison, for RH 7.3 (2.4 kernel) the modules were:

MODULE_0=i2c-proc
MODULE_1=i2c-dev
MODULE_2=i2c-amd756
MODULE_3=w83781d

so I'm guessing that w83627hf doesn't belong on the current list. Removed it, and sensors still works. The duplicate address warning remains though. Here's the current output of sensors (without eeprom):

w83627hf-i2c-0-2c

Adapter: SMBus AMD756 adapter at 80e0
VCore 1:   +1.73 V  (min =  +1.74 V, max =  +1.94 V)       ALARM  
VCore 2:   +1.73 V  (min =  +1.74 V, max =  +1.94 V)       ALARM  
AGP Volt:  +3.30 V  (min =  +0.00 V, max =  +0.00 V)              
chs2 Fan:    0 RPM  (min = 3534 RPM, div = 2)                     
chs5 Fan:    0 RPM  (min =    0 RPM, div = 2)                     
chs6 Fan:    0 RPM  (min = 2824 RPM, div = 2)                     
VRM1 Temp:   +62?C  (high =   -67?C, hyst =  -101?C)   sensor = 3904

transistor
AGP Temp: +53.0?C (high = +70?C, hyst = +80?C) sensor = 3904
transistor
DDR Temp: +51.5?C (high = +70?C, hyst = +80?C) sensor = 3904
transistor
vid: +1.750 V
alarms:
beep_enable:
Sound alarm disabled

w83782d-i2c-0-28
Adapter: SMBus AMD756 adapter at 80e0
DDR V: +1.23 V (min = +1.65 V, max = +2.05 V)

+3.3V:     +3.38 V  (min =  +3.14 V, max =  +3.46 V)              
 +5 V:     +5.00 V  (min =  +4.73 V, max =  +5.24 V)              
+12 V:    +11.98 V  (min =  +0.00 V, max =  +0.00 V)              
-12 V:    -12.36 V  (min = -14.91 V, max = -14.83 V)              
Bat V:     +0.00 V  (min =  +2.64 V, max =  +3.95 V)              
CPU1 Fan: 8437 RPM  (min = 5273 RPM, div = 2)                     
CPU2 Fan: 8881 RPM  (min = 84375 RPM, div = 2)                     
chs1 Fan:    0 RPM  (min =   -1 RPM, div = 2)                     
CPU1 Temp:   +55?C  (high =   +40?C, hyst =   +60?C)   sensor = 3904

transistor ALARM
CPU2 Temp: +56.5?C (high = +70?C, hyst = +80?C) sensor = 3904
transistor
VRM2 Temp: +57.5?C (high = +70?C, hyst = +80?C) sensor = 3904
transistor
alarms:
beep_enable:
Sound alarm disabled

Thanks,

David Mathog
[email protected]
Manager, Sequence Analysis Facility, Biology Division, Caltech

Quoted 26 lines

On Mon, 20 Sep 2004 08:15:54 -0700, David Mathog wrote

Quoted 2 lines

(Sorry, couldn't figure out how to amend a ticket through the web interface.)

Maybe that's because there is no way? Our ticket system sucks.

Quoted 12 lines

In reply to ticket 1775 the response was:

Quoted 1 line

try changing sensor type to 3435 in sensors.conf

The sensors.conf from Tyan (and every other one I've found on the web for this mobo) says to do this:

 # thermal sensor types (do not adjust)
   set sensor1 2
   set sensor2 2
   set sensor3 2
Quoted 7 lines

Moreover, those settings worked on the same machine when it ran RH 7.3 and an older version of lm_sensors. However, now they do not work (kernel 2.8.6.1 and sensors 2.8.7). Since the hardware type of the sensor on the mobo clearly has not changed (only the OS) why would the sensor type change now from 2 to 3435 with a different version of the kernel or lm_sensors???

Quoted 3 lines

Completely agreed.

One interesting thing I found in Tyan's proposed configuration file is

that

Quoted 1 line

there should be two monitoring chips, not just one. What's more,

addresses for

Quoted 3 lines

these chips should be 0x2c and 0x2d, while yours shows at 0x28.

Another thing worth noting IMHO is that Tyan's config file, and your

old RH

Quoted 1 line

7.3, date from before the ISA-only w83627hf chip driver was written.

Thus I

Quoted 1 line

would suggest that you do *not* load the i2c-isa nor w83627hf drivers,

so as

Quoted 10 lines

to be as near as possible from your original setup. We may try using the (possibly better) w83627hf driver at a later time. One thing at a time.

Tyan suggests to use the following line in /etc/modules.conf:
options w83781d force_w83782d=0,0x2d force_subclients=0,0x2d,0x48,0x49 force_w83627hf=0,0x2c force_subclients=0,0x2c,0x4a,0x4b init=0 Did you try doing this? Note that for Linux 2.6, the correct file is /etc/modprobe.conf, not modules.conf.

If it doesn't help, you may provide a scan of your I2C bus (i2cdetect

0) for a

Quoted 8 lines

starter.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#7 lore raw
In reply to David Mathog

By the way, why are there no shutdown options in sensord?

I've been using mondo

http://sourceforge.net/projects/mondo-daemon/

to monitor sensors and shutdown on fan failure or over temperature. Unfortunately it doesn't work great with lm_sensors on 2.6 kernels because the /sys/ stuff throws it for a loop. I was able to hack a patch into mondo which passes in the right /sys string for a single chip, but the S2468UGN has two such paths, and so my hack doesn't work there.

sensord does pretty much everything mondo does except give an option for shutdown. Is this feature going to be added to sensord anytime soon?

Failing that, what is the most common "shut down on over temperature" script/program in use with lm_sensors on 2.6.x kernels?

Thanks,

David Mathog
[email protected]
Manager, Sequence Analysis Facility, Biology Division, Caltech

#8 lore raw
In reply to David Mathog

Hmm, this is odd (full sensors.conf attached, key parts below):

    label in0 "VCore 1"
    label in1 "VCore 2"
    set in0_min vid*0.90
    set in0_max vid*1.05
    set in1_min vid*0.90
    set in1_max vid*1.05
VCore 1:   +1.73 V  (min =  +1.66 V, max =  +1.94 V)       ALARM  
VCore 2:   +1.73 V  (min =  +1.66 V, max =  +1.94 V)              

Why an alarm?

1.66 <= 1.73 <= 1.94

Thanks,

David Mathog
[email protected]
Manager, Sequence Analysis Facility, Biology Division, Caltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 2627 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040920/a8edf84a/attachment.obj

#9 lore raw
In reply to David Mathog
Quoted 7 lines

This is strange. You forced address 0x2d and still 0x28 shows. Maybe the chip is really at 0x28 and you should use this address for the modprobe.conf file. This could explain why the subclients force failed. So please first try the following line:

options w83781d force_w83782d=0,0x28 force_subclients=0,0x28,0x48,0x49

force_w83627hf=0,0x2c force_subclients=0,0x2c,0x4a,0x4b init=0

Quoted 3 lines

(basically, 0x2d becomes 0x28) and try again.

Put that in /etc/modprobe.conf and only this in /etc/sysconfig/lm_sensors

MODULE_0=i2c-amd756
MODULE_1=w83781d

That did eliminate the warning on start up and the values are correct. Um, well, the alarm seems to come and go here:

VCore 1: +1.73 V (min = +1.66 V, max = +1.94 V)

sometimes it reads ALARM too, sometimes not. The Voltage shown doesn't change though.

These two sets of values still look wrong values to me, the first is awfully high (not sure where VRM1 is, but it shouldn't be higher than the CPU temps) and the DDR voltage looks low. The air coming out of the back of the case is warm but not uncomfortably hot, feels like about 42-44 C.

VRM1 Temp: +62?C (high = -67?C, hyst = -101?C) sensor = 3904
transistor
DDR V: +1.23 V (min = +1.65 V, max = +2.05 V)

These are minor problems though, since all I really need to keep an eye on are the CPU fan speeds and CPU temps.

Thanks,

David Mathog
[email protected]
Manager, Sequence Analysis Facility, Biology Division, Caltech

#10 lore raw
In reply to David Mathog
Quoted 11 lines
Quoted 9 lines
Quoted 5 lines

Um, well, the alarm seems to come and go here:

VCore 1: +1.73 V (min = +1.66 V, max = +1.94 V)
sometimes it reads ALARM too, sometimes not. The Voltage shown doesn't change though.

No idea. You could try to periodically dump the chip contents (using i2cdump 0 0x28 or i2cdump 0 0x2c) and see if the alarms shows there too (bit 1 of register 0x41).

My mistake, it's actually bit 0, not 1.

Unfortuantely that's going to receive a priority somewhere near 0 as classes start soon and I only need this "good enough" to muddle through the semester.

A few of the sensors values still appear to be wrong. The fan speeds claim to be 8333 and 8766 RPM (divisor 2) but at least one is a standard AMD fan, and they really run at aroun 5400. Hmm, google turned this up for Tyan boards:

compute fan1 (14318/24000)*@ , @ / (14318/24000)

Putting this in the attached sensors.conf:

    compute fan1 (14318/24000)*@ , @ / (14318/24000)
    compute fan2 (14318/24000)*@ , @ / (14318/24000)
    compute fan3 (14318/24000)*@ , @ / (14318/24000)
    
    set fan1_min 8000
    set fan2_min 8000

gives:

CPU1 Fan: 5097 RPM (min = 3987 RPM, div = 2)
CPU2 Fan: 5298 RPM (min = 3987 RPM, div = 2)
chs1 Fan: 0 RPM (min = -1 RPM, div = 2)

which is about right (there is no chassis fan).

VRM 1,2 read 61 and 56 degrees C, but when I put my finger on those regulators they only feel warm, not even uncomfortably so, those values must be bogus too. There are some Tyan S2466 machines in my area and they only read about 40 degrees on the VRM with an AMD MP 2200+ in it, one would expect that AMD MP 2000+ should draw even less current. The regulators feel about the same temperature in both types of machines. For both machines sensors.conf just uses the raw "temp" values with no formula.

Unfortunately the BIOS on the S2468UGN has no hardware monitor functions, so there's nothing to compare lm_sensors with.

My sensors.conf (before the change noted above)
and sensors.out are attached.

Thanks,

David Mathog
[email protected]
Manager, Sequence Analysis Facility, Biology Division, Caltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 2928 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040921/9a01d711/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 1591 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040921/9a01d711/attachment-0001.obj

#11 lore raw
In reply to David Mathog
Quoted 1 line

By the way, why are there no shutdown options in sensord?

Sensord is abandonware. It's that easy. None of us developers use it.

Quoted 3 lines

sensord does pretty much everything mondo does except give an option for shutdown. Is this feature going to be added to sensord anytime soon?

Patches are welcome ;)

Quoted 2 lines

Failing that, what is the most common "shut down on over temperature" script/program in use with lm_sensors on 2.6.x kernels?

No idea, sorry.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#12 lore raw
In reply to David Mathog

WARNING: This e-mail has been altered by MIMEDefang. Following this
paragraph are indications of the actual changes made. For more
information about your site's MIMEDefang policy, contact
andrew.net.au Postmaster <[email protected]>. For more information about MIMEDefang, see:

http://www.roaringpenguin.com/mimedefang/enduser.php3

An attachment named sensor_monitor.sh was removed from this document as it constituted a security hazard. If you require this document, please contact the sender and arrange an alternate means of receiving it.

-------------- next part --------------

Quoted 3 lines
Quoted 1 line

By the way, why are there no shutdown options in sensord?

Sensord is abandonware. It's that easy. None of us developers use it.

Ah, that would explain a few things. Guess I'll shut it off then until I get enough time to see what state it's really in.

Quoted 5 lines
Quoted 4 lines

sensord does pretty much everything mondo does except give an option for shutdown. Is this feature going to be added to sensord anytime soon?

Quoted 7 lines

Patches are welcome ;)

Quoted 2 lines

Failing that, what is the most common "shut down on over temperature" script/program in use with lm_sensors on 2.6.x kernels?

No idea, sorry.

Turned out not to be too difficult to roll my own. One of the attached two files use my "extract" program

ftp://saf.bio.caltech.edu/pub/software/linux_or_unix_tools/extract.c

and lm_sensors and that's pretty much it to monitor CPU T and Fan speeds, with a final poweroff if a value gets too badly out of range, logs and warnings otherwise.

[For Unix purists extract could be eliminated and replaced with sed, set, awk or the like, but it's my Swiss army knife program and builds and runs on every OS I've tried so far, so I tend to use it a lot.]

sensor_monitor is the /etc/rc.d/init.d script and should work as is on Mandrake, RedHat, and other similar systems.

sensor_monitor.sh is the daemon script, mine lives in /usr/local/sbin

When running it doesn't go above .3% CPU, and then only once every 5 seconds, so the load is negligible.

Regards,

David Mathog
[email protected]
Manager, Sequence Analysis Facility, Biology Division, Caltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 2063 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040928/b5347961/attachment.obj