1

Possible Duplicate:
Is there any way to set a MacBook Pro to not sleep when you close the lid?

I have a Macbook Pro (early 2011) with Mountain Lion installed.

Is there a way to prevent my Mac from going to sleep even on lid close?

1 Answers1

5

If you have an external monitor plugged in, it will happen automatically.

Otherwise, you can use InsomniaX.

  • 1
    cmdline equivalent is: caffeinate since pmset noidle is deprecated in favor of caffeinate (https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/pmset.1.html) – dza Jul 05 '15 at 17:25
  • 1
    Note also that InsomniaX is no more supported on recent version os OSX. See here for alternatives. – рüффп Oct 24 '20 at 07:33