Ticket #: 1533 / Cant use Sensors -s
Hi,
When i use CVS the Temperatures are correct again, but I still get this Message when I use "sensors -s" :
w83697hf-isa-0290: Can't access procfs/sysfs file for writing; Run as root?
Here is the Output of ls -l /sys/bus/i2c/devices/0-0290
lrwxrwxrwx 1 root root 38 2004-01-24 14:42/sys/bus/i2c/devices/0-0290 -> ../../../devices/platform/i2c-0/0-0290
System :
Epox 8KRAI+
VIA KT600
Athlon 2600+
w83697hf-isa-0290
Tell me if you need more Information..
Am Sam, den 24.01.2004 schrieb Jean Delvare um 16:54:
Quoted 7 lines
Quoted 4 lines
Here is the Output of ls -l
/sys/bus/i2c/devices/0-0290lrwxrwxrwx 1 root root 38 2004-01-24 14:42
/sys/bus/i2c/devices/0-0290-> ../../../devices/platform/i2c-0/0-0290Hehe this is of course a link :/ Try "ls -lL" instead, or whatever will give us the list of files within the directory with permissions.
Oh right :). Here is the output of all files, and permissions.
-rwxrwxrwx 1 root root 4096 2004-01-24 14:42 alarms -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 beep_enable -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 beep_mask -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 detach_state -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 fan_div1 -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 fan_div2 -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 fan_input1 -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 fan_input2 -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 fan_min1 -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 fan_min2 -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 in_input0 -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 in_input2 -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 in_input3 -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 in_input4 -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 in_input5 -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 in_input6 -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 in_input7 -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 in_input8 -rwxrwxrwx 1 root root 0 2004-01-24 17:08 in_max0 -rwxrwxrwx 1 root root 0 2004-01-24 17:08 in_max2 -rwxrwxrwx 1 root root 0 2004-01-24 17:08 in_max3 -rwxrwxrwx 1 root root 0 2004-01-24 17:08 in_max4 -rwxrwxrwx 1 root root 0 2004-01-24 17:08 in_max5 -rwxrwxrwx 1 root root 0 2004-01-24 17:08 in_max6 -rwxrwxrwx 1 root root 0 2004-01-24 17:08 in_max7 -rwxrwxrwx 1 root root 0 2004-01-24 17:08 in_max8 -rwxrwxrwx 1 root root 0 2004-01-24 17:08 in_min0 -rwxrwxrwx 1 root root 0 2004-01-24 17:08 in_min2 -rwxrwxrwx 1 root root 0 2004-01-24 17:08 in_min3 -rwxrwxrwx 1 root root 0 2004-01-24 17:08 in_min4 -rwxrwxrwx 1 root root 0 2004-01-24 17:08 in_min5 -rwxrwxrwx 1 root root 0 2004-01-24 17:08 in_min6 -rwxrwxrwx 1 root root 0 2004-01-24 17:08 in_min7 -rwxrwxrwx 1 root root 0 2004-01-24 17:08 in_min8 -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 name drwxrwxrwx 2 root root 0 2004-01-24 14:42 power -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 pwm1 -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 pwm2 -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 pwm_enable2 -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 sensor1 -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 sensor2 -rwxrwxrwx 1 root root 0 2004-01-24 17:08 temp_hyst1 -rwxrwxrwx 1 root root 0 2004-01-24 17:08 temp_hyst2 -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 temp_input1 -rwxrwxrwx 1 root root 4096 2004-01-24 14:42 temp_input2 -rwxrwxrwx 1 root root 0 2004-01-24 17:08 temp_max1 -rwxrwxrwx 1 root root 0 2004-01-24 17:08 temp_max2
Strange thing is that all is 777 :/
Am Sam, den 24.01.2004 schrieb Jean Delvare um 17:44:
Quoted 5 lines
Quoted 5 lines
Oh right :). Here is the output of all files, and permissions.
-rwxrwxrwx 1 root root 4096 2004-01-24 14:42 alarms
(...)
Strange thing is that all is 777 :/
After rebooting - the Permissions are back to normal.
Quoted 3 lines
Second, try to write a value to an ordinarily-writable i2c file such as
temp_max1. Echo 61000 to it, and cat it to check if the write was successful.
That works for some reason.
Quoted 2 lines
Third, could you reproduce the problem with a non-mm kernel (2.6.2-rc1 for example).
With 2.6.2-rc1 I still got the same Problem.
Now I have compiled the sensors driver with all the debug options set in the Kernel - here is the output.
Ps : Dont know if the Attachment comes through ...
-------------- next part --------------
Jan 25 14:07:55 Technetium i2c_adapter i2c-0: found normal isa entry for adapter 9191, addr 0290 Jan 25 14:07:55 Technetium i2c_adapter i2c-0: client [w83697hf] registered to adapter Jan 25 14:07:55 Technetium i2c_adapter i2c-0: registered as adapter #0 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: found normal i2c_range entry for adapter 1, addr 0020 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (pre): CNT , CMD, ADD@, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: SMBus busy (0x42). Resetting... Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Successfull! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Error: no response! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (post): CNT , CMD, ADD@, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: found normal i2c_range entry for adapter 1, addr 0021 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (pre): CNT , CMD, ADDB, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: SMBus busy (0x40). Resetting... Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Successfull! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Error: no response! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (post): CNT , CMD, ADDB, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: found normal i2c_range entry for adapter 1, addr 0022 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (pre): CNT , CMD, ADDD, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: SMBus busy (0x40). Resetting... Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Successfull! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Error: no response! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (post): CNT , CMD, ADDD, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: found normal i2c_range entry for adapter 1, addr 0023 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (pre): CNT , CMD, ADDF, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: SMBus busy (0x40). Resetting... Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Successfull! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Error: no response! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (post): CNT , CMD, ADDF, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: found normal i2c_range entry for adapter 1, addr 0024 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (pre): CNT , CMD, ADDH, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: SMBus busy (0x40). Resetting... Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Successfull! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Error: no response! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (post): CNT , CMD, ADDH, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: found normal i2c_range entry for adapter 1, addr 0025 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (pre): CNT , CMD, ADDJ, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: SMBus busy (0x40). Resetting... Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Successfull! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Error: no response! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (post): CNT , CMD, ADDJ, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: found normal i2c_range entry for adapter 1, addr 0026 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (pre): CNT , CMD, ADDL, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: SMBus busy (0x40). Resetting... Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Successfull! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Error: no response! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (post): CNT , CMD, ADDL, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: found normal i2c_range entry for adapter 1, addr 0027 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (pre): CNT , CMD, ADDN, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: SMBus busy (0x40). Resetting... Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Successfull! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Error: no response! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (post): CNT , CMD, ADDN, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: found normal i2c_range entry for adapter 1, addr 0028 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (pre): CNT , CMD, ADDP, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: SMBus busy (0x40). Resetting... Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Successfull! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Error: no response! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (post): CNT , CMD, ADDP, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: found normal i2c_range entry for adapter 1, addr 0029 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (pre): CNT , CMD, ADDR, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: SMBus busy (0x40). Resetting... Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Successfull! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Error: no response! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (post): CNT , CMD, ADDR, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: found normal i2c_range entry for adapter 1, addr 002a Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (pre): CNT , CMD, ADDT, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: SMBus busy (0x40). Resetting... Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Successfull! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Error: no response! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (post): CNT , CMD, ADDT, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: found normal i2c_range entry for adapter 1, addr 002b Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (pre): CNT , CMD, ADDV, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: SMBus busy (0x40). Resetting... Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Successfull! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Error: no response! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (post): CNT , CMD, ADDV, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: found normal i2c_range entry for adapter 1, addr 002c Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (pre): CNT , CMD, ADDX, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: SMBus busy (0x40). Resetting... Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Successfull! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Error: no response! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (post): CNT , CMD, ADDX, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: found normal i2c_range entry for adapter 1, addr 002d Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (pre): CNT , CMD, ADDZ, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: SMBus busy (0x40). Resetting... Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Successfull! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Error: no response! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (post): CNT , CMD, ADDZ, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: found normal i2c_range entry for adapter 1, addr 002e Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (pre): CNT , CMD, ADD\, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: SMBus busy (0x40). Resetting... Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Successfull! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Error: no response! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (post): CNT , CMD, ADD\, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: found normal i2c_range entry for adapter 1, addr 002f Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (pre): CNT , CMD, ADD^, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: SMBus busy (0x40). Resetting... Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Successfull! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Error: no response! Jan 25 14:07:57 Technetium i2c_adapter i2c-1: Transaction (post): CNT , CMD, ADD^, DAT0<, DAT1 Jan 25 14:07:57 Technetium i2c_adapter i2c-1: registered as adapter #1 Jan 25 14:07:59 Technetium i2c /dev entries driver Jan 25 14:07:59 Technetium i2c-core: driver dev_driver registered. Jan 25 14:07:59 Technetium i2c_adapter i2c-0: Registered as minor 0 Jan 25 14:07:59 Technetium i2c_adapter i2c-1: Registered as minor 1
Am Son, den 25.01.2004 schrieb Jean Delvare um 16:25:
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Strange thing is that all is 777 :/
After rebooting - the Permissions are back to normal.
Interesting. No way to get them back to 777? I really wonder what caused that in the first place.
Dunno, but all Permissions back to normal now ..
Quoted 2 lines
I guess that even with normal permissions (which by the way I'd like you to show us) your "sensors -s" problem is still there?
Yep :
-r--r--r-- 1 root root 4096 2004-01-25 14:07 alarms -rw-r--r-- 1 root root 4096 2004-01-25 14:07 beep_enable -rw-r--r-- 1 root root 4096 2004-01-25 14:07 beep_mask -rw-r--r-- 1 root root 4096 2004-01-25 14:07 detach_state -rw-r--r-- 1 root root 4096 2004-01-25 14:07 fan_div1 -rw-r--r-- 1 root root 4096 2004-01-25 14:07 fan_div2 -r--r--r-- 1 root root 4096 2004-01-25 14:07 fan_input1 -r--r--r-- 1 root root 4096 2004-01-25 14:07 fan_input2 -rw-r--r-- 1 root root 4096 2004-01-25 14:07 fan_min1 -rw-r--r-- 1 root root 4096 2004-01-25 14:07 fan_min2 -r--r--r-- 1 root root 4096 2004-01-25 14:07 in_input0 -r--r--r-- 1 root root 4096 2004-01-25 14:07 in_input2 -r--r--r-- 1 root root 4096 2004-01-25 14:07 in_input3 -r--r--r-- 1 root root 4096 2004-01-25 14:07 in_input4 -r--r--r-- 1 root root 4096 2004-01-25 14:07 in_input5 -r--r--r-- 1 root root 4096 2004-01-25 14:07 in_input6 -r--r--r-- 1 root root 4096 2004-01-25 14:07 in_input7 -r--r--r-- 1 root root 4096 2004-01-25 14:07 in_input8 -rw-r--r-- 1 root root 0 2004-01-25 15:26 in_max0 -rw-r--r-- 1 root root 0 2004-01-25 15:26 in_max2 -rw-r--r-- 1 root root 0 2004-01-25 15:26 in_max3 -rw-r--r-- 1 root root 0 2004-01-25 15:26 in_max4 -rw-r--r-- 1 root root 0 2004-01-25 15:26 in_max5 -rw-r--r-- 1 root root 0 2004-01-25 15:26 in_max6 -rw-r--r-- 1 root root 0 2004-01-25 15:26 in_max7 -rw-r--r-- 1 root root 0 2004-01-25 15:26 in_max8 -rw-r--r-- 1 root root 0 2004-01-25 15:26 in_min0 -rw-r--r-- 1 root root 0 2004-01-25 15:26 in_min2 -rw-r--r-- 1 root root 0 2004-01-25 15:26 in_min3 -rw-r--r-- 1 root root 0 2004-01-25 15:26 in_min4 -rw-r--r-- 1 root root 0 2004-01-25 15:26 in_min5 -rw-r--r-- 1 root root 0 2004-01-25 15:26 in_min6 -rw-r--r-- 1 root root 0 2004-01-25 15:26 in_min7 -rw-r--r-- 1 root root 0 2004-01-25 15:26 in_min8 -r--r--r-- 1 root root 4096 2004-01-25 14:07 name drwxr-xr-x 2 root root 0 2004-01-25 14:07 power/ -rw-r--r-- 1 root root 4096 2004-01-25 14:07 pwm1 -rw-r--r-- 1 root root 4096 2004-01-25 14:07 pwm2 -rw-r--r-- 1 root root 4096 2004-01-25 14:07 pwm_enable2 -rw-r--r-- 1 root root 4096 2004-01-25 14:07 sensor1 -rw-r--r-- 1 root root 4096 2004-01-25 14:07 sensor2 -rw-r--r-- 1 root root 0 2004-01-25 15:26 temp_hyst1 -rw-r--r-- 1 root root 0 2004-01-25 15:26 temp_hyst2 -r--r--r-- 1 root root 4096 2004-01-25 14:07 temp_input1 -r--r--r-- 1 root root 4096 2004-01-25 14:07 temp_input2 -rw-r--r-- 1 root root 0 2004-01-25 15:26 temp_max1 -rw-r--r-- 1 root root 0 2004-01-25 15:26 temp_max2
Quoted 3 lines
Well, that was supposed to work ;) The common (and unsolved so far) problem is that people can write to the files using "echo" but not through libsensors (which sensors uses).
I see :)
Quoted 7 lines
Yes it does. From what I can see there, you have a second i2c bus (a real one, as opposed to the isa emulation). Looks like there is much trouble on this second adapter. It is probably a completely different problem though. That said, please tell us what that second i2c bus is and what chips are present here, just in case there is some kind of interaction between both problems.
I really don't know where and what the second i2c bus is, I guess there isn't something like lsi2c ?
Quoted 2 lines
Back to the initial problem, I'd like you to strace "sensors -s". I put a trap in there some times ago, maybe it'll confirm my suspicions.
Here is the output.
-------------- next part --------------execve("/usr/local/bin/sensors", ["/usr/local/bin/sensors", "-s"], [/* 35 vars */]) = 0
brk(0) = 0x8064000open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)open("/usr/local/lib/i686/mmx/libsensors.so.3", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/local/lib/i686/mmx", 0xbfffec60) = -1 ENOENT (No such file or directory) open("/usr/local/lib/i686/libsensors.so.3", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/local/lib/i686", 0xbfffec60) = -1 ENOENT (No such file or directory) open("/usr/local/lib/mmx/libsensors.so.3", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/local/lib/mmx", 0xbfffec60) = -1 ENOENT (No such file or directory) open("/usr/local/lib/libsensors.so.3", O_RDONLY) = 3read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\\\0"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0644, st_size4966, ...}) = 0old_mmap(NULL, 206148, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40016000 mprotect(0x40025000, 144708, PROT_NONE) = 0
old_mmap(0x40025000, 77824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xe000) = 0x40025000 old_mmap(0x40038000, 66884, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40038000
close(3) = 0open("/usr/local/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)open("/etc/ld.so.cache", O_RDONLY) = 3fstat64(3, {st_mode=S_IFREG|0644, st_size‰755, ...}) = 0old_mmap(NULL, 89755, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40049000
close(3) = 0open("/lib/libc.so.6", O_RDONLY) = 3read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300]\1"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size58907, ...}) = 0old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4005f000 old_mmap(NULL, 1268836, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40060000 mprotect(0x4018f000, 27748, PROT_NONE) = 0old_mmap(0x4018f000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x12f000) = 0x4018f000 old_mmap(0x40194000, 7268, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40194000
close(3) = 0open("/usr/local/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)open("/lib/libm.so.6", O_RDONLY) = 3read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0006\0"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size7047, ...}) = 0old_mmap(NULL, 140432, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40196000mprotect(0x401b8000, 1168, PROT_NONE) = 0old_mmap(0x401b8000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x21000) = 0x401b8000
close(3) = 0
munmap(0x40049000, 89755) = 0
brk(0) = 0x8064000
brk(0x8065000) = 0x8065000
brk(0) = 0x8065000
open("/etc/sensors.conf", O_RDONLY) = 3
open("/proc/mounts", O_RDONLY) = 4fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000 read(4, "rootfs / rootfs rw 0 0\n/dev/root"..., 1024) = 875
close(4) = 0munmap(0x40049000, 4096) = 0open("/dev/null", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOTDIR (Not a directory) open("/sys/bus/i2c/devices", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4 fstat64(4, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
brk(0) = 0x8065000
brk(0x8066000) = 0x8066000
getdents64(4, /* 3 entries */, 4096) = 80
open("/sys/bus/i2c/devices/0-0290/name", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0444, st_size@96, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
read(5, "w83697hf\n", 4096) = 9
close(5) = 0
munmap(0x40049000, 4096) = 0
open("/sys/class/i2c-adapter/i2c-0/device/name", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0444, st_size@96, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
read(5, "ISA main adapter\n", 4096) = 17
close(5) = 0
munmap(0x40049000, 4096) = 0
getdents64(4, /* 0 entries */, 4096) = 0
close(4) = 0open("/sys/class/i2c-adapter", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4 fstat64(4, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0fcntl64(4, F_SETFD, FD_CLOEXEC) = 0getdents64(4, /* 4 entries */, 4096) = 112open("/sys/class/i2c-adapter/i2c-1/device/name", O_RDONLY) = 5fstat64(5, {st_mode=S_IFREG|0444, st_size@96, ...}) = 0old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000 read(5, "SMBus Via Pro adapter at 5000\n", 4096) = 30
close(5) = 0munmap(0x40049000, 4096) = 0open("/sys/class/i2c-adapter/i2c-0/device/name", O_RDONLY) = 5fstat64(5, {st_mode=S_IFREG|0444, st_size@96, ...}) = 0old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
read(5, "ISA main adapter\n", 4096) = 17 close(5) = 0 munmap(0x40049000, 4096) = 0 getdents64(4, /* 0 entries */, 4096) = 0 close(4) = 0 brk(0) = 0x8066000 brk(0x806a000) = 0x806a000
ioctl(3, SNDCTL_TMR_TIMEBASE, 0xbfffe770) = -1 ENOTTY (Inappropriate ioctl for device) fstat64(3, {st_mode=S_IFREG|0644, st_sizeU115, ...}) = 0old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000 read(3, "# Sensors configuration file use"..., 8192) = 8192read(3, " SMBus adapter\"\n#\n# If we refer "..., 8192) = 8192
brk(0) = 0x806a000 brk(0x806b000) = 0x806b000 brk(0) = 0x806b000 brk(0x806c000) = 0x806c000 read(3, "ard\n# uses the recommended resis"..., 8192) = 8192 brk(0) = 0x806c000 brk(0x806d000) = 0x806d000 brk(0) = 0x806d000 brk(0x806e000) = 0x806e000 brk(0) = 0x806e000 brk(0x806f000) = 0x806f000 brk(0) = 0x806f000 brk(0x8070000) = 0x8070000 read(3, "@\n\n\nchip \"gl518sm-*\"\n\n# IMPORTAN"..., 8192) = 8192 brk(0) = 0x8070000 brk(0x8071000) = 0x8071000 brk(0) = 0x8071000 brk(0x8072000) = 0x8072000 brk(0) = 0x8072000 brk(0x8073000) = 0x8073000 brk(0) = 0x8073000 brk(0x8074000) = 0x8074000
read(3, "or at least one Tyan S1598, the "..., 8192) = 8192
brk(0) = 0x8074000
brk(0x8075000) = 0x8075000read(3, "el temp1 \"CPU2 Temp\"\n label t"..., 8192) = 8192
brk(0) = 0x8075000 brk(0x8076000) = 0x8076000 brk(0) = 0x8076000 brk(0x8077000) = 0x8077000 read(3, "note #1: hyst2 will be automatic"..., 8192) = 5963 read(3, "", 4096) = 0 brk(0) = 0x8077000 brk(0x8078000) = 0x8078000 brk(0) = 0x8078000 brk(0x8079000) = 0x8079000 brk(0) = 0x8079000 brk(0x807a000) = 0x807a000 brk(0) = 0x807a000 brk(0x807b000) = 0x807b000 read(3, "", 8192) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE, 0xbfffe760) = -1 ENOTTY (Inappropriate ioctl for device)
close(3) = 0munmap(0x40049000, 4096) = 0open("/sys/bus/i2c/devices/0-0290/in_min0", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
write(3, "1710", 4) = 4
close(3) = 0
munmap(0x40049000, 4096) = 0
open("/sys/bus/i2c/devices/0-0290/in_max0", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
write(3, "1890", 4) = 4
close(3) = 0
munmap(0x40049000, 4096) = 0
open("/sys/bus/i2c/devices/0-0290/in_min2", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
write(3, "3135", 4) = 4
close(3) = 0
munmap(0x40049000, 4096) = 0
open("/sys/bus/i2c/devices/0-0290/in_max2", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
write(3, "3465", 4) = 4
close(3) = 0
munmap(0x40049000, 4096) = 0
open("/sys/bus/i2c/devices/0-0290/in_min3", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
write(3, "2827", 4) = 4
close(3) = 0
munmap(0x40049000, 4096) = 0
open("/sys/bus/i2c/devices/0-0290/in_max3", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
write(3, "3125", 4) = 4
close(3) = 0
munmap(0x40049000, 4096) = 0
open("/sys/bus/i2c/devices/0-0290/in_min4", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
write(3, "2842", 4) = 4
close(3) = 0
munmap(0x40049000, 4096) = 0
open("/sys/bus/i2c/devices/0-0290/in_max4", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
write(3, "3473", 4) = 4
close(3) = 0
munmap(0x40049000, 4096) = 0
open("/sys/bus/i2c/devices/0-0290/in_max5", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
write(3, "799", 3) = 3
close(3) = 0
munmap(0x40049000, 4096) = 0
open("/sys/bus/i2c/devices/0-0290/in_min5", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
write(3, "332", 3) = 3
close(3) = 0
munmap(0x40049000, 4096) = 0
open("/sys/bus/i2c/devices/0-0290/in_max6", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
write(3, "942", 3) = 3
close(3) = 0
munmap(0x40049000, 4096) = 0
open("/sys/bus/i2c/devices/0-0290/in_min6", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
write(3, "783", 3) = 3
close(3) = 0
munmap(0x40049000, 4096) = 0
open("/sys/bus/i2c/devices/0-0290/in_min7", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
write(3, "2827", 4) = 4
close(3) = 0
munmap(0x40049000, 4096) = 0
open("/sys/bus/i2c/devices/0-0290/in_max7", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
write(3, "3125", 4) = 4
close(3) = 0
munmap(0x40049000, 4096) = 0
open("/sys/bus/i2c/devices/0-0290/in_min8", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
write(3, "2400", 4) = 4
close(3) = 0
munmap(0x40049000, 4096) = 0
open("/sys/bus/i2c/devices/0-0290/in_max8", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
write(3, "3600", 4) = 4
close(3) = 0
munmap(0x40049000, 4096) = 0open("/sys/bus/i2c/devices/0-0290/sensor3", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 EACCES (Permission denied) open("/sys/bus/i2c/devices/0-0290/temp_max1", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
write(3, "40000", 5) = 5
close(3) = 0
munmap(0x40049000, 4096) = 0
open("/sys/bus/i2c/devices/0-0290/temp_hyst1", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
write(3, "37000", 5) = 5
close(3) = 0
munmap(0x40049000, 4096) = 0
open("/sys/bus/i2c/devices/0-0290/temp_max2", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
write(3, "52000", 5) = 5
close(3) = 0
munmap(0x40049000, 4096) = 0
open("/sys/bus/i2c/devices/0-0290/temp_hyst2", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40049000
write(3, "47000", 5) = 5
close(3) = 0
munmap(0x40049000, 4096) = 0open("/sys/bus/i2c/devices/0-0290/temp_max3", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 EACCES (Permission denied) open("/sys/bus/i2c/devices/0-0290/temp_hyst3", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 EACCES (Permission denied) write(2, "w83697hf-isa-0290: Can\'t access "..., 63) = 63write(2, "Run as root?\n", 13) = 13exit_group(1) = ?
Quoted 4 lines
Here is the Output of ls -l
/sys/bus/i2c/devices/0-0290lrwxrwxrwx 1 root root 38 2004-01-24 14:42
/sys/bus/i2c/devices/0-0290-> ../../../devices/platform/i2c-0/0-0290
Hehe this is of course a link :/ Try "ls -lL" instead, or whatever will give us the list of files within the directory with permissions. One possible problem would be that a file supposedly in read+write access would be read-only.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 5 lines
Oh right :). Here is the output of all files, and permissions.
-rwxrwxrwx 1 root root 4096 2004-01-24 14:42 alarms
(...)
Strange thing is that all is 777 :/
Yes, strange is the correct word. Even "name" and "power" are, so I think this excludes any driver-specific cause. I'd like you to move around in /sys/bus/i2c and see if each other file/dir has 777 permissions. Also, see in the rest of /sys if there are non-i2c-related directories with the same anomaly.
Second, try to write a value to an ordinarily-writable i2c file such as temp_max1. Echo 61000 to it, and cat it to check if the write was successful.
Third, could you reproduce the problem with a non-mm kernel (2.6.2-rc1 for example).
Thanks.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Strange thing is that all is 777 :/
After rebooting - the Permissions are back to normal.
Interesting. No way to get them back to 777? I really wonder what caused that in the first place.
I guess that even with normal permissions (which by the way I'd like you to show us) your "sensors -s" problem is still there?
Quoted 5 lines
Quoted 3 lines
Second, try to write a value to an ordinarily-writable i2c file such as
temp_max1. Echo 61000 to it, and cat it to check if the write was successful.That works for some reason.
Well, that was supposed to work ;) The common (and unsolved so far) problem is that people can write to the files using "echo" but not through libsensors (which sensors uses).
Quoted 4 lines
Quoted 2 lines
Third, could you reproduce the problem with a non-mm kernel (2.6.2-rc1 for example).
With 2.6.2-rc1 I still got the same Problem.
OK, thanks for confirming this.
Quoted 4 lines
Now I have compiled the sensors driver with all the debug options set in the Kernel - here is the output.
Ps : Dont know if the Attachment comes through ...
Yes it does. From what I can see there, you have a second i2c bus (a real one, as opposed to the isa emulation). Looks like there is much trouble on this second adapter. It is probably a completely different problem though. That said, please tell us what that second i2c bus is and what chips are present here, just in case there is some kind of interaction between both problems.
Back to the initial problem, I'd like you to strace "sensors -s". I put a trap in there some times ago, maybe it'll confirm my suspicions.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Am Son, den 25.01.2004 schrieb Jean Delvare um 18:17:
Quoted 10 lines
Turns out to be an error in sensors.conf. This file references a third temperature channel that the w83697hf doesn't have. It's commented out by default, but I guess you uncommented the lines (set
temp3_overand settemp3_hyst), and this causes the trouble you're in.Delete these lines from your configuration file, and it should be OK.
I'll do the same in our default configuration file. Strange that nobody reported the problem so far. Maybe people simply don't uncomment lines they don't need.
I see, I would never have thought of some config errors in the sensors.conf file with such an error message, always thought it had something to do with /sys or the modules in general.
When uncommenting these lines I just thought to set up the default max temp values.
Maybe there should be something added to the error message that this can also be caused by wrong settings in sensors.conf
Quoted 1 line
Thanks for the report.
Thanks for helping me, even the problem was that simple and caused by me :)
Quoted 5 lines
Quoted 3 lines
Well, that was supposed to work ;) The common (and unsolved so far) problem is that people can write to the files using "echo" but not through libsensors (which sensors uses).
I see :)
But this is a different thing here, see below.
Quoted 9 lines
Quoted 6 lines
Yes it does. From what I can see there, you have a second i2c bus (a real one, as opposed to the isa emulation). Looks like there is much trouble on this second adapter. It is probably a completely different problem though. That said, please tell us what that second i2c bus is and what chips are present here, just in case there is some kind of interaction between both problems.
I really don't know where and what the second i2c bus is, I guess there isn't something like lsi2c ?
There is "i2cdetect -l", and lsmod too ;)
Quoted 5 lines
Quoted 3 lines
Back to the initial problem, I'd like you to strace "sensors -s". I put a trap in there some times ago, maybe it'll confirm my suspicions.
Here is the output.
Turns out to be an error in sensors.conf. This file references a third temperature channel that the w83697hf doesn't have. It's commented out by default, but I guess you uncommented the lines (set temp3_over and set temp3_hyst), and this causes the trouble you're in.
Delete these lines from your configuration file, and it should be OK.
I'll do the same in our default configuration file. Strange that nobody reported the problem so far. Maybe people simply don't uncomment lines they don't need.
Thanks for the report.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 2 lines
Maybe there should be something added to the error message that this can also be caused by wrong settings in sensors.conf
Well, that kind of error isn't supposed to be present (even in a commented out state) in the default configuration file. And users are not supposed to add random commands in there either.
Quoted 4 lines
Quoted 1 line
Thanks for the report.
Thanks for helping me, even the problem was that simple and caused by me:)
Let us share the guiltiness, since the default configuration file was error-prone.
For one thing, it confirmed that I should always ask for a strace first. Looks like it solves half of the problems with sensors and sensors -s.
I'll be closing your ticket.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/