[ltp] Suspend and resume at a particular time?

Norman Walsh linux-thinkpad@linux-thinkpad.org
Wed, 12 Apr 2006 13:06:50 -0400


--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

/ Damien Challet <dchallet@onetel.com> was heard to say:
| In the old thinkpads (600 etc) days, it was possible to set a wake-up tim=
e=20
| with tpctl. I would be very interested to know how to do it with acpi.

Hey, "ACPI". That was the magic word I needed. On my T42p at least,
setting a wakeup time in /proc/acpi/alarm seems to do the trick:

I ran the following command as root:

  date -d "5 minutes" +"%Y-%m-%d %H:%M:%S" > /proc/acpi/alarm

then suspended my machine. Five minutes later it sprang back to life.
Sweet.

                                        Be seeing you,
                                          norm

=2D-=20
Norman Walsh <ndw@nwalsh.com> | Everything should be made as simple as
http://nwalsh.com/            | possible, but no simpler.

--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEPTOqOyltUcwYWjsRAqhMAKCLM1juWms2ksWQsVFM5LTFiJLhswCeN/ul
wJSPXq5bqZlqrMhcE8CI2eM=
=o1Sq
-----END PGP SIGNATURE-----
--=-=-=--