Enable irq wakeups

This is needed for crust to wake us up on an incoming call.

Thanks to smaeul in #crust for the tip.

Signed-off-by: Serge Hallyn <serge@hallyn.com>
This commit is contained in:
Serge E. Hallyn 2020-09-14 21:23:40 -05:00 committed by Miles Alan
parent c94e58f6d2
commit 2cec0fc3be

View file

@ -76,6 +76,13 @@ configuresuspendsettingsandwakeupsources()
"enabled"
);
// Enable IRQ wakeup source
fprintf(stderr, "Enable irq wakeup source\n");
writefile(
"/sys/devices/platform/gpio-keys/power/wakeup",
"enabled"
);
// Enable rtc wakeup source
fprintf(stderr, "Enable rtc wakeup source\n");
writefile(