Skip to contentSkip to conversation

Problem with "sensors -s"

DISCUSSION Derek Dolney 3 participants 7 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

I run sensors -s (as root!) and get this message:

----------------------snip-------------------------
it87-isa-0290: Can't access /proc file for writing; Run as root? ----------------------snip-------------------------

The i2c-proc IS inserted.

I am using lm_sensors-2.7.0. I am using a 2.4.20 kernel patched with i2c-2.7.0 support.

Mostly my setup seems to work OK, since sensors gives this output:

it87-isa-0290

Adapter: ISA adapter
Algorithm: ISA algorithm
VCore 1:   +1.76 V  (min =  +1.53 V, max =  +1.87 V)
VCore 2:   +2.48 V  (min =  +2.25 V, max =  +2.75 V)
+3.3V:     +6.52 V  (min =  +2.96 V, max =  +3.60 V)   ALARM
+5V:       +4.99 V  (min =  +4.50 V, max =  +5.48 V)
+12V:     +12.00 V  (min = +11.36 V, max = +13.80 V)
-12V:      -1.13 V  (min = -15.86 V, max = -13.40 V)   ALARM
-5V:       -9.22 V  (min = -10.13 V, max =  -9.44 V)   ALARM
Stdby:     +5.07 V  (min =  +4.50 V, max =  +5.48 V)
VBat:      +3.40 V
fan1:     5443 RPM  (min = 3000 RPM, div = 2)
fan2:        0 RPM  (min = 3000 RPM, div = 2)          ALARM
fan3:        0 RPM  (min = 3000 RPM, div = 2)          ALARM
Temp1/MB:    +11?C  (min =  +20?C, max =  +60?C)
Temp2/CPU:  -108?C  (min =  +20?C, max =  +60?C)
Temp3:       +45?C  (min =  +20?C, max =  +60?C)

But I seem to be limited not being able to do sensors -s.

What should I do? Please help!

Signature · 6 lines
-----------------------------------
Derek M. Dolney
Department of Physics and Astronomy
University of Pennsylvania
[email protected]
-----------------------------------
#1 lore raw

(please reply to the list, not to me only)

Quoted 11 lines

I run sensors -s (as root!) and get this message:

----------------------snip-------------------------
it87-isa-0290: Can't access /proc file for writing; Run as root? ----------------------snip-------------------------

The i2c-proc IS inserted.

I am using lm_sensors-2.7.0. I am using a 2.4.20 kernel patched with i2c-2.7.0 support.

Could you make sure you have only *one* libsensors on your system and that it matches the version of sensors you are using?

Quoted 3 lines

But I seem to be limited not being able to do sensors -s.

What should I do? Please help!

If the above doesn't work, please send the output of the following command:

ls -lR /proc/sys/dev/sensors/

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#2 lore raw
In reply to Derek Dolney
Quoted 9 lines

I run sensors -s (as root!) and get this message:

----------------------snip-------------------------
it87-isa-0290: Can't access /proc file for writing; Run as root? ----------------------snip-------------------------

The i2c-proc IS inserted.

Just another question: Do you have any other patch added to your kernel, such as the ptrace bugfix?

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#3 lore raw
In reply to Derek Dolney
Quoted 8 lines
Quoted 4 lines

Just another question: Do you have any other patch added to your kernel,
such as the ptrace bugfix?

I am running gentoo-sources-2.4.20-r2, which is a heavily patched kernel based on one of the -ac kernels. Yes, it contains the ptrace patch.

OK, we had another report, same problem, also using the ptrace patch. On the other hand, I'm using also the ptrace patch with no problem at all. However, I'd tend to think that it is the cause of the problem.

Fixing that is far above my own stills, but now that the cause is known (well, I hope), maybe Phil or Mark will look into the problem. Please be patient, they seem to be rather busy these days.

Thanks for the report.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#4 lore raw
In reply to Derek Dolney
Quoted 13 lines · Jean Delvare

