From acf21efba84a7d80b7d6a5dd7a6db297214ae13c Mon Sep 17 00:00:00 2001 From: Miles Alan Date: Sat, 7 Nov 2020 08:05:50 -0600 Subject: [PATCH] Fix wakeup from CRUST for incoming call for 5.9 kernel --- programs/sxmo_screenlock.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/programs/sxmo_screenlock.c b/programs/sxmo_screenlock.c index b802593..791511f 100644 --- a/programs/sxmo_screenlock.c +++ b/programs/sxmo_screenlock.c @@ -145,13 +145,20 @@ configuresuspendsettingsandwakeupsources() "enabled" ); - // Enable IRQ wakeup source - fprintf(stderr, "Enable irq wakeup source\n"); + // Enable IRQ wakeup source (incoming call) 5.8 + fprintf(stderr, "Enable 5.8 IRQ wakeup source\n"); writefile( "/sys/devices/platform/gpio-keys/power/wakeup", "enabled" ); + // Enable IRQ wakeup source (incoming call) 5.9 + fprintf(stderr, "Enable 5.9 IRQ wakeup source\n"); + writefile( + "/sys/devices/platform/soc/1c28c00.serial/serial1/serial1-0/power/wakeup", + "enabled" + ); + // Enable rtc wakeup source fprintf(stderr, "Enable rtc wakeup source\n"); writefile(