From owner-freebsd-mobile Fri Dec 18 14:30:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA10941 for freebsd-mobile-outgoing; Fri, 18 Dec 1998 14:29:40 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA10902 for ; Fri, 18 Dec 1998 14:29:36 -0800 (PST) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id PAA28026; Fri, 18 Dec 1998 15:29:19 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id PAA09703; Fri, 18 Dec 1998 15:29:19 -0700 Date: Fri, 18 Dec 1998 15:29:19 -0700 Message-Id: <199812182229.PAA09703@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: mab@alink.net Cc: Mike Smith , mobile@FreeBSD.ORG Subject: Re: APM can suspend right after resume without updating clock In-Reply-To: <86btl1b11n.fsf@zildjian.hq.alink.net> References: <199812180216.SAA00613@dingo.cdrom.com> <86btl1b11n.fsf@zildjian.hq.alink.net> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > >> would it be easy to update the clock before suspending? > > MS> Ah, I think I see what you mean; the loss of the resume > MS> message means that the clock hasn't been updated. > > exactly: this isn't just a theory; i verified that my clock was off by > around the amount of the first sleep (many hours); in other words when > it resumed the second time, the clock was set at what it was when i > suspended the first time. xntpd has a hard time recovering from > this. :-) > > MS> Probably a better approach would simply be to reload the > MS> system clock from the RTC. > > as nearly as i can tell, it does: I'll bet the new 'sleep' event is pre-empting the previous 'resume' event and the RTC stuff is getting lost before we have time to adjust the RTC. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message