Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150717 - sys-apps/lm_sensors - sensors-detect finds sensors, but sensors -s fails with: Can't access procfs/sysfs file
Summary: sys-apps/lm_sensors - sensors-detect finds sensors, but sensors -s fails with...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Christian Heim (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-10 02:12 UTC by Zoltán B. Vadász
Modified: 2007-01-20 13:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of emerge -- info (emerge--info,3.11 KB, text/plain)
2006-10-10 02:13 UTC, Zoltán B. Vadász
Details
Output of lspci -v (lspci-v,5.36 KB, text/plain)
2006-10-10 02:14 UTC, Zoltán B. Vadász
Details
Output of emerge -av --oneshot lm_sensors (emerge_lm_sensors,47.95 KB, text/plain)
2006-10-10 02:17 UTC, Zoltán B. Vadász
Details
Configuration of the kernel (kernel-config-x86-2.6.16-gentoo-r9,35.21 KB, text/plain)
2006-10-10 02:18 UTC, Zoltán B. Vadász
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zoltán B. Vadász 2006-10-10 02:12:13 UTC
I just upgraded with 'emerge -avuD world' and after the upgrade I can't read the sensors anymore. 

The machine is a laptop with the kernel:
Linux zvadaszll 2.6.16-gentoo-r9 #4 SMP PREEMPT Wed Jun 21 15:04:38 CEST 2006 i686 Intel(R) Celeron(R) M processor         1.50GHz GNU/Linux

I have a sensor chip of type i801, and sensors-detect detects it as it did earlier, but 'sensors -s' failes with:

zvadaszll ~ # sensors -s
Can't access procfs/sysfs file
Unable to find i2c bus information;
For 2.6 kernels, make sure you have mounted sysfs and libsensors
was compiled with sysfs support!
For older kernels, make sure you have done 'modprobe i2c-proc'!
zvadaszll ~ #

Yes, I have a mounted sysfs, and I have the USE flag sysfs and I also recompiled lm_sensors, and saw in the log that it is linked with libsysfs. According to the strace output of 'sensors -s' it failes after openes /sys/class/hwmon, which is actually an empty directory ...

What went wrong with the upgrade?
Comment 1 Zoltán B. Vadász 2006-10-10 02:13:21 UTC
Created attachment 99264 [details]
Output of emerge -- info
Comment 2 Zoltán B. Vadász 2006-10-10 02:14:01 UTC
Created attachment 99265 [details]
Output of lspci -v
Comment 3 Zoltán B. Vadász 2006-10-10 02:17:49 UTC
Created attachment 99266 [details]
Output of emerge -av --oneshot lm_sensors
Comment 4 Zoltán B. Vadász 2006-10-10 02:18:55 UTC
Created attachment 99267 [details]
Configuration of the kernel
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-10-10 10:50:39 UTC
Did you even start the lm_sensors init script?
Comment 6 Zoltán B. Vadász 2006-10-10 12:45:56 UTC
Yes, it fails too, 'couse I configured it to init the sensors.
I can't copy here the proof of it, 'couse this machine is my laptop, and today I left it at work. If it is necessary I can do it tomorrow.

I also forgot to attach tho output of lsmod, but is shows everithing needed:
i2c_core
i2c_dev
i2c_i801
eeprom

All of them belongs to the compiled kernel. I'm sure: I unloaded and loaded them with modprobe.
Comment 7 Laitr Keiows 2006-11-06 11:55:35 UTC
Has same problem: 

# sensors -s
Can't access procfs/sysfs file
Comment 8 Christian Heim (RETIRED) gentoo-dev 2007-01-20 13:42:40 UTC
Could you guys try it with the latest (and hopefully greatest) lm-sensors ? (=sys-apps/lm_sensors-2.10.1)