From owner-freebsd-mobile Fri Dec 18 15:24:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA18506 for freebsd-mobile-outgoing; Fri, 18 Dec 1998 15:24:36 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from dingo.cdrom.com (castles251.castles.com [208.214.165.251]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA18499 for ; Fri, 18 Dec 1998 15:24:32 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id PAA03369; Fri, 18 Dec 1998 15:21:49 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199812182321.PAA03369@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Nate Williams cc: Mike Smith , mab@alink.net, mobile@FreeBSD.ORG Subject: Re: APM can suspend right after resume without updating clock In-reply-to: Your message of "Fri, 18 Dec 1998 15:33:49 MST." <199812182233.PAA09757@mt.sri.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 18 Dec 1998 15:21:48 -0800 From: Mike Smith Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > The code in -current is more complex, but either way it looks as though > > all this is doing is processing the resume event from after the > > low-battery powerdown, ie. when the system was resumed the APM code > > returned the low-battery event *before* the resume event. This is > > really a bug in your BIOS, but we can probably work around it by always > > doing the resume processing when the suspend call returns. > > I don't think is a safe assumption to make. Read the APM docs for more > information. This is the "system may run on after suspend before actually suspending" case? Ok, an alternative then. apm_default_suspend sets a "resume_pending" flag, and won't set suspend_time if that flag is set. Likewise, resumes won't do anything if they're not marked pending. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message