Skip to contentSkip to conversation

"sensors" no longer finding pcf8574 and pca9541

lm-sensors Alan Porter 3 participants 6 messages Jan 3, 2007 – Jan 4, 2007

lore
Share & tools
lore
#0 lore raw

Hello sensors people,

Where to start? My name is Alan Porter, and I am in a little over my head. (Now I feel better). I apologize in advance for not being able to speak intelligently about what I am seeing, but I am just now diving into this problem.

I just started a new job at a company that has a RedHat-based distro that runs on telecom equipment. We monitor the health of our machines by running the "sensors" command and parsing the output with a perl script.

Recently (within the last few months?), we have found that the "sensors -A" command has stopped reporting some of our devices, specifically:
- the pcf8574 that monitors power supply health
- the pca9541 -- not sure what this does

From what I can tell, the kernel modules are loading properly,
because I get entries in the /sys filesystem.

[root at doesnotwork i2c]# find /sys/bus/i2c
/sys/bus/i2c
/sys/bus/i2c/drivers
/sys/bus/i2c/drivers/lm87
/sys/bus/i2c/drivers/lm87/0-002d
/sys/bus/i2c/drivers/pcf8574
/sys/bus/i2c/drivers/pcf8574/0-0023
/sys/bus/i2c/drivers/pcf8574/0-0022
/sys/bus/i2c/drivers/pca9541
/sys/bus/i2c/drivers/pca9541/0-0070
/sys/bus/i2c/drivers/eeprom
/sys/bus/i2c/drivers/eeprom/0-0057
/sys/bus/i2c/drivers/eeprom/0-0053
/sys/bus/i2c/drivers/lm93
/sys/bus/i2c/drivers/lm93/0-002e
/sys/bus/i2c/drivers/dev_driver
/sys/bus/i2c/drivers/i2c_adapter
/sys/bus/i2c/devices
/sys/bus/i2c/devices/0-002d
/sys/bus/i2c/devices/0-0023
/sys/bus/i2c/devices/0-0022
/sys/bus/i2c/devices/0-0070
/sys/bus/i2c/devices/0-0057
/sys/bus/i2c/devices/0-0053
/sys/bus/i2c/devices/0-002e
[root at doesnotwork i2c]#

The drivers appear to work. They return "sane" data. "128" means the power supply is functioning properly with no warnings.

[root at doesnotwork Driver]# cat /sys/bus/i2c/drivers/pcf8574/0-0022/read 128
[root at doesnotwork Driver]#

However, when I run "sensors -A", I no longer get the following entries in the output:

pcf8574-i2c-0-22
pcf8574-i2c-0-23
pca9541-i2c-0-70

When I load an older version of our platform (older kernel, same version of lmsensors package), the "sensors -A" command includes these three entries.

I have included below some info about my two test systems (identical hardware,
I believe).

Hopefully someone on the list can shed a little light on why the "sensors" command is reporting fewer devices now than it used to.

Thanks,

Alan

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

[root at worksOK i2c]# uname -a
Linux localhost.localdomain 2.6.9-34.0.2.ELprerel3.0.0_60.17.0smp #1 SMP Wed Aug 23 16:58:48 EDT 2006 i686 i686 i386 GNU/Linux

[root at worksOK i2c]# i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: XX XX XX XX XX 08 XX XX XX XX XX XX XX
10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 20: XX XX UU UU XX XX XX XX XX XX XX XX XX UU UU XX 30: 30 XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 40: XX XX XX XX 44 XX XX XX XX XX XX XX XX XX XX XX 50: XX XX XX UU XX XX XX UU XX XX XX XX XX XX XX XX 60: XX XX 62 63 XX XX XX XX XX 69 XX XX XX XX 6e XX 70: UU XX XX XX XX XX XX XX

[root at worksOK i2c]# sensors -v
sensors version 2.10.0 with libsensors version 2.10.0

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

[root at doesnotwork Driver]# uname -a
Linux doesnotwork 2.6.18-1.2849prerel3.0.0_60.31.0PAE #1 SMP Fri Dec 8 15:37:48 EST 2006 i686 i686 i386 GNU/Linux

[root at doesnotwork Driver]# i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: XX XX XX XX XX 08 XX XX XX XX XX XX XX
10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 20: XX XX UU UU XX XX XX XX XX XX XX XX XX UU UU XX 30: 30 31 32 33 34 35 36 37 XX XX XX XX XX XX XX XX 40: XX XX XX XX 44 XX XX XX XX XX XX XX XX XX XX XX 50: UU UU UU UU UU UU UU UU XX XX XX XX XX XX XX XX 60: XX XX 62 63 XX XX XX XX XX 69 XX XX XX XX 6e XX 70: UU XX XX XX XX XX XX XX

[root at doesnotwork Driver]# sensors -v sensors version 2.10.0 with libsensors version 2.10.0

[root at doesnotwork Driver]# rmmod pcf8574
[root at doesnotwork Driver]# rmmod pca9541
[root at doesnotwork Driver]# rmmod eeprom
[root at doesnotwork Driver]# sensors-detect

