Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261190AbUA3Jhn (ORCPT ); Fri, 30 Jan 2004 04:37:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261411AbUA3Jhn (ORCPT ); Fri, 30 Jan 2004 04:37:43 -0500 Received: from zone3.gcu-squad.org ([217.19.50.74]:4369 "EHLO zone3.gcu-squad.org") by vger.kernel.org with ESMTP id S261190AbUA3Jhm (ORCPT ); Fri, 30 Jan 2004 04:37:42 -0500 Message-ID: <1075455411.401a25b3ebeff@imp.gcu.info> Date: Fri, 30 Jan 2004 10:36:51 +0100 From: Jean Delvare To: "J.A. Magallon" Cc: linux-kernel@vger.kernel.org, sensors@Stimpy.netroedge.com Subject: Re: [BK PATCH] i2c driver fixes for 2.6.2-rc2 References: <20040127233242.GA28891@kroah.com> <20040129004402.GC5830@werewolf.able.es> <1075365845.4018c7d5353d7@imp.gcu.info> <20040129222135.GC5768@werewolf.able.es> <20040129225659.GA11872@werewolf.able.es> <20040130033853.GG992@earth.solarsys.private> In-Reply-To: <20040130033853.GG992@earth.solarsys.private> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT User-Agent: Internet Messaging Program (IMP) 3.2.2 / FreeBSD-4.6.2 X-Originating-IP: 62.23.237.137 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1721 Lines: 43 Quoting "Mark M. Hoffman" : > * J.A. Magallon [2004-01-29 23:56:59 +0100]: > > > Oops, not so good: > > > > > -12V: -12.18 V (min = -12.57 V, max = -11.35 V) ALARM > > > -5V: -4.96 V (min = -5.25 V, max = -4.74 V) ALARM > > > > Why ALARM ? > > The alarm indicator is "sticky". Even though the present > readings are within limits, the alarm says that the voltage > moved outside its limit since the last time you ran sensors. > > Trying running sensors 5 times, at 2 second intervals. If > the voltage always stays within the limits but the alarm > is not cleared, then maybe there is a problem with the > driver. If that's the case, please follow up on the sensors > mailing list. What Mark says is perfectly true as a generic remark, but this isn't the problem here. The problem is that the limits of negative voltages are swapped. Internally, the low limit is the one nearer from 0, i.e. the lesser in absolute value. Your output shows the contrary. This is a bug in the driver, or libsensors, or both. We have to take a look at this really soon. This is on my to-do list for some times already, just gimme some more time. A temporary way to workaround the problem is to swap the limits in /etc/sensors.conf, but this will cause problems if you are using 2.4 and 2.6 kernels on the same system, because the bug shows only in 2.6. -- Jean Delvare http://www.ensicaen.ismra.fr/~delvare/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/