sensor readings using kernel 2.5.x/2.6.0-test1

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

 



Greg KH wrote:

>On Wed, Jul 16, 2003 at 01:37:52AM -0400, Todor T. Zviskov wrote:
>  
>
>>Hi,
>>
>>I'm sorry if I'm bothering you but I just discovered something that 
>>might interest you. I just noticed I got sensor readings in gkrellm with 
>>the 2.6.0-test1 kernel. At first it was disabled when I booted in the 
>>new kernel and opened gkrellm but then I noticed that the readings were 
>>just disabled (for some reason) in the config. I previously thought 
>>gkrellm was using the `sensors' program for the readings (cause they say 
>>lm_sensors is required) but I guess I was wrong and it's actually 
>>getting the info from /sys/bus/i2c/devices/ or something (1-6000 in 
>>mycase - via686a chip). I find the readings in /sys/bus/i2c/devices/ to 
>>be pretty straight forward (at least for my mobo).
>>    
>>
>
>lmsensors does not work with 2.5/2.6 yet, sorry.
>
>Any help would be appreciated in porting :)
>
>thanks,
>
>greg k-h
>
>  
>
Ok, I wrote a quick sensors prog that works with the 2.6.0-test1 (and 
possibly recent 2.5.x) kernel (kernel I2C stuff compiled) with my mobo 
(via686 chipset). I'm not sure if it's gonna work `properly' with other 
chipsets (don't have more HW to test on) but if it doesn't, the readings 
may be adjusted with a .conf file or something (using the lm_sensors 
confs might work perfectly). I'm also not sure if the temperature 
readings change to C or F depending on the locale (someone might want to 
check that). Hope this will help at least a bit.

sensors.c is attached and I'll upload it to 
http://warder.ath.cx:81/projects/ as well.

Regards,
Todor
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sensors.c
Url: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20030716/2e01c5b8/attachment.c 


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

  Powered by Linux