(please reply to the list, not to me only)

Quoted 9 lines

I run sensors -s (as root!) and get this message:

----------------------snip-------------------------
it87-isa-0290: Can't access /proc file for writing; Run as root? ----------------------snip-------------------------

The i2c-proc IS inserted.

Quoted 9 lines
Quoted 4 lines

I am using lm_sensors-2.7.0. I am using a 2.4.20 kernel patched with i2c-2.7.0 support.

Could you make sure you have only *one* libsensors on your system and that it matches the version of sensors you are using?

There is only one libsensors, the one that came with lm_sensors-2.7.0. It is libsensors.so.1.3.0.

Quoted 4 lines
Quoted 4 lines

But I seem to be limited not being able to do sensors -s.

Quoted 11 lines
Quoted 3 lines

What should I do? Please help!

If the above doesn't work, please send the output of the following command:

ls -lR /proc/sys/dev/sensors/

Here is that output:

localhost lib # ls -lR /proc/sys/dev/sensors/
/proc/sys/dev/sensors/:
total 0

-rw-r--r--    1 root     root            0 Mar 24 11:53 chips
dr-xr-xr-x    2 root     root            0 Mar 24 11:53 it87-isa-0290

/proc/sys/dev/sensors/it87-isa-0290:
total 0

-r--r--r--    1 root     root            0 Mar 24 11:53 alarms
-rw-r--r--    1 root     root            0 Mar 24 11:53 fan1
-rw-r--r--    1 root     root            0 Mar 24 11:53 fan2
-rw-r--r--    1 root     root            0 Mar 24 11:53 fan3
-rw-r--r--    1 root     root            0 Mar 24 11:53 fan_div
-rw-r--r--    1 root     root            0 Mar 24 11:53 in0
-rw-r--r--    1 root     root            0 Mar 24 11:53 in1
-rw-r--r--    1 root     root            0 Mar 24 11:53 in2
-rw-r--r--    1 root     root            0 Mar 24 11:53 in3
-rw-r--r--    1 root     root            0 Mar 24 11:53 in4
-rw-r--r--    1 root     root            0 Mar 24 11:53 in5
-rw-r--r--    1 root     root            0 Mar 24 11:53 in6
-rw-r--r--    1 root     root            0 Mar 24 11:53 in7
-rw-r--r--    1 root     root            0 Mar 24 11:53 in8
-rw-r--r--    1 root     root            0 Mar 24 11:53 temp1
-rw-r--r--    1 root     root            0 Mar 24 11:53 temp2
-rw-r--r--    1 root     root            0 Mar 24 11:53 temp3
-r--r--r--    1 root     root            0 Mar 24 11:53 vid
Quoted 3 lines

Just another question: Do you have any other patch added to your kernel,
such as the ptrace bugfix?

I am running gentoo-sources-2.4.20-r2, which is a heavily patched kernel based on one of the -ac kernels. Yes, it contains the ptrace patch.

Signature · 6 lines
-----------------------------------
Derek M. Dolney
Department of Physics and Astronomy
University of Pennsylvania
[email protected]
-----------------------------------
#5 lore raw
In reply to Derek Dolney

I'd like to see:

ls -dl /proc
ls -dl /proc/sys
ls -dl /proc/sys/dev
ls -dl /proc/sys/dev/sensors

Also, try setting some limits the old fashion way (as root):

cd /proc/sys/dev/sensors/it87-isa-0290
echo "0.5 1.0" > in1

Anything special logged in syslog/messages?

Lastly, double check (I know you looked once) that you only have a single libsensors installed:

ldconfig -v | grep libsensors

Phil

Quoted 80 lines · Derek Dolney
Quoted 13 lines · Jean Delvare

(please reply to the list, not to me only)

Quoted 9 lines

I run sensors -s (as root!) and get this message:

----------------------snip-------------------------
it87-isa-0290: Can't access /proc file for writing; Run as root? ----------------------snip-------------------------

The i2c-proc IS inserted.

