From 2cec0fc3be8a9619b1699e189de522d5877d293a Mon Sep 17 00:00:00 2001 From: "Serge E. Hallyn" Date: Mon, 14 Sep 2020 21:23:40 -0500 Subject: [PATCH] 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 --- programs/sxmo_screenlock.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/programs/sxmo_screenlock.c b/programs/sxmo_screenlock.c index 03d74e2..7ee66a7 100644 --- a/programs/sxmo_screenlock.c +++ b/programs/sxmo_screenlock.c @@ -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(