[systemd-devel] [hybrid-sleep] hibernation delay

Lennart Poettering lennart at poettering.net
Fri Jun 20 07:33:12 PDT 2014


On Fri, 20.06.14 15:50, Jan Alexander Steffens (jan.steffens at gmail.com) wrote:

> Am 20.06.2014 15:24 schrieb "Lennart Poettering" <lennart at poettering.net>:
> > how do we figure out
> > after resume whether we resumed because of this timer (and hence we
> > should go to hibernation, immediately) or because of some user activity?
> 
> I think there's a way to get at Linux or ACPI's information about which
> device
> 
> triggered the wakeup (LID, RTC, whatever), but I don't remember what it was.

Well, that's not really sufficient. There can be multiple
CLOCK_BOOTTIME_ALARM in place, and even if ACPI tells us that a timer
caused the wakeup this wouldn't tell us which timer it was, ours, or
some other timer...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list