Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 31 Jul 2002 16:13:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 31 Jul 2002 16:13:12 -0400 Received: from tmr-02.dsl.thebiz.net ([216.238.38.204]:11278 "EHLO gatekeeper.tmr.com") by vger.kernel.org with ESMTP id ; Wed, 31 Jul 2002 16:13:12 -0400 Date: Wed, 31 Jul 2002 16:10:48 -0400 (EDT) From: Bill Davidsen To: Ray Lee cc: Linux Kernel , cort@fsmlabs.com, alan@lxorguk.ukuu.org.uk Subject: Re: [PATCH] Guarantee APM power status change notifications In-Reply-To: <1028140392.1771.66.camel@orca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1471 Lines: 32 On 31 Jul 2002, Ray Lee wrote: > There are three cases. First, the BIOS doesn't send any notifications; > this is fixed. Second, the BIOS sends notifications. In this case, the > code notes that, and disables the workaround. Third, the BIOS sends > notifications, but somehow we managed to notice the power change before > the BIOS could tell us. This seems highly unlikely, but what the heck, > it could theoretically happen. In that case, we disable the workaround, > and drop the notification that the BIOS generated, as we already sent it > onward up the call chain. Actually there is one more case, where the BIOS unreliably tells you something has changed. I have an old Toshiba which I bought with Windows installed, and it always noticed pulling the plug and going line=>battery, but only sometimes noticed battery=>line. Of course this might be an o/s bug. Can't test that any more, the battery failed and the transition is now line=>dead. Anyway, if you are paranoid you could just ignore the "I knew that" cases and leave the workaround in place, unless that would generate other issues. -- bill davidsen CTO, TMR Associates, Inc Doing interesting things with little computers since 1979. - 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/