Quoted 9 lines
Quoted 3 lines

I am using lm_sensors-2.7.0. I am using a 2.4.20 kernel patched with i2c-2.7.0 support.

Could you make sure you have only *one* libsensors on your system and that it matches the version of sensors you are using?

There is only one libsensors, the one that came with lm_sensors-2.7.0. It is libsensors.so.1.3.0.

Quoted 4 lines
Quoted 4 lines

But I seem to be limited not being able to do sensors -s.

Quoted 11 lines
Quoted 2 lines

What should I do? Please help!

If the above doesn't work, please send the output of the following command:

ls -lR /proc/sys/dev/sensors/

Here is that output:

localhost lib # ls -lR /proc/sys/dev/sensors/
/proc/sys/dev/sensors/:
total 0

-rw-r--r--    1 root     root            0 Mar 24 11:53 chips
dr-xr-xr-x    2 root     root            0 Mar 24 11:53 it87-isa-0290

/proc/sys/dev/sensors/it87-isa-0290:
total 0

(quoted diff) +0 -18
-r--r--r--    1 root     root            0 Mar 24 11:53 alarms
-rw-r--r--    1 root     root            0 Mar 24 11:53 fan1
-rw-r--r--    1 root     root            0 Mar 24 11:53 fan2
-rw-r--r--    1 root     root            0 Mar 24 11:53 fan3
-rw-r--r--    1 root     root            0 Mar 24 11:53 fan_div
-rw-r--r--    1 root     root            0 Mar 24 11:53 in0
-rw-r--r--    1 root     root            0 Mar 24 11:53 in1
-rw-r--r--    1 root     root            0 Mar 24 11:53 in2
-rw-r--r--    1 root     root            0 Mar 24 11:53 in3
-rw-r--r--    1 root     root            0 Mar 24 11:53 in4
-rw-r--r--    1 root     root            0 Mar 24 11:53 in5
-rw-r--r--    1 root     root            0 Mar 24 11:53 in6
-rw-r--r--    1 root     root            0 Mar 24 11:53 in7
-rw-r--r--    1 root     root            0 Mar 24 11:53 in8
-rw-r--r--    1 root     root            0 Mar 24 11:53 temp1
-rw-r--r--    1 root     root            0 Mar 24 11:53 temp2
-rw-r--r--    1 root     root            0 Mar 24 11:53 temp3
-r--r--r--    1 root     root            0 Mar 24 11:53 vid
Quoted 4 lines

Just another question: Do you have any other patch added to your kernel,
such as the ptrace bugfix?

I am running gentoo-sources-2.4.20-r2, which is a heavily patched kernel based on one of the -ac kernels. Yes, it contains the ptrace patch.

#6 lore raw
In reply to Derek Dolney
Quoted 7 lines · Philip Edelbrock

I'd like to see:

ls -dl /proc
ls -dl /proc/sys
ls -dl /proc/sys/dev
ls -dl /proc/sys/dev/sensors

localhost dolney # ls -dl /proc
dr-xr-xr-x 96 root root 0 Mar 24 01:00 /proc
localhost dolney # ls -dl /proc/sys
dr-xr-xr-x 10 root root 0 Mar 24 20:47 /proc/sys
localhost dolney # ls -dl /proc/sys/dev
dr-xr-xr-x 5 root root 0 Mar 24 20:47 /proc/sys/dev
localhost dolney # ls -dl /proc/sys/dev/sensors
dr-xr-xr-x 3 root root 0 Mar 24 20:47
/proc/sys/dev/sensors

Quoted 6 lines

Also, try setting some limits the old fashion way (as root):

cd /proc/sys/dev/sensors/it87-isa-0290
echo "0.5 1.0" > in1

This seems to work:

localhost dolney # cd /proc/sys/dev/sensors/it87-isa-0290/ localhost it87-isa-0290 # ls

alarms  fan2  fan_div  in1  in3  in5  in7  temp1  temp3
fan1    fan3  in0      in2  in4  in6  in8  temp2  vid