# sensors-detect revision 1.413 (2006/01/19 20:28:00)

This program will help you determine which I2C/SMBus modules you need to load to use lm_sensors most effectively. You need to have i2c and lm_sensors installed before running this program.
Also, you need to be `root', or at least have access to the /dev/i2c-* files, for most things.
If you have patched your kernel and have some drivers built in, you can safely answer NO if asked to load some modules. In this case, things may seem a bit confusing, but they will still work.

It is generally safe and recommended to accept the default answers to all questions, unless you know what you're doing.

We can start with probing for (PCI) I2C or SMBus adapters. You do not need any special privileges for this. Do you want to probe now? (YES/no):
Probing for PCI bus adapters...
Use driver `i2c-i801' for device 00:1f.3: Intel 6300ESB Probe succesfully concluded.

We will now try to load each adapter module in turn. Module `i2c-i801' already loaded.
If you have undetectable or unsupported adapters, you can have them scanned by manually loading the modules before running this script.

To continue, we need module `i2c-dev' to be loaded. If it is built-in into your kernel, you can safely skip this.
i2c-dev is already loaded.

We are now going to do the adapter probings. Some adapters may hang halfway through; we can't really help that. Also, some chips will be double
detected;
we choose the one with the highest confidence value in that case. If you found that the adapter hung after probing a certain address, you can specify that address to remain unprobed. That often
includes address 0x69 (clock chip).

