[Letux-kernel] rtcwake fior suspend

Andreas Kemnade andreas at kemnade.info
Tue Feb 6 07:12:03 CET 2018


On Mon, 5 Feb 2018 11:12:36 +0100
"H. Nikolaus Schaller" <hns at goldelico.com> wrote:

> Hi,
> just FYI, I played a little with rtcwake (Debian package util-linux).
> This works:
> 	rtcwake -m mem -s 10
> So we can make the measure-suspend script more general by using
> this command instead of calculating a wakeup time by shell commands
> and writing to /sys.
indeed, it does not seem to do the same as its implementation in
measure_suspend and seems to directly echo mem >/sys/power/state
instead of doing pm-suspend (which would call a bounch of scripts,
and would influence things if you are debugging).

It is even available as a part of busybox (but not
available in debian builds)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.goldelico.com/pipermail/letux-kernel/attachments/20180206/fa3033d6/attachment.asc>

More information about the Letux-kernel mailing list