Always reconfigure wakeup sources before entering suspend
This commit is contained in:
parent
be6737e68f
commit
37941f6ba8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue