[lm-sensors] lm-sensors 2.10.1 with newer 2.6.x.x kernel can't read procfs/sysfs
khali at linux-fr.org
Thu Dec 25 15:29:07 CET 2008
Le Lundi 22 Décembre 2008 23:50, John Brier a écrit :
> [root at 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
> "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 18.104.22.168 I have
> # grep CONFIG_SYSFS_DEPRECATED /boot/config-22.214.171.124
Preliminary note: using something as old as lm-sensors 2.10.1 with
a kernel as recent as 126.96.36.199 doesn't make much sense IMHO. We do
our best to preserve compatibility but it's hard to always get it
> 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
> 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.
> 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?
More information about the lm-sensors