DPMS problem with lm_sensors 2.7.0

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

 



Hi,

Your package is extremely helpful in monitoring the system health status.
However, the last version of lm_sensors (and/or i2c) perhaps needs some fixing to
provide a stability for monitored system.
Please help me to solve a problem described below.

with best regards
Pawel Tobis

Description of problem:
I found a problem using lm_sensors and DPMS power saving. Reading sensor chip
measures from /proc/sys/dev/sensors/*/* (by a daemon for example) causes the screen
to wake up from a DPMS-powerdown state. It's a problem when I'm using any of these
gui-monitors under X, because DPMS screen powersaving simply doesn't want to work.
The problem also exists with any of mrtg-kind sensor monitors.

Another issue connected with double registering i2c-dev and i2c-proc (if compiled
into kernel) may be solved by patching files i2c-dev.c and i2c-proc.c in the kernel
tree in the same way as it was done with i2c-core.c, I mean adding #ifdef MODULE and 
#endif MODULE into the ending module-registration section. I've attached these patches
just in case...

Below comes necessary information about my machine and Linux system:

Software spec:
lm_sensors:	2.7.0
i2c:		2.7.0 patched against double "/proc/bus/i2c" entry
linux:		2.4.20 (kernel patched with i2c & lm_sensors)
drivers:	i2c-core i2c-algo-bit i2c-dev i2c-proc i2c-via lm75
			(all statically compiled into kernel)
compiler:	gcc version 2.95.3 20010315 (release)

Hardware spec:
mb chipset:	VIA Apollo VP3 (year 1998)
sensor chipset:	NS LM75
cpu:		AMD K6-2 (CTX)
gpu:		ATI Rage Fury OR nVidia Riva TNT2 M64 (problem seen on both)

Contents of specific files and command outputs:
/proc/bus/i2c :
i2c-0   i2c             VIA i2c                                 Bit-shift algorithm

/proc/bus/i2c-0 :
4c      LM75 chip                               LM75 sensor chip driver

/proc/sys/dev/sensors/chips :
256     lm75-i2c-0-4c

/proc/sys/dev/sensors/lm75-i2c-0-4c/temp :
60.0 50.0 39.0

lspci -n :
00:00.0 Class 0600: 1106:0597 (rev 01)
00:01.0 Class 0604: 1106:8597
00:07.0 Class 0601: 1106:0586 (rev 41)
00:07.1 Class 0101: 1106:0571 (rev 06)
00:07.2 Class 0c03: 1106:3038 (rev 02)
00:07.3 Class 0680: 1106:3040 (rev 10)
00:0b.0 Class 0200: 8086:1030 (rev 08)
01:05.0 Class 0300: 1002:5246

i2cdetect 0:
  WARNING! This program can confuse your I2C bus, cause data loss and worse!
  I will probe file /dev/i2c-0
  You have five seconds to reconsider and press CTRL-C!

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 
10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 
20: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 
30: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 
40: XX XX XX XX XX XX XX XX XX XX XX XX UU XX XX XX 
50: 50 51 XX XX XX XX XX XX XX XX XX XX XX XX XX XX 
60: XX XX XX XX XX XX XX XX XX 69 XX XX XX XX XX XX 
70: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 

i2cdump 0 0x4c :
No size specified (using byte-data access)
  WARNING! This program can confuse your I2C bus, cause data loss and worse!
  I will probe file /dev/i2c-0, address 0x4c, mode byte
  You have five seconds to reconsider and press CTRL-C!

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
00: 24 00 32 3c 3c 3c 3c 3c 24 00 32 3c 3c 3c 3c 3c    $.2<<<<<$.2<<<<<
10: 24 00 32 3c 3c 3c 3c 3c 24 00 32 3c 3c 3c 3c 3c    $.2<<<<<$.2<<<<<
20: 24 00 32 3c 3c 3c 3c 3c 24 00 32 3c 3c 3c 3c 3c    $.2<<<<<$.2<<<<<
30: 24 00 32 3c 3c 3c 3c 3c 24 00 32 3c 3c 3c 3c 3c    $.2<<<<<$.2<<<<<
40: 24 00 32 3c 3c 3c 3c 3c 24 00 32 3c 3c 3c 3c 3c    $.2<<<<<$.2<<<<<
50: 24 00 32 3c 3c 3c 3c 3c 24 00 32 3c 3c 3c 3c 3c    $.2<<<<<$.2<<<<<
60: 24 00 32 3c 3c 3c 3c 3c 24 00 32 3c 3c 3c 3c 3c    $.2<<<<<$.2<<<<<
70: 24 00 32 3c 3c 3c 3c 3c 24 00 32 3c 3c 3c 3c 3c    $.2<<<<<$.2<<<<<
80: 24 00 32 3c 3c 3c 3c 3c 24 00 32 3c 3c 3c 3c 3c    $.2<<<<<$.2<<<<<
90: 24 00 32 3c 3c 3c 3c 3c 24 00 32 3c 3c 3c 3c 3c    $.2<<<<<$.2<<<<<
a0: 24 00 32 3c 3c 3c 3c 3c 24 00 32 3c 3c 3c 3c 3c    $.2<<<<<$.2<<<<<
b0: 24 00 32 3c 3c 3c 3c 3c 24 00 32 3c 3c 3c 3c 3c    $.2<<<<<$.2<<<<<
c0: 24 00 32 3c 3c 3c 3c 3c 24 00 32 3c 3c 3c 3c 3c    $.2<<<<<$.2<<<<<
d0: 24 00 32 3c 3c 3c 3c 3c 24 00 32 3c 3c 3c 3c 3c    $.2<<<<<$.2<<<<<
e0: 24 00 32 3c 3c 3c 3c 3c 24 00 32 3c 3c 3c 3c 3c    $.2<<<<<$.2<<<<<
f0: 24 00 32 3c 3c 3c 3c 3c 24 00 32 3c 3c 3c 3c 3c    $.2<<<<<$.2<<<<<

dmesg (partially):
Linux version 2.4.20 (root at delta) (gcc version 2.95.3 20010315 (release)) #2 pon maj 5 02:22:21 CEST 2003

i2c-core.o: i2c core module version 2.7.0 (20021208)
i2c-dev.o: i2c /dev entries driver module version 2.7.0 (20021208)
i2c-algo-bit.o: i2c bit algorithm module version 2.7.0 (20021208)
i2c-proc.o version 2.7.0 (20021208)
i2c-via.o version 2.7.0 (20021208)
i2c-dev.o: Registered 'VIA i2c' as minor 0
i2c-via.o: Module succesfully loaded

lm75.o version 2.7.0 (20021208)




-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: i2c-dev.patch
Url: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20030519/667ea826/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: i2c-proc.patch
Url: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20030519/667ea826/attachment-0001.pl 


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

  Powered by Linux