Is there any way to prevent my MacBook Pro from sleeping when I close the lid on macOS Sierra? I used to use NoSleep on OS X El Capitan; unfortunately it stopped working properly after Yosemite and I've heard that on Sierra it causes problems, so I don't want to install it and potentially cause damage.

Does anyone use anything that they personally have used that prevents MacBooks from going to sleep when the lid is closed on macOS Sierra?

  • 1
    Plugged into an external monitor? – dstarh Oct 7 '16 at 20:27
  • @dstarh Oh yes, I forgot to mention: I don't have one at the moment so I'm looking for something more "software" related. Thanks for the suggestion though. – Skeleton Bow Oct 7 '16 at 20:51
  • why don't you want it to sleep? – OzzieSpin Oct 8 '16 at 14:28
  • 1
    @OzzieSpin sometimes I have downloads and whatnot running, and I want to close it and put it somewhere – Skeleton Bow Oct 8 '16 at 14:30
  • @OzzieSpin I want to be able to play music through my headphones while walking around with my laptop in my bag or under my arm. – theonlygusti Sep 19 '17 at 15:04

InsomniaX works perfectly on my MBP 13" 2015. I am using macOS Sierra 10.12.

There's also an app called NoSleep, but it hasn't been updated in years, only use it if you're on older OSX like Mavericks or Yosemite.. I wouldn't recommend using it on Sierra..

  • I've used that one before, but wasn't sure whether it would be a good idea on Sierra. Thanks for confirming! – Skeleton Bow Oct 8 '16 at 13:08
  • Don't use NoSleep, I tried in mac os sierra with a MBA 13" late 2014 and it doesn't work. – asielrock Nov 27 '16 at 15:40
  • Does not work on a 2015 rMBP 15 with Sierra 10.12.3. The icon has two shaded areas, a half moon and an eye. On "Prevent Lid Sleep" the moon should become shaded. It will not become shaded when I try to use it. – haventchecked Mar 20 '17 at 21:40
  • NoSleep does work on macOS High Sierra, you just need it from Github: github.com/integralpro/nosleep/releases – adam smith Sep 7 '18 at 2:06

Tested NoSleep 1.4.0 on my MacBook Air 2012 and it works with macOS High Sierra 10.13.0. Simply need to authorize the use of NoSleep kext in Security settings when warned during install.


I actually still use NoSleep on my macbook air 2011 running on OSX Sierra and it seems to work fine still :) Haven't tried putting it on a brand new macbook pro 13 (2016) also running Sierra yet though. No sleep version 1.4.0.

  • Wow, that's funny. It never seemed to work for me after El Capitan! I thought it was dead after that. I'd still advise anyone from using it as it hasn't been properly tested (and can be unreliable) on El Capitan or above. – Skeleton Bow Mar 12 '17 at 10:51
  • 1
    Just to be on the safe side, don't use NoSleep on Sierra. It hasn't been updated in years. – Abhi Apr 6 '17 at 4:11

"Anti Sleep", an app in the App Store.

  • 1
    This is interesting. I wouldn't have expected such an app to exist on the App Store, but it does seem to be working. The reviews are good but most of the people seem to be using it as a Caffeine alternative, not as a NoSleep alternative. I will mark this as the best answer if it continues to work effectively, due to its availability on the App Store and the fact that you don't need to install any helper tools to use it. – Skeleton Bow Mar 5 '18 at 16:16

Use Caffeinate
To begin running the caffeinate command and prevent your Mac from sleeping, open the Terminal located in /Applications/Utilities, then type the following command:


While this command is running, you will be able to close the lid on your Mac and still have OS X and your apps running and performing their tasks just as you would if the lid were to remain open.

  • 2
    According to this question, it doesn't seem to work. I tried it myself, and it didn't seem work for me. Does it work for you? – Skeleton Bow Feb 8 '17 at 16:53
  • 2
    Doesn't work for me either :( – Aldekein Feb 24 '17 at 16:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .