double file name in "/proc/sys/dev/sensors/"
Hello.
I am use "linux-2.4.20-suse1/2" from Hubert Mante. (SuSE).
I use a monolithic kernel, without modules.
Has detected something strange:
an:/proc/sys/dev/sensors# ls -la total 0 dr-xr-xr-x 5 root root 0 2003-02-20 19:35 . dr-xr-xr-x 7 root root 0 2003-02-20 19:35 .. -rw-r--r-- 1 root root 0 2003-02-20 19:36 chips -rw-r--r-- 1 root root 0 2003-02-20 19:36 chips dr-xr-xr-x 2 root root 0 2003-02-20 19:36 eeprom-i2c-1-51 dr-xr-xr-x 2 root root 0 2003-02-20 19:36 eeprom-i2c-1-52 dr-xr-xr-x 2 root root 0 2003-02-20 19:36 w83782d-i2c-1-2d
ls -Q
"chips" "chips" "eeprom-i2c-1-51" "w83782d-i2c-1-2d"
How can be two files with the identical name?
1. dmesg |egrep -i "i2c|lm" :
i2c-core.o: i2c core module version 2.7.0 (20021208) i2c-dev.o: i2c /dev entries driver module version 2.7.0 (20021208) i2c-proc.o version 2.7.0 (20021208)
i2c-isa.o version 2.7.0 (20021208)
i2c-dev.o: Registered 'ISA main adapter' as minor 0 i2c-isa.o: ISA bus access for i2c modules initialized. i2c-piix4.o version 2.7.0 (20021208)
i2c-piix4.o: Found PIIX4 device
i2c-dev.o: Registered 'SMBus PIIX4 adapter at 5000' as minor 1 i2c-piix4.o: SMBus detected and initialized
i2c-core.o: i2c core module version 2.7.0 (20021208) i2c-dev.o: i2c /dev entries driver module version 2.7.0 (20021208) i2c-proc.o version 2.7.0 (20021208)
2. .config :
#
# Loadable module support
#
# CONFIG_MODULES is not set
...
#
# I2C support
#CONFIG_I2C=y
# CONFIG_I2C_ALGOBIT is not set
# CONFIG_I2C_ALGOPCF is not setCONFIG_I2C_CHARDEV=yCONFIG_I2C_PROC=y
#
# Hardware sensors mainboard support
#CONFIG_I2C_MAINBOARD=y
# CONFIG_I2C_ALI15X3 is not set
# CONFIG_I2C_ALI1535 is not set
# CONFIG_I2C_AMD756 is not set
# CONFIG_I2C_HYDRA is not set
# CONFIG_I2C_TSUNAMI is not setCONFIG_I2C_PIIX4=y
# CONFIG_I2C_I801 is not set
# CONFIG_I2C_I810 is not set
# CONFIG_I2C_SAVAGE4 is not set
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not set
# CONFIG_I2C_SIS645 is not set
# CONFIG_I2C_VIAPRO is not set
# CONFIG_I2C_VIA is not set
# CONFIG_I2C_VOODOO3 is not setCONFIG_I2C_ISA=y
#
# Hardware sensors chip support
#CONFIG_SENSORS=y
# CONFIG_SENSORS_ADM1021 is not set
# CONFIG_SENSORS_ADM1024 is not set
# CONFIG_SENSORS_ADM1025 is not set
# CONFIG_SENSORS_ADM9240 is not set
# CONFIG_SENSORS_DS1621 is not set
# CONFIG_SENSORS_FSCPOS is not set
# CONFIG_SENSORS_FSCSCY is not set
# CONFIG_SENSORS_GL518SM is not set
# CONFIG_SENSORS_GL520SM is not set
# CONFIG_SENSORS_MAXILIFE is not set
# CONFIG_SENSORS_IT87 is not set
# CONFIG_SENSORS_MTP008 is not set
# CONFIG_SENSORS_LM75 is not set
# CONFIG_SENSORS_LM78 is not set
# CONFIG_SENSORS_LM80 is not set
# CONFIG_SENSORS_LM87 is not set
# CONFIG_SENSORS_LM92 is not set
# CONFIG_SENSORS_SIS5595 is not set
# CONFIG_SENSORS_SMARTBATT is not set
# CONFIG_SENSORS_SMBUSARP is not set
# CONFIG_SENSORS_SMSC47M1 is not set
# CONFIG_SENSORS_THMC50 is not set
# CONFIG_SENSORS_VIA686A is not set
# CONFIG_SENSORS_VT1211 is not set
# CONFIG_SENSORS_VT8231 is not setCONFIG_SENSORS_W83781D=yCONFIG_SENSORS_OTHER=y
# CONFIG_SENSORS_BT869 is not setCONFIG_SENSORS_DDCMON=yCONFIG_SENSORS_EEPROM=y
# CONFIG_SENSORS_MATORB is not set
# CONFIG_SENSORS_PCF8574 is not set
# CONFIG_SENSORS_PCF8591 is not set
...
Quoted 2 lines
I am use "linux-2.4.20-suse1/2" from Hubert Mante. (SuSE).
It is Mantel, isn't it?
Quoted 16 lines
Has detected something strange:
an:/proc/sys/dev/sensors# ls -la total 0 dr-xr-xr-x 5 root root 0 2003-02-20 19:35 . dr-xr-xr-x 7 root root 0 2003-02-20 19:35 .. -rw-r--r-- 1 root root 0 2003-02-20 19:36 chips -rw-r--r-- 1 root root 0 2003-02-20 19:36 chips dr-xr-xr-x 2 root root 0 2003-02-20 19:36 eeprom-i2c-1-51 dr-xr-xr-x 2 root root 0 2003-02-20 19:36 eeprom-i2c-1-52 dr-xr-xr-x 2 root root 0 2003-02-20 19:36 w83782d-i2c-1-2d
Quoted 4 lines
ls -Q
"chips" "chips" "eeprom-i2c-1-51" "w83782d-i2c-1-2d"How can be two files with the identical name?
This can happen because the /proc filesystem is virtual. It shouldn't happen though. Could you please check you don't have two different versions of libsensors installed in two different places (usually /usr/lib and /usr/local/lib)?
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
[Please answer to the list instead of just me.]
Quoted 13 lines
Quoted 3 lines
Quoted 1 line
I am use "linux-2.4.20-suse1/2" from Hubert Mante. (SuSE).
It is Mantel, isn't it?
yes
Quoted 6 lines
Quoted 1 line
How can be two files with the identical name?
This can happen because the /proc filesystem is virtual. It shouldn't happen though. Could you please check you don't have two different versions of libsensors installed in two different places (usually/usr/lib and
/usr/local/lib)?
Quoted 5 lines
no, only one version library.
dpkg -l |grep sensorsii libsensors-dev 2.6.3-5 Lm-sensors development kit ii libsensors1 2.6.3-5 Library to readtemperature/voltage/fan sens
You could have an old file installed from the sources, not from a debian package.
On the other hand, 2.6.3 is a bit old and the bug has possibly been fixed since. Trying 2.6.5 wouldn't hurt.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/