Lid close sleep and lid open wake
How it tests
Watches the lid switch. One second after the lid closes it suspends the Mac (holding logind back) with a 60 s backstop alarm; opening the lid should wake it. It reads which wake sources fired, then waits up to 30 s for every device and the network (the status line's rule, held 3 s) to come back.
How it decides
Supported: slept on close, woke on open before the backstop by the lid's own wake source (PNP0C0D fired; no RTC alarm, no PCI device), and everything came back. Partial: no sleep, only the backstop woke it, the lid's source didn't fire, or something didn't come back. Failed: no lid switch, or the switch reported nothing. Woken by the backstop with the lid still closed: try again.
How sure it is
The wake is traced to the lid itself, not timed. No code is typed after the lid wake; the sleep test right after it checks the screen.
On a real Mac
- On a MacBook Air (13-inch, Mid 2012): woken by LID0 with no RTC alarm.
What could mislead it
- Could pass when it shouldn'tThe screen stays black after the lid wake; nothing asks the tester to prove it came back.
- Could pass when it shouldn'tWhere the wake sources can't be read, the lid wake is inferred from timing, and the evidence says so.