You are not logged in.

#1 2019-12-08 08:00:13

harttle
Member
From: Beijing, China
Registered: 2013-11-07
Posts: 11
Website

Cannot suspend-then-hibernate when LID closed on Macbook Pro 11,1

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

Board footer

Powered by FluxBB