localhost it87-isa-0290 # cat in1
2.25 2.75 2.48
localhost it87-isa-0290 # echo "0.5 1.0" > in1
localhost it87-isa-0290 # cat in1
0.49 1.00 2.48
localhost it87-isa-0290 #

Quoted 3 lines

Anything special logged in syslog/messages?

Nothing. And nothing after "sensors -s".

Quoted 6 lines

Lastly, double check (I know you looked once) that you only have a single libsensors installed:

ldconfig -v | grep libsensors

ldconfig: libsensors.so.1 -> libsensors.so.1.3.0

I just built a kernel that is identical except that I did not apply the ptrace fix. The problem persists!

Quoted 90 lines

Phil

Quoted 83 lines · Derek Dolney
Quoted 13 lines · Jean Delvare

(please reply to the list, not to me only)

Quoted 9 lines

I run sensors -s (as root!) and get this message:

----------------------snip-------------------------
it87-isa-0290: Can't access /proc file for writing; Run as root? ----------------------snip-------------------------

The i2c-proc IS inserted.

Quoted 10 lines
Quoted 3 lines

I am using lm_sensors-2.7.0. I am using a 2.4.20 kernel patched with i2c-2.7.0 support.

Could you make sure you have only *one* libsensors on your system and that it matches the version of sensors you are using?

There is only one libsensors, the one that came with lm_sensors-2.7.0. It is libsensors.so.1.3.0.

Quoted 9 lines
Quoted 6 lines

But I seem to be limited not being able to do sensors -s.

What should I do? Please help!

Quoted 7 lines

If the above doesn't work, please send the output of the following command:

ls -lR /proc/sys/dev/sensors/

Here is that output:

localhost lib # ls -lR /proc/sys/dev/sensors/
/proc/sys/dev/sensors/:
total 0

-rw-r--r--    1 root     root            0 Mar 24 11:53 chips
dr-xr-xr-x    2 root     root            0 Mar 24 11:53 it87-isa-0290

/proc/sys/dev/sensors/it87-isa-0290:
total 0

(quoted diff) +0 -18
-r--r--r--    1 root     root            0 Mar 24 11:53 alarms
-rw-r--r--    1 root     root            0 Mar 24 11:53 fan1
-rw-r--r--    1 root     root            0 Mar 24 11:53 fan2
-rw-r--r--    1 root     root            0 Mar 24 11:53 fan3
-rw-r--r--    1 root     root            0 Mar 24 11:53 fan_div
-rw-r--r--    1 root     root            0 Mar 24 11:53 in0
-rw-r--r--    1 root     root            0 Mar 24 11:53 in1
-rw-r--r--    1 root     root            0 Mar 24 11:53 in2
-rw-r--r--    1 root     root            0 Mar 24 11:53 in3
-rw-r--r--    1 root     root            0 Mar 24 11:53 in4
-rw-r--r--    1 root     root            0 Mar 24 11:53 in5
-rw-r--r--    1 root     root            0 Mar 24 11:53 in6
-rw-r--r--    1 root     root            0 Mar 24 11:53 in7
-rw-r--r--    1 root     root            0 Mar 24 11:53 in8
-rw-r--r--    1 root     root            0 Mar 24 11:53 temp1
-rw-r--r--    1 root     root            0 Mar 24 11:53 temp2
-rw-r--r--    1 root     root            0 Mar 24 11:53 temp3
-r--r--r--    1 root     root            0 Mar 24 11:53 vid
Quoted 4 lines

Just another question: Do you have any other patch added to your kernel,
such as the ptrace bugfix?

I am running gentoo-sources-2.4.20-r2, which is a heavily patched kernel based on one of the -ac kernels. Yes, it contains the ptrace patch.

Signature · 6 lines
-----------------------------------
Derek M. Dolney
Department of Physics and Astronomy
University of Pennsylvania
[email protected]
-----------------------------------