Reverse engineering the MacBook clamshell mode
When using an external monitor, you might want to turn off the MacBook display to focus on the large screen.
Closing the lid does that, but you lose TouchID, the webcam, the nice keyboard and trackpad. Surely there must be a way to call into that same code that lid closing does.