You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to prevent laptop from sleep when lid closed

I own a macbook pro 13 inch model no. A1278, my mac goes to sleep as the lid is closed. i have changed the power settings to not never put my mac on sleep, please help as it affects myy work, i want the work to go on as i close my laptop lid.

MacBook Pro, Mac OS X (10.7.4)

Posted on Aug 29, 2012 9:59 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 2, 2013 6:38 PM

What an absurd limitation and incredible oversite! If you've used any other operating system on a laptop long enough you'll know how convienient it is to be able to shut the lid without it sleeping in certain situations. Two quick examples:


You have a virtual machine running inside you laptop for development and you want to walk half a block away to the other coffee shop. - Seriously? I have to walk down the street with my open laptop in one hand and my coffee in the other to prevent the silly thing from sleeping? What if it's raining? I have to get my laptop wet simly because I can't flip a software switch to tell it not to sleep when I close the lid? MAJORLY dissappointing Apple.


You work in a large building, and you need to show your boss your work, but he/she is in the opposite corner of the building. I either have to walk through the whole building opening and bumping into heavy doors with laptop open, (forget taking my coffee with me!) or I have to make my boss wait while my machine starts back up and re-connects to the wifi, etc. - That's Rediculous!


I'm a little embarassed to be seen with this Macbook now. Such arbitrary limitations seem to be frequent. I can't do the things I could with a regular laptop running any other unix OS.


Apple, I like your ability to make things easy for people who don't know about computers, but that is not mutually exclusive with allowing more technical people to do what they need to do. It's a simple software switch you are choosing not to make available to us.

96 replies

Aug 12, 2014 10:33 AM in response to Satyen1

I have had similar problems with getting my macbook retina 2012 to stay awake when connected to an external TV through HDMI. - even with 3rd party applications my closed macbook goes to sleep when I put my TV into standby. I'm running Yosemite Beta - public release.


I found this but not been able to test it properly yet.


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

caffeinate

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.


To make the caffeinate command stop running and return your Mac to normal using either of the methods above, simply return to the command line and press the Control + C keyboard combination.

Will be trying this, and will let you guys know my findings.

Cheers

Aug 14, 2014 12:26 AM in response to gilbo-uk

So far - not so good. My macbook won't sleep now when I close the lid over after deactivating caffeinate. It now goes to sleep after some time - rather than as soon as you close the lid - not sure what I have done.


I now have to manually put my mac to sleep before closing the lid to avoid it overheating in my bag.


As for when caffeinate is on - will need to test this still - the problem is when connected to a TV, when you close the macbook it will play a video no problem through the TV - however when you turn the TV off onto standby - the laptop also goes to sleep even with the - sleep function toggled to 'never' on the energy saver screen.

Aug 31, 2014 8:15 AM in response to matt_da_tiger

@matt_da_tiger:

Ok here's what I'm attempting to do....


I have a new MacBook Pro running 10.9.2.


I'd like to be able to access it with my IPad using Parallels Access with the lid closed. The same way I use it to access my Mac Mini with no keyboard or mouse connected and the monitor off.


I read through the thread and tried using the CAFFEINATE command from terminal. I've used every combination of command modifiers I can come up with and when I close the lid, the Pro goes offline in Parallels Access.


I have tried NOSLEEP or any of the other recommendations in the thread above. I thought I'd try the preinstalled feature first. Anyone ever used Parallels Access successfully with the lid closed on your MacBook Pro?


Yes you can with Parallels Access 2.0 (though I myself am still trying to figure out whether or not it is a good idea). Your MBP must be plugged into a power source, and you have to set the energy settings click the "enable power nap" and "wake for network access" checkboxs under power adapter. See here for pictures and a better explanation🙂

Sep 5, 2014 4:33 AM in response to PlotinusVeritas

Wow! I can't believe we're having this conversation in 2014!


I am a Windows user who's just got his first Macbook Pro. And all I can say is I'm so utterly terribly disappointed at how primitive this Mac OS X operating system is.


I am a proud owner of an iPhone 5 and an iPad 3, and I have no hesitation in saying they are better than their Android competitors in both quality and ease of use. With the same expectations, I switched to a Macbook Pro this year. And what a disappointment it's been. I would happily return it if they would refund my money.


The "Don't sleep when lid is closed" option has been in Windows for ages. It is as basic a feature as "cut, copy and paste". People have been using Windows laptops with this setting turned on for ages. It's a MUST for a corporate user who has to frequently move around from his cube to others' cubes or conference rooms for meetings, because they have several applications running that require always-on connectivity, so the "save your work before you move" philosophy doesn't work here.


I'm a software engineer who has worked in large corporations like Cisco and Juniper Networks where thousands of people use Windows laptops with this setting on. In all these years, not once have I (or anyone I know) faced any problems like overheating or disks going bad that could be attributed to this setting.


This "Apple knows what's best for us" philosophy of fanboys harms Apple more than anyone else. It prevents them from firming up their deficiencies. OS X Mavericks is so far behind Windows 7 that you just can't imagine.


It is not a question of "use another OS if you don't like OS X". The point is - when you buy a laptop that costs 2-5 times of what its competitors charge, you expect everything that's standard on other laptops PLUS a little bit extra. Imagine, if you decide to go to a fancy expensive restaurant instead of a regular one, and what you get instead of better quality and more variety is a restrictive menu not having your favorite dishes on the grounds that "in our opinion, they are not good for your health."


As for me, I'm currently making do with the NoSleep extension which makes my Mac do what I want it to. Read my blog post for some of the other such shortcomings in OS X: http://www.vijaypadiyar.in/blog/2014/08/make-mac-osx-more-like-windows

Jan 11, 2015 3:14 PM in response to Satyen1

Yeah Caffeinate didn't work. I was backing up using time machine and it said it would take an hour. I decide to turn on caffeinate and hoped it'd be done by the time I got home. Time machine stopped doing it's thing when I closed the lid and resumed when I opened it an hour later.


Seriously the only reason I can say this Macbook is the best laptop I've ever used is because of the trackpad. You put the trackpad on a windows machine and it'd be absolutely no contest.

Feb 6, 2015 9:34 AM in response to PATRICKMELE

I jut got this MacBook Pro 15in early 2011 and am sad that apple does not put as much engineering into this more expensive laptop than the comparable more inexpensive HP 9470m. Both have the same look and even though the apple has a much nicer feel, it apparently overhears much easier. At my old job, there were several occasions when I would accidentally not shutdown the HP 9470m and put it in my bag with several VMs running for 1-2 hours while I drove to another site or home. The HP 9470m still runs fine to this day having been put through a heavy work load in an enclosed space several times. Apparently this all metal design is purely aesthetic and not functional like the HP 9470m. Both had similar dual core i7 processors, 8gb of ram and SSDs. *** apple.

Apr 22, 2015 5:54 AM in response to Greg Michaelson

Hi, will caffeinate work without the power adaptor plugged in?


We tried using nosleep but it seems it only works when the power adaptor is connected. Once you remove it and run on battery mode, close the lid THEN it goes to sleep.


I also read in this link:

http://apple.stackexchange.com/questions/12271/should-i-disconnect-my-macbook-pr os-power-cord-when-the-battery-is-fully-charge


it's better to keep the power adaptor on in order for the cycle count not to increase??? ( Is there some kind of scientific explanation for this)

Aug 5, 2015 7:32 AM in response to revacuate

I agree with the sentiment expressed by Revacuate and Jim Robinsoln.


I first "drank the Apple Cool-Aid" six years ago and became an instant devote. Switching from a PC based system, the "elegance" and power made it easy to be seduced. Admittedly, with my upgrade to Yosemite I have been somewhat dismayed, however, in my opinion, Apple remains a superior product .


I find cranky diatribes sophomoric, so I will summarize my evolving (devolving ?!) opinion as briefly as possible ..


Apple, selling me a computer is not an opportunity to insert yourself in my life.

I do not like the trend that full functionality is only available through an ongoing interaction with Apple.

I paid for it, I want to take it home and do my thing. You stay in Cupertino designing great products.

You do that and I can assure the Lions share of my discretionary tech dollars.


I feel that diatribe a-brewin, so I won't mention that in the last six months I purchased a $400.00 phone and a $2800.00 laptop that are unable to share data via. bluetooth, despite the fact that both have the ability to send files to my HP ....


Revacuate, you are correct in saying that it is both simple and, to a high degree an industry standard, to allow the owner of the laptop to set the default behavior in regards to "lid up / lid down".


J

How to prevent laptop from sleep when lid closed

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.