Fix wakeup from CRUST for incoming call for 5.9 kernel

master
Miles Alan 4 years ago
parent ce188e2f26
commit acf21efba8
  1. 11
      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(

Loading…
Cancel
Save