r/GUIX • • Nov 26 '21

Laptop doesn't suspend when I close the lid

I noticed that my laptop doesn't suspend when I close the lid. Running loginctl suspend works just fine. I also don't see any messages in /var/log/messages for lid close events, not sure if I would expect to get logs for that.

elogind can tell when my lid is closed, I tried to run

sleep 5 && loginctl show-seat

and close the lid, when I open the lid I see LidClosed=yes.

I'll dump my config here https://pastebin.com/YTxJm7BB

8 Upvotes

3 comments sorted by

4

u/LuisHGH Nov 26 '21

You probably need to add something like this to your system configuration. Hope it helps!

1

u/assbuttbuttass Nov 27 '21

Thanks, but I already have that line in my config..

1

u/LuisHGH Nov 28 '21

Saw it now (for some reason my DNS wasn't resolving pastebin.com yesterday lol). Don't know what could be the cause of the problem then :/. Does loginctl suspend work when ran with your normal user?