mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-14 02:29:33 +01:00
With the lid closed, corebrightnessd tells every module so and keeps the logo dark, so the blink stopped as soon as the lid came down, which is exactly when the logo on the lid is the one thing in view. While the Mac stays awake with the lid closed on its power adapter (Keep This Mac Awake's lid helper, or an external display), the blink child now does what LogoLight's Lit with Lid Closed measured on the real MacBook: once the daemon has handled the lid (CBClamshellState), it tells the logo the lid is open (ClamshellUpdate 0) and each keyboard alone that it is closed, so the keyboard stays dark and is never relit after a Blank. The first rise after that has to move the logo within 1.5 s. If it does not (with no display on, the daemon may still hold the logo dark), the lid is told closed again, tried once more, then left dark until the lid opens, a display comes on or the agents' state changes. A logo the daemon takes back (it resends the lid state when a display or keyboard comes up) is told again. Ending a blink under the closed lid hands the logo back to normal and then writes ClamshellUpdate 1, since normal there is dark; the marker recovery does the same for a killed child. Never on battery (a dark wake must not light the logo in a bag), never without the keyboard IDs, and nothing is written when the lid opens. Every step is a line on stderr so a real-Mac run shows which one stopped it. Not seen on a real MacBook yet; the README says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>