Skip to contentSkip to conversation

lm_sensors problem with sis96x and adm1021

DISCUSSION Stefan Assmann 2 participants 3 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Hello,

actually I wanted to send this email to the lm_sensors mailing-list but I couldn't find it.
Maybe you could tell me the address so I know next time :-)

I already started a ticket with the number 1841.
When running sensors -s and then sensors I get

asus:/sys/bus/i2c/devices/0-004c# sensors
max1617-i2c-0-4c
Adapter: SiS96x SMBus adapter at 0x0c00
Board:       +56??C  (low  =    +0??C, high =   +70??C)
CPU:         +54??C  (low  =   +50??C, high =   +70??C)

So the values for Board have been set correctly but for CPU it shows no effect.

I was told to send a dump of the chip so here it is.

asus:/sys/bus/i2c/devices/0-004c# i2cdump 0 0x4c
No size specified (using byte-data access)
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-0, address 0x4c, mode byte
Continue? [Y/n] y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
00: 39 32 00 00 04 46 00 37 00 00 00 00 00 00 00 00    92..?F.7........
10: 80 00 00 00 00 00 55 55 00 64 64 64 64 64 64 64    ?.....UU.ddddddd
20: 64 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a    d???????????????
30: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a    ????????????????
40: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a    ????????????????
50: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a    ????????????????
60: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a    ????????????????
70: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a    ????????????????
80: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a    ????????????????
90: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a    ????????????????
a0: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a    ????????????????
b0: 0a 0a 0a 0a 0a 0a 0a 00 00 00 00 00 00 00 00 00    ???????.........
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4d 4d    ..............MM

I really appreciate your work. Thank you!

Greetings,
Stefan

#1 lore raw
Quoted 7 lines

Yes right, after running sensors -s the values for Board changed to the values I defined. As you suggested 0 for low and 70 for high. The values for CPU however did not apply. The default values are 0 low and 55 high when the fan is off and change to 50 low and 70 high when the fan is turned on. However inserting the values through sysfs did work, but the values are overriden as soon as the fan starts spinning again.

The MAX6657 is not able to do that by itself. It has alarm outputs that can tell another chip on your system to do it, though. Reprogramming the limits on the fly does sound weird, there are better ways to achieve conditional fan activity.

Quoted 4 lines

Sorry I can't crack the case open ;-) sensors-detect didn't suggest anything except sis-96x I'll drop the complete output here. So I just modprobed all modules and the only one that did show something was adm1021.

This is odd. I had expected that sensors-detect would suggest both the adm1021 driver (for a MAX1617) and the lm90 driver (for a MAX6657), and pick the former arbitrarily. When comparing the sensors-detect code with the dump you sent, I just cannot get why it isn't the case. Both tests (MAX1617 and MAX6657) should be positive. Are you certain that you are using an up-to-date version of sensors-detect? Please try with the CVS version:

http://www2.lm-sensors.nu/%7Elm78/cvs/lm_sensors2/prog/detect/sensors-detect

If it still won't detect your chip as neither a MAX1617 nor a MAX6657, and you have some perl knowledge, it would be great if you could add some debug in the adm1021_detect and lm90_detect functions (for $chip=2 and $chip=4, respectively) and see where the detection is failing exactly. If you don't have such a knowledge I'll send you a modified version of the script for you to test it.

Quoted 3 lines

Client found at address 0x10
(...)
Client found at address 0x6a

I wonder what these are. Could you please provide dumps of these as well?

I'd also be interested to know the model name of your laptop, in case I can find some technical documentation.

Thanks,

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#2 lore raw
In reply to Stefan Assmann
Quoted 4 lines

actually I wanted to send this email to the lm_sensors mailing-list but I couldn't find it.
Maybe you could tell me the address so I know next time :-)

The address is advertised here:
http://secure.netroedge.com/~lm78/author.html
I wonder why so many people have a hard time finding it.

The address you are writing to at the moment is an alias for the list, so you finally found it ;)

Quoted 11 lines

I already started a ticket with the number 1841.
When running sensors -s and then sensors I get

asus:/sys/bus/i2c/devices/0-004c# sensors
max1617-i2c-0-4c
Adapter: SiS96x SMBus adapter at 0x0c00
Board:       +56??C  (low  =    +0??C, high =   +70??C)
CPU:         +54??C  (low  =   +50??C, high =   +70??C)

So the values for Board have been set correctly but for CPU it shows no effect.

These values are different from what you said on the ticket, so there have actually been some values written at some point. In the ticket I told you to try writing the values to the sysfs files directly and see how it was going. Did you try? Beware that sysfs expects temperature values in 0.001 degree C (so for example 70 degrees is 70000).

Quoted 2 lines

I was told to send a dump of the chip so here it is. (...)

This is most certainly a Maxim MAX6657, MAX6658 or MAX6659, not MAX1617. Do you have some documentation that would confirm that? I guess you do not have the possibility to open the case and check ;)

The sensors-detect script should have detected the chip and suggested the lm90 driver, not adm1021. Didn't it? Please provide the full log of sensors-detect *after* you unload the adm1021 driver.

--
Jean Delvare