lm-sensors 2.10.1 with newer 2.6.x.x kernel can't read
[root@tb303 ~]# sensors
Can't access procfs/sysfs file
Kernel interface access error
For 2.6 kernels, make sure you have mounted sysfs and libsensors was compiled with sysfs support!
I have Debian 4.0 with 2.10.1-3 lm-sensors and libsensors3. I read
http://www.lm-sensors.org/wiki/Kernel2.6
"In kernel 2.6.22, the way the I2C adapters are presented in sysfs changed, and this affects libsensors. You will need lm_sensors version 2.10.3 or later. Alternatively, the kernel can be compiled with CONFIG_SYSFS_DEPRECATED=y, then version 2.10.2 will work too. Older versions of lm_sensors will complain that the I2C adapter names can't be read. This is only a warning though. "
So in my kernel 2.6.26.5 I have
# grep CONFIG_SYSFS_DEPRECATED /boot/config-2.6.26.5 CONFIG_SYSFS_DEPRECATED=y CONFIG_SYSFS_DEPRECATED_V2=y
yet I still get this "warning" If it's only a warning why don't I get the actual readings from my hardware? I looked into upgrading to lm-sensors 3 and libsenseors4 packages from Debian testing tree but the dependencies were pretty bad, I might as well upgrade the whole system to testing.
I have run sensors-detect and have the proper modules loaded.
John Brier
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Re: [lm-sensors] lm-sensors 2.10.1 with newer 2.6.x.x kernel can't
I should also mention that I have /sys mounted
sysfs on /sys type sysfs (rw)
Quoted 28 lines · John Brier
[root@tb303 ~]# sensors
Can't access procfs/sysfs file
Kernel interface access error
For 2.6 kernels, make sure you have mounted sysfs and libsensors was compiled with sysfs support!I have Debian 4.0 with 2.10.1-3 lm-sensors and libsensors3. I read
http://www.lm-sensors.org/wiki/Kernel2.6"In kernel 2.6.22, the way the I2C adapters are presented in sysfs changed, and this affects libsensors. You will need
lm_sensorsversion 2.10.3 or later. Alternatively, the kernel can be compiled withCONFIG_SYSFS_DEPRECATED=y, then version 2.10.2 will work too. Older versions oflm_sensorswill complain that the I2C adapter names can't be read. This is only a warning though. "So in my kernel 2.6.26.5 I have
# grep CONFIG_SYSFS_DEPRECATED /boot/config-2.6.26.5 CONFIG_SYSFS_DEPRECATED=y CONFIG_SYSFS_DEPRECATED_V2=yyet I still get this "warning" If it's only a warning why don't I get the actual readings from my hardware? I looked into upgrading to lm-sensors 3 and libsenseors4 packages from Debian testing tree but the dependencies were pretty bad, I might as well upgrade the whole system to testing.
Quoted 4 lines
I have run sensors-detect and have the proper modules loaded.
John Brier
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Re: [lm-sensors] lm-sensors 2.10.1 with newer 2.6.x.x kernel can't
In reply to John BrierQuoted 1 line · John Brier
[root@tb303 ~]# sensors
I should mention I do have sysfs mounted
sysfs on /sys type sysfs (rw)
I'm trying with a second kernel now
$ grep SYSFS /boot/config-2.6.27.10-JBstrikesagain CONFIG_SYSFS_DEPRECATED=y CONFIG_SYSFS_DEPRECATED_V2=y CONFIG_ACPI_SYSFS_POWER=y CONFIG_SYSFS=y
still no go.
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Re: [lm-sensors] lm-sensors 2.10.1 with newer 2.6.x.x kernel can't
In reply to John BrierHi John,
Le Lundi 22 Décembre 2008 23:50, John Brier a écrit :
Quoted 16 lines
[root@tb303 ~]# sensors
Can't access procfs/sysfs file
Kernel interface access error
For 2.6 kernels, make sure you have mounted sysfs and libsensors was compiled with sysfs support!I have Debian 4.0 with 2.10.1-3 lm-sensors and libsensors3. I read
http://www.lm-sensors.org/wiki/Kernel2.6"In kernel 2.6.22, the way the I2C adapters are presented in sysfs changed, and this affects libsensors. You will need
lm_sensorsversion 2.10.3 or later. Alternatively, the kernel can be compiled withCONFIG_SYSFS_DEPRECATED=y, then version 2.10.2 will work too. Older versions oflm_sensorswill complain that the I2C adapter names can't be read. This is only a warning though. "
Quoted 5 lines
So in my kernel 2.6.26.5 I have
# grep CONFIG_SYSFS_DEPRECATED /boot/config-2.6.26.5 CONFIG_SYSFS_DEPRECATED=y CONFIG_SYSFS_DEPRECATED_V2=y
Preliminary note: using something as old as lm-sensors 2.10.1 with a kernel as recent as 2.6.26.5 doesn't make much sense IMHO. We do our best to preserve compatibility but it's hard to always get it right.
Quoted 2 lines
yet I still get this "warning" If it's only a warning why don't I get the actual readings from my hardware?
The warning documented above is unrelated to your problem, this is why.
Quoted 4 lines
I looked into upgrading to
lm-sensors 3 and libsenseors4 packages from Debian testing tree but the dependencies were pretty bad, I might as well upgrade the whole system to testing.
Shouldn't be. For one thing you should be able to install libsensors3 and libsensors4 in parallel. Once this is done you should be able to upgrade lm-sensors (and only lm-sensors) from version 2.x to version 3.x. I am no Debian expert though, maybe I'm missing something.
Quoted 1 line
I have run sensors-detect and have the proper modules loaded.
Which modules are these?
Please provide the full output of sensors-detect.
Did this system ever work with a different combination of lm-sensors version and kernel version? And what system is this?
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Re: [lm-sensors] lm-sensors 2.10.1 with newer 2.6.x.x kernel can't
In reply to John BrierQuoted 1 line · Jean Delvare
Hi John,
Hi Jean! thanks for responding!
Quoted 6 lines
Preliminary note: using something as old as lm-sensors 2.10.1 with a kernel as recent as 2.6.26.5 doesn't make much sense IMHO. We do our best to preserve compatibility but it's hard to always get it right.
Fair enough. I expected this.
Quoted 11 lines
Quoted 2 lines
yet I still get this "warning" If it's only a warning why don't I get the actual readings from my hardware?
The warning documented above is unrelated to your problem, this is why.
Quoted 4 lines
I looked into upgrading to
lm-sensors 3 and libsenseors4 packages from Debian testing tree but the dependencies were pretty bad, I might as well upgrade the whole system to testing.
Quoted 4 lines
Shouldn't be. For one thing you should be able to install libsensors3 and libsensors4 in parallel. Once this is done you should be able to upgrade lm-sensors (and only lm-sensors) from version 2.x to version 3.x. I am no Debian expert though, maybe I'm missing something.
lm-sensors 3 and libsensors 4 want a newer version of libc6 than I have installed, and upgrading that seems like a bad idea (it would probably force upgrading all the packages on the system since they all depend on libc6, thus I might as well move the whole system from debian stable to debian testing) In the end this may be the only solution :-(
==============[root@tb303 ~]# dpkg -i libsensors4_3.0.2-1+b2_amd64.deb (Reading database ... 30914 files and directories currently installed.) Preparing to replace libsensors4 1:3.0.2-1+b2 (using libsensors4_3.0.2-1+b2_amd64.deb) ...
Unpacking replacement libsensors4 ...
dpkg: dependency problems prevent configuration of libsensors4:
libsensors4 depends on libc6 (>= 2.7-1); however:
Version of libc6 on system is 2.3.6.ds1-13etch7.
dpkg: error processing libsensors4 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libsensors4
[root@tb303 ~]# dpkg -i lm-sensors_3.0.2-1+b2_amd64.deb
(Reading database ... 30914 files and directories currently installed.) Preparing to replace lm-sensors 1:2.10.1-3 (using lm-sensors_3.0.2-1+b2_amd64.deb) ...
Unpacking replacement lm-sensors ...
dpkg: dependency problems prevent configuration of lm-sensors:
lm-sensors depends on libc6 (>= 2.7-1); however:
Version of libc6 on system is 2.3.6.ds1-13etch7.
lm-sensors depends on libsensors4 (>= 1:3.0.0-1); however:
Package libsensors4 is not configured yet.
dpkg: error processing lm-sensors (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
lm-sensors
[root@tb303 ~]# dpkg -i libc6_2.7-16_amd64.deb
dpkg: regarding libc6_2.7-16_amd64.deb containing libc6:
libc6 conflicts with tzdata-etch
tzdata provides tzdata-etch and is installed.
dpkg: error processing libc6_2.7-16_amd64.deb (--install):
conflicting packages - not installing libc6
Errors were encountered while processing:
libc6_2.7-16_amd64.deb
[root@tb303 ~]# dpkg -p libc6
Package: libc6
Priority: required
Section: libs
Installed-Size: 11468
Maintainer: GNU Libc Maintainers <[email protected]>
Architecture: amd64
Source: glibc
Version: 2.7-16
Provides: glibc-2.7-1
Depends: libgcc1
Suggests: locales, glibc-doc
Conflicts: libterm-readline-gnu-perl (<< 1.15-2), tzdata (<< 2007k-1), tzdata-etch
Filename: pool/main/g/glibc/libc6_2.3.6.ds1-13etch5_amd64.deb
Size: 4936850
MD5sum: d25329a43a9631173dac87a4ed161ee5
Description: GNU C Library: Shared libraries
Contains the standard libraries that are used by nearly all programs on the system. This package includes shared versions of the standard C library and the standard math library, as well as many others.
==============
Quoted 4 lines
Quoted 2 lines
I have run sensors-detect and have the proper modules loaded.
Which modules are these?
i2c_nforce2
w83627hf
k8temp is compiled directly into the kernel (non modular).
Quoted 2 lines
Please provide the full output of sensors-detect.
Quoted 3 lines
Did this system ever work with a different combination of lm-sensors version and kernel version? And what system is this?
Yes it worked with an older kernel and same version of lm-sensors (not certain on the version of lm-sensors because I've updated since then of course, this was a year ago that it worked). The kernel it used to work on (I can test this again) was 2.6.20.1.
The system is MSI K8N Neo4 Platinum nforce4 based motherboard.
http://www.msicomputer.com/product/p_spec.asp?model=K8N_Neo4_Platinum&class=mb
John Brier
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Re: [lm-sensors] lm-sensors 2.10.1 with newer 2.6.x.x kernel can't
In reply to John BrierHi John,
Le Jeudi 25 Décembre 2008 19:05, John Brier a écrit :
Quoted 6 lines
lm-sensors 3 and libsensors 4 want a newer version of libc6 than I have installed, and upgrading that seems like a bad idea (it would probably force upgrading all the packages on the system since they all depend on libc6, thus I might as well move the whole system from debian stable to debian testing) In the end this may be the only solution :-(
Ah, OK then. I only thought about libsensors compatibility issues, not system-wide compatibility issues such as glibc.
That being said, I am a little surprised that Debian offers no half way between lm-sensors 2.10.1 (over 2 year old!) and 3.0.2 (fairly recent).
Quoted 5 lines
Quoted 1 line
Which modules are these?
i2c_nforce2
w83627hf
k8temp is compiled directly into the kernel (non modular).
Please note that i2c-nforce2 isn't actually needed.
Quoted 2 lines
Quoted 1 line
Please provide the full output of sensors-detect.
Looks sane.
Quoted 7 lines
Quoted 2 lines
Did this system ever work with a different combination of lm-sensors version and kernel version? And what system is this?
Yes it worked with an older kernel and same version of lm-sensors (not certain on the version of lm-sensors because I've updated since then of course, this was a year ago that it worked). The kernel it used to work on (I can test this again) was 2.6.20.1.
In kernel 2.6.22, the w83627hf driver was converted from an i2c-isa driver to a platform driver. Even though this is supposedly supported since lm-sensors 2.10.0, this may still be the cause for the compatibility problem you're seeing, given how old lm-sensors 2.10.1 is.
Probably the best way to make sure what the exact problem is is to run "strace sensors" and see where the failure occurs.
It would also be a good idea to check that everything is OK on the kernel side. What does the following command return?
grep . /sys/class/hwmon/hwmon*/device/name
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Re: [lm-sensors] lm-sensors 2.10.1 with newer 2.6.x.x kernel can't
In reply to John BrierQuoted 7 lines · Jean Delvare
Probably the best way to make sure what the exact problem is is to run "strace sensors" and see where the failure occurs.
It would also be a good idea to check that everything is OK on the kernel side. What does the following command return?
grep .
/sys/class/hwmon/hwmon*/device/name
I did the grep and then ran the strace on sensors and all the sudden it was working! Could a grep and strace make it work?! No...
So apparently dpkg *did* install the newer lm-sensors 3 and libsensors4.. and now it works. LOL. This just shows my inexperience with Debian. (I know Red Hat based distros the best). Well I guess the issue is resolved now.. Not sure how this happened when it clearly looked like it failed dependencies..
[root@tb303 log]# dpkg -p lm-sensors
Package: lm-sensors
Priority: extra
Section: utils
Installed-Size: 560
Maintainer: Aurelien Jarno <[email protected]>
Architecture: amd64
Source: lm-sensors-3 (1:3.0.2-1)
Version: 1:3.0.2-1+b2
Depends: sed (>= 4.0.5-1), libc6 (>= 2.7-1), libsensors4 (>= 1:3.0.0-1), perl
Suggests: sensord, read-edid, i2c-tools
Filename: pool/main/l/lm-sensors/lm-sensors_2.10.1-3_amd64.deb
Size: 126438
MD5sum: 1577df796b8e4502b6499450cd0fd1b5
Description: utilities to read temperature/voltage/fan sensors
Lm-sensors is a hardware health monitoring package for Linux. It allows you to access information from temperature, voltage, and fan speed sensors. It works with most newer systems.
.
This package contains programs to help you set up and read data from lm-sensors.
Homepage: http://www.lm-sensors.org
[root@tb303 log]# dpkg -p libsensors4
Package: libsensors4
Priority: optional
Section: libs
Installed-Size: 212
Maintainer: Aurelien Jarno <[email protected]>
Architecture: amd64
Source: lm-sensors-3 (1:3.0.2-1)
Version: 1:3.0.2-1+b2
Depends: makedev (>= 2.3.1-45) | udev, ucf (>= 0.28), libc6 (>= 2.7-1)
Recommends: lm-sensors
Size: 63588
Description: library to read temperature/voltage/fan sensors
Lm-sensors is a hardware health monitoring package for Linux. It allows you to access information from temperature, voltage, and fan speed sensors. It works with most newer systems.
.
This package contains a shared library for querying lm-sensors.
Homepage: http://www.lm-sensors.org
I had the older libsensors3 installed too but I just removed it. Sensors was generating some syntax reading errors on the old config file but i used sensors-conf-convert to fix that. I'm 100% back in business. Still not sure how that install went forward when I didn't actively force it.
[root@tb303 log]# sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +21.8�C (crit = +96.8�C)
k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp: +26.0�C
w83627thf-isa-0290
Adapter: ISA adapter
VCore: +1.07 V (min = +0.00 V, max = +3.84 V)
+12V: +12.65 V (min = +5.59 V, max = +7.78 V) ALARM +3.3V: +3.12 V (min = +2.82 V, max = +1.31 V) ALARM +5V: +5.01 V (min = +0.16 V, max = +2.19 V) ALARM -12V: -11.95 V (min = -14.91 V, max = -4.38 V) V5SB: +5.00 V (min = +2.61 V, max = +1.40 V) ALARM VBat: +2.98 V (min = +1.39 V, max = +1.41 V) ALARM fan1: 0 RPM (min = 28125 RPM, div = 2) ALARM CPU Fan: 2083 RPM (min = -1 RPM, div = 8) ALARM fan3: 5625 RPM (min = 3688 RPM, div = 2) M/B Temp: +32.0�C (high = +4.0�C, hyst = +1.0�C) ALARM sensor = thermistor CPU Temp: +32.0�C (high = +80.0�C, hyst = +75.0�C) sensor = thermistor temp3: +13.5�C (high = +21.0�C, hyst = +17.0�C) sensor = diode cpu0_vid: +0.000 V
beep_enable:enabled
I guess this means I have the wrong version of libc6 installed now. I'm off to figure out if I broke my system.. lol
John Brier
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Re: [lm-sensors] lm-sensors 2.10.1 with newer 2.6.x.x kernel can't
In reply to John BrierQuoted 2 lines · John Brier
I guess this means I have the wrong version of libc6 installed now. I'm off to figure out if I broke my system.. lol
As it turns out dpkg -i installed the packages libsensors4 and lm-sensors 3 but did not fully install them. libc6 was unchanged. Now dselect wants to remove them because of the unmet libc6 requirement when I upgrade. So I'm having Debian issues now. Thanks very much Jean for helping me!
John
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors