|
|
@ -64,6 +64,7 @@ syncstate() |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (state == StateSuspend) { |
|
|
|
if (state == StateSuspend) { |
|
|
|
setpineled(Red); |
|
|
|
setpineled(Red); |
|
|
|
|
|
|
|
configuresuspendsettingsandwakeupsources(); |
|
|
|
writefile(powerstatefile, "mem"); |
|
|
|
writefile(powerstatefile, "mem"); |
|
|
|
state = StateNoInput; |
|
|
|
state = StateNoInput; |
|
|
|
syncstate(); |
|
|
|
syncstate(); |
|
|
@ -224,7 +225,6 @@ main(int argc, char **argv) { |
|
|
|
|
|
|
|
|
|
|
|
screen = XDefaultScreen(dpy); |
|
|
|
screen = XDefaultScreen(dpy); |
|
|
|
XSync(dpy, 0); |
|
|
|
XSync(dpy, 0); |
|
|
|
configuresuspendsettingsandwakeupsources(); |
|
|
|
|
|
|
|
getoldbrightness(); |
|
|
|
getoldbrightness(); |
|
|
|
syncstate(); |
|
|
|
syncstate(); |
|
|
|
lockscreen(dpy, screen); |
|
|
|
lockscreen(dpy, screen); |
|
|
|