sensors vs 2.6, sensors 0 kernel 1
Hi Gene,
You really want to contact the mailing-list to report problems. More readers, more chance to get your problem solved.
Quoted 3 lines
I'm currently running the 2.6.1-rc1-mm1 kernel, and have followed the instruction in lm_sensors-2.8.2, doing only a make user and make user-install, and nothing in the ic2-2.8.2 dir.
As a general rule, 2.6.0 is best supported by lm_sensors-2.8.2 and 2.6.1-rc1 and next are better supported by lm_sensors2-CVS (or will be soon).
Quoted 2 lines
Everything required for a 2.4 kernel to read all my hardware is turned on in the 2.6 config.
As modules or into the kernel?
Quoted 4 lines
ISTR being told that everything has been moved from the /proc virtual dir to the /sys virtual dir, but while a bunch of stuffs from the bttv and gforce2 card show up there, none of the hardware stuff for temps, voltages and fans seems to have survived the trip.
What are you using for the geforce2 card? Rivatv? Is that something present in the kernel or some additional patch?
Quoted 64 lines
Here is a tree of that dir:
[root@coyote i2c]# pwd/sys/bus/i2c
[root@coyote i2c]# tree
.
|-- devices
| |-- 0-0050 ->
../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0050
| |-- 0-0051 ->
../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0051
| |-- 0-0052 ->
../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0052
| |-- 0-0053 ->
../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0053
| |-- 0-0054 ->
../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0054
| |-- 0-0055 ->
../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0055
| |-- 0-0056 ->
../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0056
| |-- 0-0057 ->
../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0057
| |-- 0-0061 ->
../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0061
| |-- 1-0050 ->
../../../devices/pci0000:00/0000:00:11.0/i2c-1/1-0050
| `-- 1-0051 ->
../../../devices/pci0000:00/0000:00:11.0/i2c-1/1-0051 `-- drivers|-- dev_driver |-- eeprom | |-- 0-0050 -> ../../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0050 | |-- 0-0051 -> ../../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0051 | |-- 0-0052 -> ../../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0052 | |-- 0-0053 -> ../../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0053 | |-- 0-0054 -> ../../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0054 | |-- 0-0055 -> ../../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0055 | |-- 0-0056 -> ../../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0056 | |-- 0-0057 -> ../../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0057 | |-- 1-0050 -> ../../../../devices/pci0000:00/0000:00:11.0/i2c-1/1-0050 | `-- 1-0051 -> ../../../../devices/pci0000:00/0000:00:11.0/i2c-1/1-0051 |-- generic i2c audio drive |-- i2c TV tuner driver | `-- 0-0061 -> ../../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0061 |-- i2c msp3400 driver |-- i2c tda7432 driver |-- i2c tda9875 driver |-- i2c tda9887 driver |-- i2c_adapter |-- tv card mixer drive `-- w83781d
Quoted 1 line
35 directories, 0 files
I suspect that tree doesn't follow symlinks. What if you "cd /sys/bus/i2c/devices/1-0050" and list the files in there?
Quoted 10 lines
I've just this week upgraded my atk, pango, glib and gtk+- to the latest versions, running into version hell for a while, and gkrellm is now 2.1.24. Everybody who will bother to answer the questions says it "just works" except that it doesn't. The only thing related to i2c that shows up in dmesg is this:
Linux version 2.6.1-rc1-mm1 ([email protected]) (gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)) #1 Fri Jan 2 19:25:06 EST 2004 [...]
i2c /dev entries driver
I'd expect messages like "1-0050 registered" too (can't tell you the exact message, I'm not under 2.6). Don't you see them?
Quoted 4 lines
running sensors-detect, it appears its still looking in the /proc dir, and bails out when it cannot find it:
We are now going to do the adapter probings. Some adapters may hang halfway through; we can't really help that. Also, some chips will be
Quoted 8 lines
double detected; we choose the one with the highest confidence value in that case.
If you found that the adapter hung after probing a certain address, you can specify that address to remain unprobed. That often includes address0x69(clock chip).
Couldn't open/proc/bus/i2c?!? at/usr/local/sbin/sensors-detectline 3184, <STDIN> line 9.
[root@coyote i2c]#
Strange. It is supposed to work and was tested to, too. What does "type -a i2cdetect" return?
Quoted 7 lines
Now, I've just wander through
/usr/local/sbin/sensors-detect, changeing all the /proc to /sys, and the script at least runs and generates a samplelm_sensorsto be copied in/etc/init.d. I copied that, and rebooted again, but there isn't anything in the logs or available to gkrellm from the w83781d device.Am I doing something wrong yet?
No, it seems correct. I suspect that the w83781d driver doesn't detect you chip correctly, but I can't tell why. Please provide the output of "lsmod" so that we can take a look at your modules stack (if you used modules). If you did not use module, please try to do so (for the i2c stuff at least) and see it it is any better. I admit that we all mostly use modules because it makes debugging much easier, so the in-kernel method isn't too well tested.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 9 lines · Jean Delvare
Hi Gene,
You really want to contact the mailing-list to report problems. More readers, more chance to get your problem solved.
Quoted 3 lines
I'm currently running the 2.6.1-rc1-mm1 kernel, and have followed the instruction in lm_sensors-2.8.2, doing only a make user and make user-install, and nothing in the ic2-2.8.2 dir.
Quoted 8 lines
As a general rule, 2.6.0 is best supported by lm_sensors-2.8.2 and 2.6.1-rc1 and next are better supported by lm_sensors2-CVS (or will be soon).
Quoted 2 lines
Everything required for a 2.4 kernel to read all my hardware is turned on in the 2.6 config.
As modules or into the kernel?
Was in the kernel, is now all modules with the last reboot
Quoted 9 lines
Quoted 6 lines
ISTR being told that everything has been moved from the /proc virtual dir to the /sys virtual dir, but while a bunch of stuffs from the bttv and gforce2 card show up there, none of the hardware stuff for temps, voltages and fans seems to have survived the trip.
What are you using for the geforce2 card? Rivatv? Is that something present in the kernel or some additional patch?
rivefb, in the kernel.
Quoted 109 lines
Quoted 109 lines
Here is a tree of that dir:
[root@coyote i2c]# pwd/sys/bus/i2c
[root@coyote i2c]# tree
.|-- devices | | |-- 0-0050 ->../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0050
| |-- 0-0051 ->
../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0051
| |-- 0-0052 ->
../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0052
| |-- 0-0053 ->
../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0053
| |-- 0-0054 ->
../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0054
| |-- 0-0055 ->
../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0055
| |-- 0-0056 ->
../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0056
| |-- 0-0057 ->
../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0057
| |-- 0-0061 ->
../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0061
| |-- 1-0050 ->
../../../devices/pci0000:00/0000:00:11.0/i2c-1/1-0050
| `-- 1-0051 ->
../../../devices/pci0000:00/0000:00:11.0/i2c-1/1-0051 `-- drivers
|-- dev_driver |-- eeprom | | |-- 0-0050 ->../../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0050
| |-- 0-0051 ->../../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0051
| |-- 0-0052 ->../../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0052
| |-- 0-0053 ->../../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0053
| |-- 0-0054 ->../../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0054
| |-- 0-0055 ->../../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0055
| |-- 0-0056 ->../../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0056
| |-- 0-0057 ->../../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0057
| |-- 1-0050 ->../../../../devices/pci0000:00/0000:00:11.0/i2c-1/1-0050
| `-- 1-0051 ->../../../../devices/pci0000:00/0000:00:11.0/i2c-1/1-0051
|-- generic i2c audio drive |-- i2c TV tuner driver | `-- 0-0061 ->../../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0061
|-- i2c msp3400 driver |-- i2c tda7432 driver |-- i2c tda9875 driver |-- i2c tda9887 driver |-- i2c_adapter |-- tv card mixer drive
Quoted 6 lines
Quoted 3 lines
`-- w83781d35 directories, 0 files
I suspect that tree doesn't follow symlinks. What if you "cd
/sys/bus/i2c/devices/1-0050" and list the files in there?
With the last reboot, /sys/bus/i2c doesn't exist.
I also have lost the ability to insmod/modprobe anything after the reboot.
I did modify that one line 337 in rc.sysinit because there doesn't seem to be a /proc/ksims directory anymore. And of course since I can't insmod anything a cat of /proc/modules is a linefeed only, on the cli.
For every attempt to modprobe something during the boot, I get a failed report along with a modprobe: QM_MODULES not implemented. I've done the modprobe-conversion thing, so I have an /etc/modprobe.conf, possibly out of date because I haven't used modules in over a year.
After putting in the module-init-tools-3.0-pre4, I have this in /usr/local/sbin:
-----------------
-rwxr-xr-x 1 root root 95675 Jan 3 03:49 depmod
lrwxr-xr-x 1 root root 12 Jan 3 03:48 depmod.old -> /sbin/depmod
-rwxr-xr-x 1 root root 30179 Jan 3 03:49 insmod
lrwxr-xr-x 1 root root 12 Jan 3 03:48 insmod.old -> /sbin/insmod
-rwxr-xr-x 1 root root 478763 Jan 3 03:49 insmod.static -rwxr-xr-x 1 root root 78876 Jan 3 03:49 modprobe
lrwxr-xr-x 1 root root 14 Jan 3 03:48 modprobe.old -> /sbin/modprobe
-rwxr-xr-x 1 root root 33986 Jan 3 03:49 rmmod
lrwxr-xr-x 1 root root 11 Jan 3 03:48 rmmod.old -> /sbin/rmmod
------------
I took some whitespace out above in case it looks odd.
$PATH is a mess, but /usr/local/sbin is in front of /usr/sbin according to an echo of it.
Quoted 38 lines
Quoted 10 lines
I've just this week upgraded my atk, pango, glib and gtk+- to the latest versions, running into version hell for a while, and gkrellm is now 2.1.24. Everybody who will bother to answer the questions says it "just works" except that it doesn't. The only thing related to i2c that shows up in dmesg is this:
Linux version 2.6.1-rc1-mm1 ([email protected]) (gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)) #1 Fri Jan 2 19:25:06 EST 2004 [...]
i2c /dev entries driverI'd expect messages like "1-0050 registered" too (can't tell you the exact message, I'm not under 2.6). Don't you see them?
Quoted 4 lines
running sensors-detect, it appears its still looking in the /proc dir, and bails out when it cannot find it:
We are now going to do the adapter probings. Some adapters may
hang halfway through; we can't really help that. Also, some chipsQuoted 8 lines
will be double detected; we choose the one with the highest confidence value in that case.
If you found that the adapter hung after probing a certain
address, you can specify that address to remain unprobed. That often includes address0x69(clock chip).
Couldn't open/proc/bus/i2c?!? at/usr/local/sbin/sensors-detectline 3184, <STDIN> line 9.
[root@coyote i2c]#Strange. It is supposed to work and was tested to, too. What does "type -a i2cdetect" return?
Quoted 7 lines
Now, I've just wander through
/usr/local/sbin/sensors-detect, changeing all the /proc to /sys, and the script at least runs and generates a samplelm_sensorsto be copied in/etc/init.d. I copied that, and rebooted again, but there isn't anything in the logs or available to gkrellm from the w83781d device.Am I doing something wrong yet?
Quoted 7 lines
No, it seems correct. I suspect that the w83781d driver doesn't detect you chip correctly, but I can't tell why. Please provide the output of "lsmod" so that we can take a look at your modules stack (if you used modules). If you did not use module, please try to do so (for the i2c stuff at least) and see it it is any better. I admit that we all mostly use modules because it makes debugging much easier, so the in-kernel method isn't too well tested.
The w83781d module worked fine, under say 2.4.23-pre3... When built into the kernel too.
Aha! That rc.sysinit script is still foobar, where it uses an absolute path, its running the old modutils versions in /usr/sbin! I'm going to run thru it giving it the absolute path for modprobe, reboot and see if anything works, BRB
Well, that took a while, I forgot to set a chmod +x on the new rc.sysinit, and of course the thing defaults to ro when you do a single. So I set the option line to rw and rescue, which let me fix that. But, now there are no modprobe related messages whatsoever in /var/log/dmesg or messages.
I saved the old rc.sysinit of course :-), so I might as well move it back into position in the line of fire.
I suspect the real problem is the module-init-tools install, but I can't see the trees for all that forest right now.
So, no sound, or sensors. OTOH, tvtime shows its usual great picture! Odd. Puzzling even. I need some sleep, this up all night crap ain't what it was 60 years ago.
Signature · 7 lines
Cheers Jean, Gene AMD K6-III@500mhz 320M Athlon1600XP@1400mhz 512M 99.22% setiathome rank, not too shabby for a WV hillbilly Yahoo.com attornies please note, additions to this message by Gene Heskett are: Copyright 2003 by Maurice Eugene Heskett, all rights reserved.
Quoted 4 lines
Quoted 2 lines
What are you using for the geforce2 card? Rivatv? Is that something present in the kernel or some additional patch?
rivefb, in the kernel.
As far as I can see this doesn't make any use or the i2c subsystem.
Quoted 1 line
With the last reboot,
/sys/bus/i2cdoesn't exist.
I think you have to load the i2c-sensor module for this.
Quoted 2 lines
I also have lost the ability to insmod/modprobe anything after the reboot.
Didn't you forget to enable the module support? Not sure that the configuration system would have let you compile drivers as modules else though.
Or maybe you have some other problem with the module tools, but I can't really help.
Quoted 4 lines
I did modify that one line 337 in rc.sysinit because there doesn't seem to be a
/proc/ksimsdirectory anymore. And of course since I can't insmod anything a cat of/proc/modulesis a linefeed only, on the cli.
That might mean that your distribution isn't fully ready for a 2.6 kernel. Maybe you should try to find some documentation on how to update your specific distribution so that it works OK with a 2.6 kernel.
Quoted 3 lines
I've done the modprobe-conversion thing, so I have an
/etc/modprobe.conf, possibly out of date because I haven't used modules in over a year.
You should be mostly able to use lm_sensors with no modprobe.conf at all.
Quoted 9 lines
After putting in the module-init-tools-3.0-pre4, I have this in
/usr/local/sbin:
-----------------
-rwxr-xr-x 1 root root 95675 Jan 3 03:49 depmod
lrwxr-xr-x 1 root root 12 Jan 3 03:48 depmod.old ->/sbin/depmod
-rwxr-xr-x 1 root root 30179 Jan 3 03:49 insmod
lrwxr-xr-x 1 root root 12 Jan 3 03:48 insmod.old ->/sbin/insmod(quoted diff) +0
-2-rwxr-xr-x 1 root root 478763 Jan 3 03:49 insmod.static -rwxr-xr-x 1 root root 78876 Jan 3 03:49 modprobe
Quoted 4 lines
lrwxr-xr-x 1 root root 14 Jan 3 03:48 modprobe.old ->
/sbin/modprobe
-rwxr-xr-x 1 root root 33986 Jan 3 03:49 rmmod
lrwxr-xr-x 1 root root 11 Jan 3 03:48 rmmod.old ->/sbin/rmmod
------------
I'm still using 0.9.14 and it works well. Maybe the newer versions have some problems (it's labeled "pre"...)
Quoted 2 lines
The w83781d module worked fine, under say 2.4.23-pre3... When built into the kernel too.
This driver has had some changes since it was ported to 2.5/2.6, and not all of them have been ported.
Quoted 2 lines
I suspect the real problem is the module-init-tools install, but I can't see the trees for all that forest right now.
Sounds possible - although it wouldn't explain why your w83781d chip wasn't detected in the first place.
Please try to get module support to work correctly before we go on, since it will help a lot understanding what happens.
Quoted 3 lines
So, no sound, or sensors. OTOH, tvtime shows its usual great picture! Odd. Puzzling even. I need some sleep, this up all night crap ain't what it was 60 years ago.
Good night ;) and good luck.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/