To do this, you need to write a kernel extension. OS does not support it by default, because laptops are not designed to cool properly when the cover is closed, and the internal display is on. SleepLess is a $ 10 utility that will do what you want. If you warp the display or something else, this is your own mistake. :-).
If you want to write something yourself, LidSleep.kext looks like a good start (it does the opposite, that is, sleeping on the lid close) and comes with source code.
(Itβs possible and supported to wake some Mac laptops with a closed screen using an external input device.)
Nicholas iley
source share