Keep a MacBook Running While Closed Without Going to Sleep with NoSleep
With traditional clamshell mode for a MacBook Air, MacBook Pro, or Macbook, an external display, mouse, and keyboard must be attached in order to maintain the running closed-lid clamshell state. Thanks to a third party kernel extension called NoSleep we can now remove those hardware limitations and run a Mac laptop with the lid closed and no hardware attached.
Installing NoSleep is easy and places a System Preference panel for configuration, along with a menu bar item that lets you toggle the NoSleep function similar to the Caffeine app, but only impacting lid sleep behavior.
Check “Do not fall asleep when lid is closed” and you can freely shut a portable Mac without the machine sleeping, even without a keyboard or display attached. This is great if you have an old MacBook laying around you want to use as a file server or wireless media center, or you just want to close a Mac while it sits quietly on a desk downloading large files or anything else – just remember to keep the Mac well ventilated when running with the lid closed.
If you’re done with NoSleep or just don’t find it useful, uninstalling NoSleep is best achieved through the bundled uninstaller bash script.
This extension was found on Twitter, although I can’t recall who from or the origin tweet. Thanks to whoever it was!