From: David Brownell <david-b@pacbell.net>
To: Len Brown <lenb@kernel.org>
Cc: linux-pm@lists.osdl.org,
"linux-acpi@vger" <linux-acpi@vger.kernel.org>,
Alessandro Zummo <alessandro.zummo@towertech.it>,
Paul Sokolovsky <pmiscml@gmail.com>, Pavel Machek <pavel@ucw.cz>
Subject: Re: [linux-pm] [PATCH 3/6] [-mm]: ACPI: duplicate ACPI sleep "alarm" attribute in sysfs
Date: Thu, 25 Jan 2007 01:39:31 -0800 [thread overview]
Message-ID: <200701250139.32101.david-b@pacbell.net> (raw)
In-Reply-To: <200701242321.09850.lenb@kernel.org>
> > This adds a new "wakealarm" sysfs attribute to RTC class devices which
> > support alarm operations and are wakeup-capable:
> >
> > - It reads as either empty, or the scheduled alarm time as seconds
> > since the POSIX epoch. (That time may already have passed, since
> > nothing currently enforces one-shot alarm semantics...)
> >
> > - It can be written with an alarm time in the future, again seconds
> > since the POSIX epoch, which enables the alarm.
> >
> > - It can be written with an alarm time not in the future (such as 0,
> > the start of the POSIX epoch) to disable the alarm.
> >
> > ...
>
> How do I ask to wake up "as soon as possible"?
That doesn't exactly correspond to a hardware mechanism. The hardware
supports only "wake up at <this> specific time".
> This is what a box that is testing suspend-resume would want to do.
What I've done in that case is notice how long the suspend cycle takes,
add a bit of fuzz (I use 10 seconds), and specify that for the relative
"when to wake" time.
Of course, "how long suspend takes" is variable. If you disable IDE DMA
(maybe the native driver doesn't suspend right yet?), suspend-to-disk
seems to take forever on a PC.
And even without suspend-to-disk, it often doesn't seem to be as quick
as you'd think it should be. Traversing the list of devices, and then
suspending them, seems to take surprisingly long even on slim systems
without ACPI in the way.
On the plus side, at least most systems seem to be able to handle RTCs
as wakeup devices, so at least you _can_ automate that testing!
- Dave
next prev parent reply other threads:[~2007-01-25 9:54 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-06 11:35 [PATCH 3/6] [-mm]: ACPI: duplicate ACPI sleep "alarm" attribute in sysfs Zhang Rui
2007-01-06 22:42 ` David Brownell
2007-01-07 5:57 ` [linux-pm] " Matthew Garrett
2007-01-08 2:31 ` David Brownell
2007-01-08 10:10 ` Matthew Garrett
2007-01-08 20:39 ` David Brownell
2007-01-08 20:43 ` Matthew Garrett
2007-01-08 21:15 ` David Brownell
2007-01-08 10:13 ` Zhang Rui
2007-01-08 20:46 ` David Brownell
2007-01-07 11:19 ` Pavel Machek
2007-01-08 3:44 ` David Brownell
2007-01-08 11:36 ` Pavel Machek
2007-01-08 20:35 ` David Brownell
2007-01-25 4:21 ` Len Brown
2007-01-25 9:39 ` David Brownell [this message]
2007-01-25 19:47 ` [linux-pm] " Pavel Machek
2007-01-25 23:12 ` Len Brown
2007-01-25 23:28 ` Nigel Cunningham
2007-01-26 0:33 ` David Brownell
2007-01-26 17:07 ` Pavel Machek
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=200701250139.32101.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=alessandro.zummo@towertech.it \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-pm@lists.osdl.org \
--cc=pavel@ucw.cz \
--cc=pmiscml@gmail.com \
/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).