9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: David Presotto <presotto@closedmind.org>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] rio and acme scrolling
Date: Sat, 27 Mar 2004 10:01:46 -0500	[thread overview]
Message-ID: <466a2993c3a0232a58065be590e2a716@plan9.bell-labs.com> (raw)
In-Reply-To: <20040327050754.GA20193@epaphras.cnm-vra.com>

[-- Attachment #1: Type: text/plain, Size: 783 bytes --]

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.

[-- Attachment #2: Type: message/rfc822, Size: 2874 bytes --]

From: Micah Stetson <micah@cnm-vra.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] rio and acme scrolling
Date: Fri, 26 Mar 2004 21:07:54 -0800
Message-ID: <20040327050754.GA20193@epaphras.cnm-vra.com>

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

  reply	other threads:[~2004-03-27 15:01 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-27  0:58 Micah Stetson
2004-03-27  1:51 ` Russ Cox
2004-03-27  5:07   ` Micah Stetson
2004-03-27 15:01     ` David Presotto [this message]
2004-03-27 15:07       ` Sape Mullender
2004-03-27 15:12         ` David Presotto
2004-03-27 20:58           ` Derek Fawcus
2004-03-27 15:22       ` Richard Miller
2004-03-27 15:36         ` Sape Mullender
2004-03-27 15:38         ` David Presotto
2004-03-27 15:38         ` Russ Cox
2004-03-27 17:03           ` Richard Miller
2004-03-27 16:07         ` andrey mirtchovski
2004-03-27 20:11         ` Micah Stetson
2004-03-27 20:45           ` thinkpads (was Re: [9fans] rio and acme scrolling) Axel Belinfante
2004-03-28 11:07           ` [9fans] rio and acme scrolling matt
2004-03-29 15:18             ` splite
2004-03-27 20:27       ` Micah Stetson
2004-03-27 23:57         ` Micah Stetson
2004-03-27  3:14 ` jmk
2004-03-27 10:21   ` a
2004-03-27 10:50     ` Dave Lukes
2004-03-29 13:41 ` blstuart
2004-03-29 14:33   ` Russ Cox
2004-03-29 14:36   ` matt
2004-03-29 15:57     ` Axel Belinfante
2004-03-29 17:31       ` Axel Belinfante
2004-03-29 18:42         ` [9fans] hget rog
2004-03-29 19:50           ` Russ Cox
2004-03-29 20:12             ` rog
2004-03-29 20:16               ` Russ Cox
2004-03-29 20:40                 ` rog
2004-03-29 20:42                   ` Russ Cox
2004-03-29 21:12                     ` rog
2004-03-29 22:23                       ` Charles Forsyth
2004-03-29 21:36                         ` rog
2004-03-29 23:39                           ` Charles Forsyth
2004-03-29 22:48                             ` rog
2004-03-29 21:46                               ` boyd, rounin
2004-03-29 23:01                                 ` rog
2004-03-29 22:17                                   ` boyd, rounin
2004-03-29 23:34                                     ` rog
2004-03-29 22:49                                       ` boyd, rounin
2004-03-30 10:19                                         ` Steve Simon
2004-03-30  0:02                                   ` Charles Forsyth
2004-03-29 23:22                                     ` rog
2004-03-29 19:58           ` David Tolpin
2004-03-29 20:08           ` David Tolpin
2004-03-29 20:18             ` rog

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=466a2993c3a0232a58065be590e2a716@plan9.bell-labs.com \
    --to=presotto@closedmind.org \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).