MacBook doesn't sleep when closing lid with external monitor attached with Lion

Up until yesterday (with Snow Leopard), closing the lid would cause my MacBook to sleep whether or not the external monitor was connected.

Since upgrading to Lion last night, closing the lid when the external monitor is attached just tosses all windows to that screen and keeps going.

I realize I can sleep via the Apple menu or keyboard before closing the lid. I'd rather not have to, and I'm wondering if there's a setting to restore the sleep-on-close behavior.

Mac OS X (10.7)

Posted on Jul 21, 2011 9:37 AM

Reply
66 replies

Oct 14, 2011 7:01 PM in response to admgtz

I would like to offer this solution. I have a MacBook Pro with an external monitor, and, for a year and a half both displays slept when I closed the MBPS. This behavior stopped when I installed Lion. They would sleep when I removed the power cord, but what a pain that would be. The command "pmset -g assertions" gave no indication of which process ought be preventing sleep.

I contacted Apple support, and after some searching, the guy working with me found this thread, which was flagged as an Apple-approved solution:


https://discussions.apple.com/thread/3190417?start=165&tstart=0


This is the important part:


Correct AnswerRe: How do I tell Lion to disable the LCD screen even when the lid is open?

Aug 31, 2011 9:56 AM (in response to Bob_viking)

Here's the command to make your laptop behave like it did Pre-Lion (courtesy of my friend):


sudo nvram boot-args="iog=0x0"


Works perfectly for me. If it screws up your system, just zap the PRAM next boot (cmd-opt-p-r) and you'll be back to the default Lion state. Or if you can still get into terminal, this command will get you back to Lion's default state as well:


sudo nvram -d boot-args


Enjoy!



One snag was that I had to run it with the external monitor disabled, but it worked great!

Jul 30, 2012 1:41 AM in response to admgtz

Hi guys, the same problem here. I talked to tech support and here is one recommendation from them - report this bug as a feedback here: http://www.apple.com/feedback/ ... if there will be more reports, hope they put it as any "option" in Preferences. But they told we need to report this in feedback form. I reported it as a Mac OSX bug, so here: http://www.apple.com/feedback/macosx.html

Aug 14, 2012 4:35 AM in response to chfn

If your Mac does not go to sleep at all (independend of an external monitor) you have a complete different issue, which is discussed in several other discussions, like: https://discussions.apple.com/thread/1070629?start=0&tstart=0

Apple advice to this is here: http://support.apple.com/kb/HT1776?viewlocale=en_US&locale=en_US

But it seems there is no help, if the sleeping issue only occurs when the external monitor is connected.

I found out, that it will work, if either the external monitor or the power supply is disconnected for the moment when closing the lid.

Nov 16, 2013 3:22 AM in response to jk10003

jk10003 wrote:


I would like to offer this solution. I have a MacBook Pro with an external monitor, and, for a year and a half both displays slept when I closed the MBPS. This behavior stopped when I installed Lion. They would sleep when I removed the power cord, but what a pain that would be. The command "pmset -g assertions" gave no indication of which process ought be preventing sleep.

I contacted Apple support, and after some searching, the guy working with me found this thread, which was flagged as an Apple-approved solution:


https://discussions.apple.com/thread/3190417?start=165&tstart=0


This is the important part:


Correct AnswerRe: How do I tell Lion to disable the LCD screen even when the lid is open?

Aug 31, 2011 9:56 AM (in response to Bob_viking)

Here's the command to make your laptop behave like it did Pre-Lion (courtesy of my friend):


sudo nvram boot-args="iog=0x0"


Works perfectly for me. If it screws up your system, just zap the PRAM next boot (cmd-opt-p-r) and you'll be back to the default Lion state. Or if you can still get into terminal, this command will get you back to Lion's default state as well:


sudo nvram -d boot-args


Enjoy!



One snag was that I had to run it with the external monitor disabled, but it worked great!

I'm a so-called 'late adopter', only having upgraded to Lion from Snow Leopard this month. Your solution nicely solved the problem for me. A real shout out to you. Thanks!

Jan 8, 2014 6:18 AM in response to admgtz

I have this problem too. Apple's support article on multiple displays (link) describes this behaviour as "closed lid mode", which is only supposed to be invoked if you have an external keyboard and mouse connected. I don't have a keyboard or mouse connected to something isn't right.


There's a dedicated support page for closed lid mode: link


I hope terminal commands aren't the only way of resolving this problem.

Jul 23, 2011 7:58 PM in response to admgtz

I have the same problem too: MBP wont sleep unless i manually select it, but i just unplugged my external monitor and now it works like its supposed to.

i check console, and it was complaining said:

kCGErrorIllegalArgument: CGSGetDisplayBounds: Invalid display 0x04272d80

_NXGetScreenRect: error getting display bounds (1001)

this was repeated 4 times, followed by:

EDID does not contain Extended EDID, not valid for audio

which i can only assume is becaus it is pluged in using a DVI adapter (i.e. no audio, therfore not really an error)

Jul 29, 2011 1:54 PM in response to banksfromazusa

seems pretty clear this should be a configurable option, either in Display or Energy Saver preferences.


I can definitely see the use-case where someone uses an external monitor or a projector or something, where they want it to stay on when the lid is closed. But there should still be a way somehow to force it to go to sleep when you close the lid with an external monitor

Aug 2, 2011 1:42 PM in response to admgtz

Yes this needs to be an option because it's taken the option of just using the external screen, which you instigate by sleeping the laptop, closing lid hit space bar or mouse and just the external screen comes on then you can open the lid to keep the air flow going and also not have an extended desktop where the mouse keeps disappearing to... Fix. Now Please.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

MacBook doesn't sleep when closing lid with external monitor attached with Lion

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