public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: David Brownell <david-b@pacbell.net>
Cc: Linux-pm mailing list <linux-pm@lists.osdl.org>,
	linux-kernel@vger.kernel.org
Subject: Re: waking system up using RTC (was Re: rtcwakeup.c)
Date: Sat, 26 Aug 2006 23:43:42 +0200	[thread overview]
Message-ID: <20060826214342.GB3784@elf.ucw.cz> (raw)
In-Reply-To: <200608261415.33353.david-b@pacbell.net>

Hi!

> > Your new RTC driver seems to work for me (thinkpad x60), but no, I
> > can't get wakeup using RTC to work:
> 
> Does it work using /proc/acpi/alarm?  In my experience, ACPI wakeup
> doesn't work on Linux ... hence my pleasant surprise to see it work

No, I could not get it working using /proc/acpi/alarm.

> at last, albeit just with the RTC, on every system I tried.  (That's
> using swsusp; and on the system where STR works, also STR.)

Both swsusp and STR work here.

> However:
> 
> > 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:~#
> 
> That's what it should look like -- with "date" immediately after rtcwake
> returns showing some time after 16:54.  That is, assuming your system
> can suspend in 2 minutes ... current versions of swsusp seem to take almost
> that long to write snapshots for me, on two different systems with 1GB
> of RAM, so I've taken to doing "-m disk" tests with 5 minute sleeps.
> 
> So you're sure it didn't actually suspend, right?

It *did* suspend, but I had to wake it up manually using power button.

> > Any ideas? (I tried suspending to RAM, too; no change).
> 
> An updated rtcwake.c is appended, which is a bit pickier about noticing
> when the write to /sys/power/state fails ... the original code was lazy
> and used fwrite(), which isn't as good about fault reporting.

No, machine actually suspends okay, it just does not wake up :-(.

>  (I'll just
> assume STR works properly on your system -- a pleasant rarity!)

Yes, it works for me, and if you install code from suspend.sf.net, it
will work for you, too :-) [probably, we have 90% or so success rate].

> There could also be BIOS issues; folk keep mentioning issues that are
> specific to the x60.  Make sure you didn't disable RTC wake there,
> and that the RTC reported something like
> 
>   rtc-acpi 00:06: AT compatible RTC (S4wake) (y3k), 1 year alarm

It says:

rtc-acpi 00:07: AT compatible RTC (S4wake) (y3k), 1 month alarm

> at boot time ... if it doesn't report S4 wake capability, or you're
> not actually using S4, I'd expect rtc wakeup wouldn't work except
> from "real" suspend states (S1/standby, S3/STR).


...but I'm not sure if I was using right swsusp mode (platform
vs. shutdown).

Thanks for help,
								Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  reply	other threads:[~2006-08-26 21:43 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 ` waking system up using RTC (was Re: rtcwakeup.c) Pavel Machek
2006-08-26 21:15   ` David Brownell
2006-08-26 21:43     ` Pavel Machek [this message]
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=20060826214342.GB3784@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