Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

marked as duplicate by user495470, patrix, Mark, bassplayer7, bmike Jan 6 '13 at 1:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 5 down vote accepted

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

Otherwise, you can use InsomniaX.

share|improve this answer
cmdline equivalent is: caffeinate since pmset noidle is deprecated in favor of caffeinate (…) – dezza Jul 5 '15 at 17:25

Not the answer you're looking for? Browse other questions tagged or ask your own question.