Problem with "sensors -s"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Philip Edelbrock wrote:

>
> 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

>
>
> 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 #

>
>
> Anything special logged in syslog/messages? 

Nothing. And nothing after "sensors -s".

>
>
> 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!

>
>
> Phil
>
>
> Derek Dolney wrote:
>
>> Jean Delvare wrote:
>>
>>> (please reply to the list, not to me only)
>>>
>>>  
>>>
>>>> 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?
>>>
>>>
>> There is only one libsensors, the one that came with 
>> lm_sensors-2.7.0. It is libsensors.so.1.3.0.
>>
>>>  
>>>
>>>> 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/
>>>
>>>  
>>>
>> 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
>>
>>> 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.
>>


-- 
-----------------------------------
Derek M. Dolney
Department of Physics and Astronomy
University of Pennsylvania
dolney at astro.physics.upenn.edu
-----------------------------------




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux