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.

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

Aug 19, 2011 6:56 AM in response to petersuser

petersuser wrote:


Agreed, this is unintuative and even damaging to the hardware – shutting the lid blocks the airflow. I just came back from work to find my macbook had been on the whole day. Unhappy.


Just to clarify, it is not damaging to the hardware. MacBooks and MacBook Pros are designed to work and cool properly with the lid closed.

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!

Oct 17, 2011 12:22 PM in response to admgtz

I understand why they did this, but it's really annoying not to have a choice. There should be an easy way to put a computer to sleep when you close it. At home, I have an external monitor that I keep my MacBook Pro constantly plugged into. It used to be that when I walked away or went to sleep, I could just close the computer and it would sleep. Now, I actually have to manually put it to sleep.

Dec 18, 2011 1:47 AM in response to apartment

HEY APARTMENT<

I tried your method and check out TERMINAL.


THis is what i saw. Can you further advice me?


Assertion status system-wide:

ChargeInhibit 0

PreventUserIdleDisplaySleep 0

PreventUserIdleSystemSleep 0

NoRealPowerSources_debug 0

CPUBoundAssertion 0

EnableIdleSleep 1

PreventSystemSleep 1

DisableInflow 0

DisableLowPowerBatteryWarnings 0

ExternalMedia 0


I dunno what to do after i see this.


This is with regards to my MBP 13 inch not abling to sleep. I'm using OSX Lion too.


Yong Xian

Apr 26, 2012 5:07 PM in response to admgtz

Mise well throw in my two bits, in hopes that Apple will eventually see enough posts here to fix the issue.


With External Monitor plugged in:

Close the lid in Snow Leopard = Sleep Mode.

Close the lid in Lion = No Sleep


Apple, please give us the ability to select which option we prefer - sleep or no sleep when the lid is closed.


I love Apple products, but every once in a while they do something a little awry. A couple of years back, I was blown away that the iPhones didn't have the ability to change the font size. Millions of customers who have poor eyesight couldn't see the phone without glasses or contacts. Imagine getting a text or call in the middle of the night, and you don't have your contacts in, or your glasses near by.


As good as Apple is at designing great products, they missed this most important obvious issue.


After submitting thorough feedback to Apple, providing statistical evidence proving they were losing millions of customers who wished to own iPhones, but couldn't because the font size was too small, they finally corrected the issue. I'd like to think my feedback opened their eyes!

May 20, 2012 8:26 AM in response to admgtz

After reading this thread I found: macosx-nosleep-extension.


NoSleep makes closing of your MacBook lid possible without going to a sleep mode. Now you shouldn't have to plug your mouse and monitor to stay computer awake - just activate it by clicking a menu bar icon or check a tick in the System Preferences and continue downloading huge files and watching favorite movies over the network with lid closed.


Worked well for me.

Jul 11, 2012 9:21 AM in response to yuvidroid

well, maybe it's a "one line code change" thing, but I would be careful when assuming how easy any change to a critical funtion (sleeping/waking) of a huge operating system would be.


We really have no way of knowing if the change in Lion was a business decision, or a technical one. It could have been a business decision, where, for example one of the OS X managers likes to use his macbook with the lid shut, and got tired of waking it back up after shutting it and told an engineer to "flip a switch" to make it happen. Or maybe some of the new graphics subsystems or libraries in Lion require the video card to remain active for some reason (i'm just making stuff up here) and implementing the old Snow Leopard behavior would have required a lot more work and they decided to drop it. Who knows....

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.