From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <466a2993c3a0232a58065be590e2a716@plan9.bell-labs.com> From: David Presotto To: 9fans@cse.psu.edu Subject: Re: [9fans] rio and acme scrolling In-Reply-To: <20040327050754.GA20193@epaphras.cnm-vra.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-wmithulgiftrgjbhhcosezbxjl" Date: Sat, 27 Mar 2004 10:01:46 -0500 Topicbox-Message-UUID: 44bf1642-eacd-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-wmithulgiftrgjbhhcosezbxjl Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit The clock (timer 2) speeds up by a factor of 5 or so. I can only assume that the firmware uses it for something to do with detecting the lid opening again. Timesync doesn't change the local hardware, it just tweaks the kernel's idea of what time it is and of what the clock frequency is. It would cope with the clock change except that I made timesync ignore any huge swings (anything more than 25%) because I had assumed that would only be the result of a samplng mistake. I changed the limits and timesync will now put up with such a change, though it will take some minutes to latch onto the exact new value (needs enough of a time base to compare to). Tell me if this is a problem. Short of actually implementing ACPI, I think this is as good as we can do. --upas-wmithulgiftrgjbhhcosezbxjl Content-Type: message/rfc822 Content-Disposition: inline Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Sat Mar 27 00:08:43 EST 2004 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Sat Mar 27 00:08:40 EST 2004 Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id 875F619F3E; Sat, 27 Mar 2004 00:08:30 -0500 (EST) Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.4.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 7125B19B48; Sat, 27 Mar 2004 00:08:26 -0500 (EST) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id 23FB319F3E; Sat, 27 Mar 2004 00:07:56 -0500 (EST) Received: from epaphras.cnm-vra.com (adsl-66-122-178-130.dsl.chic01.pacbell.net [66.122.178.130]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id F385319B48 for <9fans@cse.psu.edu>; Sat, 27 Mar 2004 00:07:54 -0500 (EST) Received: by epaphras.cnm-vra.com (Postfix, from userid 1000) id 537468E; Fri, 26 Mar 2004 21:07:54 -0800 (PST) From: Micah Stetson To: 9fans@cse.psu.edu Subject: Re: [9fans] rio and acme scrolling Message-ID: <20040327050754.GA20193@epaphras.cnm-vra.com> References: <20040327005828.GA2896@epaphras.cnm-vra.com> <246ae64b4f3f36dddcc5dbebebb92c9f@plan9.bell-labs.com> <20040327005828.GA2896@epaphras.cnm-vra.com> <4064DE1E.5050805@swtch.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <246ae64b4f3f36dddcc5dbebebb92c9f@plan9.bell-labs.com> <4064DE1E.5050805@swtch.com> User-Agent: Mutt/1.4.1i Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Fri, 26 Mar 2004 21:07:54 -0800 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on psuvax1.cse.psu.edu X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63 X-Spam-Level: On Fri, Mar 26, 2004 at 08:51:26PM -0500, Russ Cox wrote: > date; sleep 10; date On Fri, Mar 26, 2004 at 10:14:49PM -0500, jmk@plan9.bell-labs.com wrote: > We discovered that when the laptop has the lid closed, on re-opening > some of the clocks have been altered by the BIOS/APM. The real ... > As Presotto said, time is, indeed, slippin' slippin' slippin' into > the future. Thanks, guys, that's exactly it. When I boot the system from the hard disk, it doesn't have the problem. But if I simply close the lid and reopen it, windows scroll like lightning and sleep 10 sleeps for about 3 seconds. The thought of the clock running out of control had flitted into my mind yesterday, but I didn't actually consider it, that should teach me. Micah --upas-wmithulgiftrgjbhhcosezbxjl--