From 37941f6ba8a8ecbe29c68d86db5191c2514c9d2a Mon Sep 17 00:00:00 2001 From: Miles Alan Date: Sun, 5 Jul 2020 22:29:08 -0500 Subject: [PATCH] Always reconfigure wakeup sources before entering suspend --- programs/sxmo_screenlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/sxmo_screenlock.c b/programs/sxmo_screenlock.c index 9d24f03..f24e469 100644 --- a/programs/sxmo_screenlock.c +++ b/programs/sxmo_screenlock.c @@ -64,6 +64,7 @@ syncstate() { if (state == StateSuspend) { setpineled(Red); + configuresuspendsettingsandwakeupsources(); writefile(powerstatefile, "mem"); state = StateNoInput; syncstate(); @@ -224,7 +225,6 @@ main(int argc, char **argv) { screen = XDefaultScreen(dpy); XSync(dpy, 0); - configuresuspendsettingsandwakeupsources(); getoldbrightness(); syncstate(); lockscreen(dpy, screen);