You are not logged in.
I'm setting all HandleLidSwitch* fields in logind.conf to suspend-then-hibernate, Allow* fields in sleep.conf to yes. What I expect is it going suspend when LID closed and hibernate after 1min. I've tested several times with HibernateDelaySec=60, here's what I observed for now:
* systemctl suspend-then-hibernate with LID open works perfectly with or without external power.
* close my LID with external power also works.
* close my LID without external power won't work: it suspends immediately but won't wakeup itself to hibernate, when I open the lid and press the power button shortly the next time, it wakes up and hibernates immediately. I checked the journalctl and it says the same as I seen.
maybe RTC alarm not working in this case? I disabled all systemd-inhibit services and it seems no help. And if I disable LID events using systemd-inhibit sleep, it won't suspend when LID closed.
Offline