From: Pavel Machek <pavel@ucw.cz>
To: linux-kernel@vger.kernel.org, david-b@pacbell.net
Cc: Linux-pm mailing list <linux-pm@lists.osdl.org>
Subject: waking system up using RTC (was Re: rtcwakeup.c)
Date: Sat, 26 Aug 2006 16:59:20 +0200 [thread overview]
Message-ID: <20060826145920.GA1826@elf.ucw.cz> (raw)
In-Reply-To: <20060725124941.GD5034@ucw.cz>
Hi!
> > p.s. A followup message will include a userspace program which
> > makes it easier to try the RTC wakeup mechanism.
>
> For example, if your system actually supports RTC wakeup correctly:
>
> rtcwake -t $(date -u -d 'tomorrow 6:30am' +'%s') -m mem
>
> will set up the system to wake up tomorrow at 6:30am, then suspend-to-RAM by
> writing "mem" to /sys/power/state.
>
> Or for testing kernels, unattended scripts like this may help:
>
> while true
> do
> echo "suspend-to-disk for 10 minutes starting $(date)"
> rtcwake -s $((10 * 60)) -m disk
> sleep 500
> done
>
> If there are many RTC utilities out there that aren't x86-specific, I didn't
> happen to find them. Ergo this one.
Your new RTC driver seems to work for me (thinkpad x60), but no, I
can't get wakeup using RTC to work:
root@amd:~# echo HDEF > /proc/acpi/wakeup
root@amd:~# cat /proc/acpi/wakeup
Device Sleep state Status
LID 3 * enabled
SLPB 3 * enabled
DURT 3 enabled
EXP0 4 enabled
EXP1 4 enabled
EXP2 4 enabled
EXP3 4 enabled
PCI1 4 enabled
USB0 3 enabled
USB1 3 enabled
USB2 3 enabled
USB7 3 enabled
HDEF 4 enabled
root@amd:~# sync
root@amd:~# sync; /tmp/rtcwake -s $((2 * 60)) -m disk
rtcwake: wakeup from "disk" using rtc0 at Sun Aug 27 16:54:49 2006
root@amd:~#
Any ideas? (I tried suspending to RAM, too; no change).
Is acpi-rtc code likely to be merged?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next parent reply other threads:[~2006-08-26 14:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20060725124941.GD5034@ucw.cz>
2006-08-26 14:59 ` Pavel Machek [this message]
2006-08-26 21:15 ` waking system up using RTC (was Re: rtcwakeup.c) David Brownell
2006-08-26 21:43 ` Pavel Machek
2006-08-27 0:04 ` David Brownell
2006-08-27 10:17 ` 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=20060826145920.GA1826@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=david-b@pacbell.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.osdl.org \
/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