Skip to contentSkip to conversation

2.8.7 doesnt see sensors on my machine.

DISCUSSION Reg Clemens 2 participants 4 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Sorry if there is a mailing list where this should be discussed, but I didnt see any reference on one on the WEB page.

On my machine, with a 2.4.x kernel I saw minimal information from LM-SENSORS (voltages, temperatures).

on the same machine with a 2.6.7 (and some previous,- probably all) kernel, prog/detect/sensors-detect says 'no sensors detected' as does running sensors.

However, if I load the two modules that I used to (in my /etc/sysconfig/lm_sensors), namely i2c-viapro and w83781d, then 'sensors' gives output equivalent to running under 2.4.x

In any case thought you would like the report, if I can provide any additional useful information, let me know.

Signature · 2 lines
                                        Reg.Clemens
                                        [email protected]
#1 lore raw

Hi Reg,

Quoted 2 lines

Sorry if there is a mailing list where this should be discussed, but I didnt see any reference on one on the WEB page.

This *is* the mailing list. I edited the web page to make it more clean just yesterday. I may edit it further if that's not enough.

Quoted 7 lines

On my machine, with a 2.4.x kernel I saw minimal information from LM-SENSORS(voltages, temperatures).

on the same machine with a 2.6.7 (and some previous,- probably all) kernel, prog/detect/sensors-detect says 'no sensors detected' as does running sensors.

Quoted 6 lines

However, if I load the two modules that I used to (in my /etc/sysconfig/lm_sensors), namely i2c-viapro and w83781d, then 'sensors' gives output equivalent to running under 2.4.x

In any case thought you would like the report, if I can provide any additional useful information, let me know.

Interesting case for sure. Could you please provide the full output of sensors-detect (after unloading any i2c driver) with the 2.6 kernel, and with the 2.4 as well if possible?

Thanks.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#2 lore raw
In reply to Reg Clemens
Quoted 19 lines

Hi Reg,

Quoted 2 lines

Sorry if there is a mailing list where this should be discussed, but I didnt see any reference on one on the WEB page.

This *is* the mailing list. I edited the web page to make it more clean just yesterday. I may edit it further if that's not enough.

Quoted 11 lines

On my machine, with a 2.4.x kernel I saw minimal information from LM-SENSORS(voltages, temperatures).

on the same machine with a 2.6.7 (and some previous,- probably all) kernel, prog/detect/sensors-detect says 'no sensors detected' as does running sensors.

However, if I load the two modules that I used to (in my /etc/sysconfig/lm_sensors), namely i2c-viapro and w83781d, then 'sensors' gives output equivalent to running under 2.4.x

Quoted 9 lines
Quoted 2 lines

In any case thought you would like the report, if I can provide any additional useful information, let me know.

Interesting case for sure. Could you please provide the full output of sensors-detect (after unloading any i2c driver) with the 2.6 kernel, and with the 2.4 as well if possible?

Thanks.

Sorry for the delay in getting back to you, but its been a bad week. This AM I tried the experiment on RH8, RH9 and Fedora2, and found that my previous experiment was bogus. If I use a kernel that has enough modules compiled then it does indeed, in Fedora2 see my sensors.

I REALLY thought that when I built a new kernel that I had put all the I2C stuff in, but Ill have to go back and look.

Case (almost) closed.

I did find that in the startup script for init.d there is some logic looking for sensors in /proc, viz

### If sensors isn't supported by the kernel, try loading the module...
###
### [ -e /proc/sys/dev/sensors ] || /sbin/modprobe i2c-proc &>/dev/null
###
### # Don't bother if /proc/sensors still doesn't exist, kernel doesn't have ### # support for sensors.
### [ -e /proc/sys/dev/sensors ] || exit 0
###
### # If sensors was not already running, unload the module...

and I have had to comment this section out.
There is nothing I can do that seems to make /proc/sys/dev/sensors appear in the 2.6.6 kernel. In particular, the 'modprobe i2c-proc' fails since the module is not found in the distributed kernel vmlinuz-2.6.6-1.435 again, mabe this is something that needs to be turned on (I dont have time to look right now) but 'sensor' seems to work fine without it.

Signature · 2 lines
                                        Reg.Clemens
                                        [email protected]
#3 lore raw
In reply to Reg Clemens
Quoted 13 lines

I did find that in the startup script for init.d there is some logic looking for sensors in /proc, viz

### If sensors isn't supported by the kernel, try loading the #module...##
### [ -e /proc/sys/dev/sensors ] || /sbin/modprobe i2c-proc #&>/dev/null##
### # Don't bother if /proc/sensors still doesn't exist, kernel #doesn't have## # support for sensors.
### [ -e /proc/sys/dev/sensors ] || exit 0
###
### # If sensors was not already running, unload the module...

Quoted 7 lines

and I have had to comment this section out.
There is nothing I can do that seems to make /proc/sys/dev/sensors appear in the 2.6.6 kernel. In particular, the 'modprobe i2c-proc' fails since the module is not found in the distributed kernel vmlinuz-2.6.6-1.435 again, mabe this is something that needs to be turned on (I dont have time to look right now) but 'sensor' seems to work fine without it.

In 2.6, sensors stuff is in /sys, not /proc, so this is no surprise that you don't have /proc/sys/dev/sensors nor i2c-proc module. Our init scripts would certainly need to be updated to support 2.6 kernels, but nobody worked on this yet.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/