Next adapter: SMBus I801 adapter at 0540
Do you want to scan it? (YES/no/selectively):
Client found at address 0x08
Client found at address 0x22
Probing for `National Semiconductor LM78'... Failed!
Probing for `National Semiconductor LM78-J'... Failed!
Probing for `National Semiconductor LM79'... Failed!
Probing for `Winbond W83781D'... Failed!
Probing for `Winbond W83782D'... Failed!
Probing for `Winbond W83627HF'... Failed!
Client found at address 0x23
Probing for `National Semiconductor LM78'... Failed!
Probing for `National Semiconductor LM78-J'... Failed!
Probing for `National Semiconductor LM79'... Failed!
Probing for `Winbond W83781D'... Failed!
Probing for `Winbond W83782D'... Failed!
Probing for `Winbond W83627HF'... Failed!
Client at address 0x2d can not be probed - unload all client drivers first! Client at address 0x2e can not be probed - unload all client drivers first! Client found at address 0x30
Client found at address 0x31
Client found at address 0x32
Client found at address 0x33
Client found at address 0x34
Client found at address 0x35
Client found at address 0x36
Client found at address 0x37
Client found at address 0x44
Probing for `Maxim MAX6633/MAX6634/MAX6635'... Failed!
Client found at address 0x50
Probing for `SPD EEPROM'... Success!
(confidence 8, driver `eeprom')
Probing for `DDC monitor'... Failed!
Probing for `Maxim MAX6900'... Failed!
Client found at address 0x51

Probing for `SPD EEPROM'... Success!
(confidence 8, driver `eeprom')
Client found at address 0x52
Probing for `SPD EEPROM'... Success!
(confidence 8, driver `eeprom')
Client found at address 0x53
Probing for `SPD EEPROM'... Success!
(confidence 8, driver `eeprom')
Client found at address 0x54
Probing for `SPD EEPROM'... Success!
(confidence 8, driver `eeprom')
Client found at address 0x55
Probing for `SPD EEPROM'... Success!
(confidence 8, driver `eeprom')
Client found at address 0x56
Probing for `SPD EEPROM'... Success!
(confidence 8, driver `eeprom')
Client found at address 0x57
Probing for `SPD EEPROM'... Success!
(confidence 8, driver `eeprom')
Probing for `Sony Vaio EEPROM'... Failed! Client found at address 0x62
Client found at address 0x63
Client found at address 0x69
Client found at address 0x6e
Client found at address 0x70
Probing for `Philips Semiconductors PCA9540'... Success!

    (confidence 1, driver `pca9540')

Some chips are also accessible through the ISA bus. ISA probes are typically a bit more dangerous, as we have to write to I/O ports to do this. This is usually safe though.

Do you want to scan the ISA bus? (YES/no): Probing for `National Semiconductor LM78'
Trying address 0x0290... Failed!
Probing for `National Semiconductor LM78-J'
Trying address 0x0290... Failed!
Probing for `National Semiconductor LM79'
Trying address 0x0290... Failed!
Probing for `Winbond W83781D'
Trying address 0x0290... Failed!
Probing for `Winbond W83782D'
Trying address 0x0290... Failed!
Probing for `Winbond W83627HF'
Trying address 0x0290... Failed!
Probing for `Winbond W83627EHF'
Trying address 0x0290... Failed!
Probing for `Silicon Integrated Systems SIS5595'
Trying general detect... Failed!
Probing for `VIA Technologies VT82C686 Integrated Sensors'
Trying general detect... Failed!
Probing for `VIA Technologies VT8231 Integrated Sensors'
Trying general detect... Failed!
Probing for `ITE IT8712F'
Trying address 0x0290... Failed!
Probing for `ITE IT8705F / SiS 950'
Trying address 0x0290... Failed!
Probing for `IPMI BMC KCS'
Trying address 0x0ca0... Failed!
Probing for `IPMI BMC SMIC'
Trying address 0x0ca8... Failed!

Some Super I/O chips may also contain sensors. Super I/O probes are typically a bit more dangerous, as we have to write to I/O ports to do this. This is usually safe though.

Do you want to scan for Super I/O sensors? (YES/no):
Probing for `ITE 8702F Super IO Sensors'
Failed! (0xfc00)
Probing for `ITE 8705F Super IO Sensors'
Failed! (0xfc00)
Probing for `ITE 8712F Super IO Sensors'
Failed! (0xfc00)
Probing for `Nat. Semi. PC87351 Super IO Fan Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87360 Super IO Fan Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87363 Super IO Fan Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87364 Super IO Fan Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87365 Super IO Fan Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87365 Super IO Voltage Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87365 Super IO Thermal Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87366 Super IO Fan Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87366 Super IO Voltage Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87366 Super IO Thermal Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87372 Super IO Fan Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87373 Super IO Fan Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87591 Super IO'
Failed! (0xfc)
Probing for `Nat. Semi. PC87371 Super IO'
Failed! (0xfc)
Probing for `Nat. Semi. PC97371 Super IO'
Failed! (0xfc)
Probing for `Nat. Semi. PC8739x Super IO'
Failed! (0xfc)
Probing for `Nat. Semi. PC8741x Super IO'
Failed! (0xfc)
Probing for `Nat. Semi. PCPC87427 Super IO'
Failed! (0xfc)
Probing for `SMSC 47B27x Super IO Fan Sensors'
Failed! (0xfc)
Probing for `SMSC 47M10x/13x Super IO Fan Sensors'
Failed! (0xfc)
Probing for `SMSC 47M14x Super IO Fan Sensors'
Failed! (0xfc)
Probing for `SMSC 47M15x/192/997 Super IO Fan Sensors'
Failed! (0xfc)
Probing for `SMSC 47S42x Super IO Fan Sensors'
Failed! (0xfc)
Probing for `SMSC 47S45x Super IO Fan Sensors'
Failed! (0xfc)
Probing for `SMSC 47M172 Super IO'
Failed! (0xfc)
Probing for `SMSC LPC47B397-NC Super IO'
Failed! (0xfc)
Probing for `SMSC SCH5307-NS Super IO'
Failed! (0xfc)
Probing for `VT1211 Super IO Sensors'
Failed! (skipping family)
Probing for `Winbond W83627EHF/EHG Super IO Sensors'
Failed! (skipping family)

Do you want to scan for secondary Super I/O sensors? (YES/no):
Probing for `ITE 8702F Super IO Sensors'
Failed! (skipping family)
Probing for `Nat. Semi. PC87351 Super IO Fan Sensors'
Failed! (skipping family)
Probing for `SMSC 47B27x Super IO Fan Sensors'
Failed! (skipping family)
Probing for `VT1211 Super IO Sensors'
Failed! (skipping family)
Probing for `Winbond W83627EHF/EHG Super IO Sensors'
Failed! (skipping family)

Now follows a summary of the probes I have just done. Just press ENTER to continue:

Driver `eeprom' (should be inserted):
Detects correctly:
* Bus `SMBus I801 adapter at 0540'
Busdriver `i2c-i801', I2C address 0x50
Chip `SPD EEPROM' (confidence: 8)
* Bus `SMBus I801 adapter at 0540'
Busdriver `i2c-i801', I2C address 0x51
Chip `SPD EEPROM' (confidence: 8)
* Bus `SMBus I801 adapter at 0540'
Busdriver `i2c-i801', I2C address 0x52
Chip `SPD EEPROM' (confidence: 8)
* Bus `SMBus I801 adapter at 0540'
Busdriver `i2c-i801', I2C address 0x53
Chip `SPD EEPROM' (confidence: 8)
* Bus `SMBus I801 adapter at 0540'
Busdriver `i2c-i801', I2C address 0x54
Chip `SPD EEPROM' (confidence: 8)
* Bus `SMBus I801 adapter at 0540'
Busdriver `i2c-i801', I2C address 0x55
Chip `SPD EEPROM' (confidence: 8)
* Bus `SMBus I801 adapter at 0540'
Busdriver `i2c-i801', I2C address 0x56
Chip `SPD EEPROM' (confidence: 8)
* Bus `SMBus I801 adapter at 0540'
Busdriver `i2c-i801', I2C address 0x57
Chip `SPD EEPROM' (confidence: 8)

Driver `pca9540' (should be inserted):
Detects correctly:
* Bus `SMBus I801 adapter at 0540'
Busdriver `i2c-i801', I2C address 0x70
Chip `Philips Semiconductors PCA9540' (confidence: 1)

I will now generate the commands needed to load the I2C modules.

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----

To load everything that is needed, add this to some /etc/rc* file:

#----cut here----
# I2C adapter drivers
modprobe i2c-i801
# I2C chip drivers
modprobe eeprom
# Warning: the required module pca9540 is not currently installed on your system.
# For status of 2.6 kernel ports see
http://secure.netroedge.com/~lm78/supported.html
# If driver is built-in to the kernel, or unavailable, comment out the following line.
modprobe pca9540

# sleep 2 # optional
/usr/bin/sensors -s # recommended
#----cut here----

WARNING! If you have some things built into your kernel, the list above will contain too many modules. Skip the appropriate ones! You really should try these commands right now to make sure everything is working properly. Monitoring programs won't work until it's done.

Do you want to generate /etc/sysconfig/lm_sensors? (YES/no):
Copy prog/init/lm_sensors.init to /etc/rc.d/init.d/lm_sensors for initialization at boot time.

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

#1 lore raw

Hello sensors people,

Where to start? My name is Alan Porter, and I am in a little over my head. (Now I feel better). I apologize in advance for not being able to speak intelligently about what I am seeing, but I am just now diving into this problem.

I just started a new job at a company that has a RedHat-based distro that runs on telecom equipment. We monitor the health of our machines by running the "sensors" command and parsing the output with a perl script.

Recently (within the last few months?), we have found that the "sensors -A" command has stopped reporting some of our devices, specifically:
- the pcf8574 that monitors power supply health
- the pca9541 -- not sure what this does

From what I can tell, the kernel modules are loading properly,
because I get entries in the /sys filesystem.

[root at doesnotwork i2c]# find /sys/bus/i2c
/sys/bus/i2c
/sys/bus/i2c/drivers
/sys/bus/i2c/drivers/lm87
/sys/bus/i2c/drivers/lm87/0-002d
/sys/bus/i2c/drivers/pcf8574
/sys/bus/i2c/drivers/pcf8574/0-0023
/sys/bus/i2c/drivers/pcf8574/0-0022
/sys/bus/i2c/drivers/pca9541
/sys/bus/i2c/drivers/pca9541/0-0070
/sys/bus/i2c/drivers/eeprom
/sys/bus/i2c/drivers/eeprom/0-0057
/sys/bus/i2c/drivers/eeprom/0-0053
/sys/bus/i2c/drivers/lm93
/sys/bus/i2c/drivers/lm93/0-002e
/sys/bus/i2c/drivers/dev_driver
/sys/bus/i2c/drivers/i2c_adapter
/sys/bus/i2c/devices
/sys/bus/i2c/devices/0-002d
/sys/bus/i2c/devices/0-0023
/sys/bus/i2c/devices/0-0022
/sys/bus/i2c/devices/0-0070
/sys/bus/i2c/devices/0-0057
/sys/bus/i2c/devices/0-0053
/sys/bus/i2c/devices/0-002e
[root at doesnotwork i2c]#

The drivers appear to work. They return "sane" data. "128" means the power supply is functioning properly with no warnings.

[root at doesnotwork Driver]# cat /sys/bus/i2c/drivers/pcf8574/0-0022/read 128
[root at doesnotwork Driver]#

However, when I run "sensors -A", I no longer get the following entries in the output:

pcf8574-i2c-0-22
pcf8574-i2c-0-23
pca9541-i2c-0-70

When I load an older version of our platform (older kernel, same version of lmsensors package), the "sensors -A" command includes these three entries.

I have included below some info about my two test systems (identical hardware,
I believe).

Hopefully someone on the list can shed a little light on why the "sensors" command is reporting fewer devices now than it used to.

Thanks,

Alan

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

[root at worksOK i2c]# uname -a
Linux localhost.localdomain 2.6.9-34.0.2.ELprerel3.0.0_60.17.0smp #1 SMP Wed Aug 23 16:58:48 EDT 2006 i686 i686 i386 GNU/Linux

[root at worksOK i2c]# i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: XX XX XX XX XX 08 XX XX XX XX XX XX XX
10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 20: XX XX UU UU XX XX XX XX XX XX XX XX XX UU UU XX 30: 30 XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 40: XX XX XX XX 44 XX XX XX XX XX XX XX XX XX XX XX 50: XX XX XX UU XX XX XX UU XX XX XX XX XX XX XX XX 60: XX XX 62 63 XX XX XX XX XX 69 XX XX XX XX 6e XX 70: UU XX XX XX XX XX XX XX

[root at worksOK i2c]# sensors -v
sensors version 2.10.0 with libsensors version 2.10.0

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

[root at doesnotwork Driver]# uname -a
Linux doesnotwork 2.6.18-1.2849prerel3.0.0_60.31.0PAE #1 SMP Fri Dec 8 15:37:48 EST 2006 i686 i686 i386 GNU/Linux

[root at doesnotwork Driver]# i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: XX XX XX XX XX 08 XX XX XX XX XX XX XX
10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 20: XX XX UU UU XX XX XX XX XX XX XX XX XX UU UU XX 30: 30 31 32 33 34 35 36 37 XX XX XX XX XX XX XX XX 40: XX XX XX XX 44 XX XX XX XX XX XX XX XX XX XX XX 50: UU UU UU UU UU UU UU UU XX XX XX XX XX XX XX XX 60: XX XX 62 63 XX XX XX XX XX 69 XX XX XX XX 6e XX 70: UU XX XX XX XX XX XX XX

[root at doesnotwork Driver]# sensors -v sensors version 2.10.0 with libsensors version 2.10.0

[root at doesnotwork Driver]# rmmod pcf8574
[root at doesnotwork Driver]# rmmod pca9541
[root at doesnotwork Driver]# rmmod eeprom
[root at doesnotwork Driver]# sensors-detect

# sensors-detect revision 1.413 (2006/01/19 20:28:00)

This program will help you determine which I2C/SMBus modules you need to load to use lm_sensors most effectively. You need to have i2c and lm_sensors installed before running this program.
Also, you need to be `root', or at least have access to the /dev/i2c-* files, for most things.
If you have patched your kernel and have some drivers built in, you can safely answer NO if asked to load some modules. In this case, things may seem a bit confusing, but they will still work.

It is generally safe and recommended to accept the default answers to all questions, unless you know what you're doing.

We can start with probing for (PCI) I2C or SMBus adapters. You do not need any special privileges for this. Do you want to probe now? (YES/no):
Probing for PCI bus adapters...
Use driver `i2c-i801' for device 00:1f.3: Intel 6300ESB Probe succesfully concluded.

We will now try to load each adapter module in turn. Module `i2c-i801' already loaded.
If you have undetectable or unsupported adapters, you can have them scanned by manually loading the modules before running this script.

To continue, we need module `i2c-dev' to be loaded. If it is built-in into your kernel, you can safely skip this. i2c-dev is already loaded.

We are now going to do the adapter probings. Some adapters may hang halfway through; we can't really help that. Also, some chips will be double detected;
we choose the one with the highest confidence value in that case. If you found that the adapter hung after probing a certain address, you can specify that address to remain unprobed. That often
includes address 0x69 (clock chip).

Next adapter: SMBus I801 adapter at 0540
Do you want to scan it? (YES/no/selectively):
Client found at address 0x08
Client found at address 0x22
Probing for `National Semiconductor LM78'... Failed!
Probing for `National Semiconductor LM78-J'... Failed!
Probing for `National Semiconductor LM79'... Failed!
Probing for `Winbond W83781D'... Failed!
Probing for `Winbond W83782D'... Failed!
Probing for `Winbond W83627HF'... Failed!
Client found at address 0x23
Probing for `National Semiconductor LM78'... Failed!
Probing for `National Semiconductor LM78-J'... Failed!
Probing for `National Semiconductor LM79'... Failed!
Probing for `Winbond W83781D'... Failed!
Probing for `Winbond W83782D'... Failed!
Probing for `Winbond W83627HF'... Failed!
Client at address 0x2d can not be probed - unload all client drivers first! Client at address 0x2e can not be probed - unload all client drivers first! Client found at address 0x30
Client found at address 0x31
Client found at address 0x32
Client found at address 0x33
Client found at address 0x34
Client found at address 0x35
Client found at address 0x36
Client found at address 0x37
Client found at address 0x44
Probing for `Maxim MAX6633/MAX6634/MAX6635'... Failed!
Client found at address 0x50
Probing for `SPD EEPROM'... Success!
(confidence 8, driver `eeprom')
Probing for `DDC monitor'... Failed!
Probing for `Maxim MAX6900'... Failed!
Client found at address 0x51

Probing for `SPD EEPROM'... Success!
(confidence 8, driver `eeprom')
Client found at address 0x52
Probing for `SPD EEPROM'... Success!
(confidence 8, driver `eeprom')
Client found at address 0x53
Probing for `SPD EEPROM'... Success!
(confidence 8, driver `eeprom')
Client found at address 0x54
Probing for `SPD EEPROM'... Success!
(confidence 8, driver `eeprom')
Client found at address 0x55
Probing for `SPD EEPROM'... Success!
(confidence 8, driver `eeprom')
Client found at address 0x56
Probing for `SPD EEPROM'... Success!
(confidence 8, driver `eeprom')
Client found at address 0x57
Probing for `SPD EEPROM'... Success!
(confidence 8, driver `eeprom')
Probing for `Sony Vaio EEPROM'... Failed! Client found at address 0x62
Client found at address 0x63
Client found at address 0x69
Client found at address 0x6e
Client found at address 0x70
Probing for `Philips Semiconductors PCA9540'... Success!
(confidence 1, driver `pca9540')

Some chips are also accessible through the ISA bus. ISA probes are typically a bit more dangerous, as we have to write to I/O ports to do this. This is usually safe though.

Do you want to scan the ISA bus? (YES/no): Probing for `National Semiconductor LM78'
Trying address 0x0290... Failed!
Probing for `National Semiconductor LM78-J'
Trying address 0x0290... Failed!
Probing for `National Semiconductor LM79'
Trying address 0x0290... Failed!
Probing for `Winbond W83781D'
Trying address 0x0290... Failed!
Probing for `Winbond W83782D'
Trying address 0x0290... Failed!
Probing for `Winbond W83627HF'
Trying address 0x0290... Failed!
Probing for `Winbond W83627EHF'
Trying address 0x0290... Failed!
Probing for `Silicon Integrated Systems SIS5595'
Trying general detect... Failed!
Probing for `VIA Technologies VT82C686 Integrated Sensors'
Trying general detect... Failed!
Probing for `VIA Technologies VT8231 Integrated Sensors'
Trying general detect... Failed!
Probing for `ITE IT8712F'
Trying address 0x0290... Failed!
Probing for `ITE IT8705F / SiS 950'
Trying address 0x0290... Failed!
Probing for `IPMI BMC KCS'
Trying address 0x0ca0... Failed!
Probing for `IPMI BMC SMIC'
Trying address 0x0ca8... Failed!

Some Super I/O chips may also contain sensors. Super I/O probes are typically a bit more dangerous, as we have to write to I/O ports to do this. This is usually safe though.

Do you want to scan for Super I/O sensors? (YES/no):
Probing for `ITE 8702F Super IO Sensors'
Failed! (0xfc00)
Probing for `ITE 8705F Super IO Sensors'
Failed! (0xfc00)
Probing for `ITE 8712F Super IO Sensors'
Failed! (0xfc00)
Probing for `Nat. Semi. PC87351 Super IO Fan Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87360 Super IO Fan Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87363 Super IO Fan Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87364 Super IO Fan Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87365 Super IO Fan Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87365 Super IO Voltage Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87365 Super IO Thermal Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87366 Super IO Fan Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87366 Super IO Voltage Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87366 Super IO Thermal Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87372 Super IO Fan Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87373 Super IO Fan Sensors'
Failed! (0xfc)
Probing for `Nat. Semi. PC87591 Super IO'
Failed! (0xfc)
Probing for `Nat. Semi. PC87371 Super IO'
Failed! (0xfc)
Probing for `Nat. Semi. PC97371 Super IO'
Failed! (0xfc)
Probing for `Nat. Semi. PC8739x Super IO'
Failed! (0xfc)
Probing for `Nat. Semi. PC8741x Super IO'
Failed! (0xfc)
Probing for `Nat. Semi. PCPC87427 Super IO'
Failed! (0xfc)
Probing for `SMSC 47B27x Super IO Fan Sensors'
Failed! (0xfc)
Probing for `SMSC 47M10x/13x Super IO Fan Sensors'
Failed! (0xfc)
Probing for `SMSC 47M14x Super IO Fan Sensors'
Failed! (0xfc)
Probing for `SMSC 47M15x/192/997 Super IO Fan Sensors'
Failed! (0xfc)
Probing for `SMSC 47S42x Super IO Fan Sensors'
Failed! (0xfc)
Probing for `SMSC 47S45x Super IO Fan Sensors'
Failed! (0xfc)
Probing for `SMSC 47M172 Super IO'
Failed! (0xfc)
Probing for `SMSC LPC47B397-NC Super IO'
Failed! (0xfc)
Probing for `SMSC SCH5307-NS Super IO'
Failed! (0xfc)
Probing for `VT1211 Super IO Sensors'
Failed! (skipping family)
Probing for `Winbond W83627EHF/EHG Super IO Sensors'
Failed! (skipping family)

Do you want to scan for secondary Super I/O sensors? (YES/no):
Probing for `ITE 8702F Super IO Sensors'
Failed! (skipping family)
Probing for `Nat. Semi. PC87351 Super IO Fan Sensors'
Failed! (skipping family)
Probing for `SMSC 47B27x Super IO Fan Sensors'
Failed! (skipping family)
Probing for `VT1211 Super IO Sensors'
Failed! (skipping family)
Probing for `Winbond W83627EHF/EHG Super IO Sensors'
Failed! (skipping family)

Now follows a summary of the probes I have just done. Just press ENTER to continue:

Driver `eeprom' (should be inserted):
Detects correctly:
* Bus `SMBus I801 adapter at 0540'
Busdriver `i2c-i801', I2C address 0x50
Chip `SPD EEPROM' (confidence: 8)
* Bus `SMBus I801 adapter at 0540'
Busdriver `i2c-i801', I2C address 0x51
Chip `SPD EEPROM' (confidence: 8)
* Bus `SMBus I801 adapter at 0540'
Busdriver `i2c-i801', I2C address 0x52
Chip `SPD EEPROM' (confidence: 8)
* Bus `SMBus I801 adapter at 0540'
Busdriver `i2c-i801', I2C address 0x53
Chip `SPD EEPROM' (confidence: 8)
* Bus `SMBus I801 adapter at 0540'
Busdriver `i2c-i801', I2C address 0x54
Chip `SPD EEPROM' (confidence: 8)
* Bus `SMBus I801 adapter at 0540'
Busdriver `i2c-i801', I2C address 0x55
Chip `SPD EEPROM' (confidence: 8)
* Bus `SMBus I801 adapter at 0540'
Busdriver `i2c-i801', I2C address 0x56
Chip `SPD EEPROM' (confidence: 8)
* Bus `SMBus I801 adapter at 0540'
Busdriver `i2c-i801', I2C address 0x57
Chip `SPD EEPROM' (confidence: 8)

Driver `pca9540' (should be inserted):
Detects correctly:
* Bus `SMBus I801 adapter at 0540'
Busdriver `i2c-i801', I2C address 0x70
Chip `Philips Semiconductors PCA9540' (confidence: 1)

I will now generate the commands needed to load the I2C modules.

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----

To load everything that is needed, add this to some /etc/rc* file:

#----cut here----
# I2C adapter drivers
modprobe i2c-i801
# I2C chip drivers
modprobe eeprom
# Warning: the required module pca9540 is not currently installed on your system.
# For status of 2.6 kernel ports see
http://secure.netroedge.com/~lm78/supported.html
# If driver is built-in to the kernel, or unavailable, comment out the following line.
modprobe pca9540

# sleep 2 # optional
/usr/bin/sensors -s # recommended
#----cut here----

WARNING! If you have some things built into your kernel, the list above will contain too many modules. Skip the appropriate ones! You really should try these commands right now to make sure everything is working properly. Monitoring programs won't work until it's done.

Do you want to generate /etc/sysconfig/lm_sensors? (YES/no):
Copy prog/init/lm_sensors.init to /etc/rc.d/init.d/lm_sensors for initialization at boot time.

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

#2 lore raw
In reply to Alan Porter

Hi Alan,

Quoted 56 lines · Alan Porter

Where to start? My name is Alan Porter, and I am in a little over my head. (Now I feel better). I apologize in advance for not being able to speak intelligently about what I am seeing, but I am just now diving into this problem.

I just started a new job at a company that has a RedHat-based distro that runs on telecom equipment. We monitor the health of our machines by running the "sensors" command and parsing the output with a perl script.

Recently (within the last few months?), we have found that the "sensors -A" command has stopped reporting some of our devices, specifically:
- the pcf8574 that monitors power supply health
- the pca9541 -- not sure what this does

From what I can tell, the kernel modules are loading properly,
because I get entries in the /sys filesystem.

   [root at doesnotwork i2c]# find /sys/bus/i2c
   /sys/bus/i2c
   /sys/bus/i2c/drivers
   /sys/bus/i2c/drivers/lm87
   /sys/bus/i2c/drivers/lm87/0-002d
   /sys/bus/i2c/drivers/pcf8574
   /sys/bus/i2c/drivers/pcf8574/0-0023
   /sys/bus/i2c/drivers/pcf8574/0-0022
   /sys/bus/i2c/drivers/pca9541
   /sys/bus/i2c/drivers/pca9541/0-0070
   /sys/bus/i2c/drivers/eeprom
   /sys/bus/i2c/drivers/eeprom/0-0057
   /sys/bus/i2c/drivers/eeprom/0-0053
   /sys/bus/i2c/drivers/lm93
   /sys/bus/i2c/drivers/lm93/0-002e
   /sys/bus/i2c/drivers/dev_driver
   /sys/bus/i2c/drivers/i2c_adapter
   /sys/bus/i2c/devices
   /sys/bus/i2c/devices/0-002d
   /sys/bus/i2c/devices/0-0023
   /sys/bus/i2c/devices/0-0022
   /sys/bus/i2c/devices/0-0070
   /sys/bus/i2c/devices/0-0057
   /sys/bus/i2c/devices/0-0053
   /sys/bus/i2c/devices/0-002e
   [root at doesnotwork i2c]#

The drivers appear to work. They return "sane" data. "128" means the power supply is functioning properly with no warnings.

   [root at doesnotwork Driver]# cat /sys/bus/i2c/drivers/pcf8574/0-0022/read
   128
   [root at doesnotwork Driver]#

However, when I run "sensors -A", I no longer get the following entries in the output:

Quoted 6 lines
   pcf8574-i2c-0-22
   pcf8574-i2c-0-23
   pca9541-i2c-0-70

When I load an older version of our platform (older kernel, same version of lmsensors package), the "sensors -A" command includes these three entries.

This is expected. Since lm_sensors 2.10.0, libsensors non longer handles non-hardware-monitoring chips on recent Linux 2.6 kernels. This was briefly documented in the CHANGES document, although only the "eeprom" driver case is explicitely listed. This is part of our plan to cleanly separate the i2c and hardware monitoring subsystems.

The PCF8574 chip isn't a hardware monitoring chip, so it is no longer handled by libsensors. It never actually belang there. For the PCA9541 I can't tell, the driver doesn't appear to be in the mainline kernel.

So it's really not a bug, it's a feature. You'll have to handle your PCF8574 chips directly through sysfs, or write your own script or application.

Signature · 1 line
Jean Delvare
#3 lore raw
In reply to Alan Porter

<snip>

Quoted 6 lines

This is expected. Since lm_sensors 2.10.0, libsensors non longer handles non-hardware-monitoring chips on recent Linux 2.6 kernels. This was briefly documented in the CHANGES document, although only the "eeprom" driver case is explicitely listed. This is part of our plan to cleanly separate the i2c and hardware monitoring subsystems.

Quoted 8 lines

The PCF8574 chip isn't a hardware monitoring chip, so it is no longer handled by libsensors. It never actually belang there. For the PCA9541 I can't tell, the driver doesn't appear to be in the mainline kernel.

So it's really not a bug, it's a feature. You'll have to handle your PCF8574 chips directly through sysfs, or write your own script or application.

Jean I work with Alan, and I can definately say that that is easy enough, but don't you think there ought to be some generic way to list from a CLI and/or an API the I2C devices (similar to lspci for PCI devices)?

Just my 2 cents...james

#4 lore raw
In reply to Alan Porter

Hi James,

Hey, long time no see, how are you?

Quoted 6 lines · James Olin Oden

Jean I work with Alan, and I can definately say that that is easy enough, but don't you think there ought to be some generic way to list from a CLI and/or an API the I2C devices (similar to lspci for PCI devices)?

Just my 2 cents...james

Well we have "i2cdetect -l" already, which lists the i2c busses, then "i2cdetect N" to list the devices on i2c bus N. It doesn't give the chip names though. The problem is that I2C differs fundamentally from PCI in that the devices are not enumerated and have no unique ID. i2cdetect attempts to detect the addresses where a device lives, but it's only trick, we're not following any specification.

So you could write an "lsi2c" tool, but it would have to list the devices known by the kernel, i.e. for which a driver has already been loaded. That would be done by walking /sys, should be easy enough. But it might be a bit confusing that it lists only "driven" devices, as opposed to lspci or lsusb which list all present devices, even without a driver.

Or you could add device identification to the tool, and it would attempt to find out which devices are there, as sensors-detect is trying to do for I2C/SMBus hardware monitoring chips. But then this is a huge task, because many I2C chips are really hard to identify just by probing them, and it some cases it can even be unsafe to just try.

All in all it really depends on what exactly you are trying to achieve.

Signature · 1 line
Jean Delvare
#5 lore raw
In reply to Alan Porter
Quoted 3 lines · Jean Delvare

Hi James,

Hey, long time no see, how are you?

Doing pretty good.

Quoted 16 lines · James Olin Oden
Quoted 6 lines

Jean I work with Alan, and I can definately say that that is easy enough, but don't you think there ought to be some generic way to list from a CLI and/or an API the I2C devices (similar to lspci for PCI devices)?

Just my 2 cents...james

Well we have "i2cdetect -l" already, which lists the i2c busses, then "i2cdetect N" to list the devices on i2c bus N. It doesn't give the chip names though. The problem is that I2C differs fundamentally from PCI in that the devices are not enumerated and have no unique ID. i2cdetect attempts to detect the addresses where a device lives, but it's only trick, we're not following any specification.

Quoted 7 lines

So you could write an "lsi2c" tool, but it would have to list the devices known by the kernel, i.e. for which a driver has already been loaded. That would be done by walking /sys, should be easy enough. But it might be a bit confusing that it lists only "driven" devices, as opposed to lspci or lsusb which list all present devices, even without a driver.

I think I would be happy with that. My thinking is that as much as possible the structure of your sysfs entries should be hidden
(programatically). libsensors as crufty as it is always provided a
nice abstraction layer, though honestly with these devices it would simply display a single line with them; I mean there wasn't much one could do except be aware that they are there.

As it is its not hard with my current set of libraries to capture them from sysfs so that is what I'll do for now.

Quoted 6 lines

Or you could add device identification to the tool, and it would attempt to find out which devices are there, as sensors-detect is trying to do for I2C/SMBus hardware monitoring chips. But then this is a huge task, because many I2C chips are really hard to identify just by probing them, and it some cases it can even be unsafe to just try.

I wasn't trying to solve the identification problem which seemed to be onerous as ISA device identification back in the bad old days before PCI.

Quoted 2 lines

All in all it really depends on what exactly you are trying to achieve.

I have library that provides a simple perl interface to the sensors information and caches that information for some configurable amount of time, such that you hopefully rarely loose alarms. In this particular case the power supplie devices actually kind of do have "sensors" that are read, but libsensors never gave that. My library though was driven by the fact that libsensors returned this device name and when i detected it I would read the additional information from sysfs.

Its not hard for me to add my own scan though to look for these additional devices, I just liked the fact that sensors was reporting its existence to me.

Cheers...james