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.

OS X Lion 10.7 Sleep Issue

Installed Lion this morning and the only issue that I have found thus far is sleep.


I use an external display as well as the laptop display. When I close my MacBook lid and wait several minutes, I do not get the sleep mode winking LED and my second display does not go into standby, probably because the Mac has not entered sleep mode.


When I raise the lid, my laptop display appears to have been in standby and the Mac looks to be doing a device discovery. After the discovery, the Mac display is normal but all the apps from my second display are now on the Mac display.


Anybody have a clue as to the cause or is Lion just broke?


Cheers

MacBook Pro, Mac OS X (10.7)

Posted on Jul 20, 2011 1:44 PM

Reply
251 replies

Jan 15, 2012 1:23 AM in response to ApexRon

I tried most everything on here and went to download PleaseSleep and noticed 3 search links down this link:


http://macenstein.com/default/2011/08/how-to-get-your-macbook-pro-to-sleep-in-os -x-lion/


I went to it and viola it worked finally. I hope it works for everyone else as stumped as I was.


Note: Make sure to wait a minute or so. About the time I thought it didn't work again it started to. Two seconds away from saying this didn't work either. Patients really is a virtue.

Jan 18, 2012 7:07 AM in response to ApexRon

After I tried everything noted here without success I stumbled over some other information and for now, it works.


I'd like to share the information (note: I tried PRAM etc and stopping processes that communicate to the outside etc)


What finally did it was this


1

Checking the sleep states with the Terminal command

pmset -g


2

Setting the hibernatemode to 3 (corresponds to suspend to RAM and to disk) with the Terminal command

sudo pmset hibernatemode 3


->you may be prompted for your password.

If you run your Mac without one, it will keep prompting you, so you have to change the password for the time being (System settings -> users & Groups [I translate that from german so this might sound slightly different on your system])


(hibernatemode 3 seems to be the default value on new Macs. Mine is some 2 years old and was on 0)


3

check setting with

pmset -g


At this point, my Mac went in screen sleep mode, but the HD kept spinning, so I did the following


4

pmset -a ttyskeepawake 0


5

check again with

pmset -g


Which displayed this:


Active Profiles:

Battery Power -1

AC Power -1*

Currently in use:

womp 0

halfdim 0

sms 1

panicrestart 157680000

gpuswitch 2

hibernatefile /var/vm/sleepimage

networkoversleep 0

disksleep 0

sleep 180

hibernatemode 3

ttyskeepawake 0

displaysleep 180

acwake 0

lidwake 1



6

Close the lid or use the sleep command under the apple menu


7

Slowly count to ten


(It takes that long on my MacBook to fall really asleep)



References:

Set newer portable Macs' sleep mode | Macworld

DropBox for Mac is preventing my MacBook Pro from sleeping « Dropbox Forums post by user Tom H.


-----------------------------


I hope this is of use for some other Mac user.

Jan 18, 2012 5:45 PM in response to ApexRon

Finally fixed this after months of struggling. iMac 27" with the i7. After Lion it wouldn't auto-sleep. Discovered that it would auto-sleep if Mail wasn't running. If Mail was up it would only auto-sleep about 5% of the time. Tried all the tips listed in this thread and nothing. The entire time if you went to Apple -> Sleep it would go to sleep instantly. No printer sharing, no print jobs waiting and nothing in the logs stopping the sleep. I got rid of the wireless Apple keyboard and plugged in a $20 Dynex USB keyboard and it works perfectly now.

Jan 26, 2012 5:29 AM in response to ApexRon

My MacBook with Lion installed, would not sleep if connected to the power chord. I had turned off internet sharing but it still wasn't sleeping


It was driving me crazy. And I noticed some very complicated solutions on the forums. Finally found the solution.


CLEAR THE PRINT QUEUE FOR ALL OF YOUR PRINTERS!

Feb 1, 2012 5:16 AM in response to 1SOnny

After EFI firmware update 2.5 of my Macbook Pro 2010 with Lion 10.7.2 the notebook won't sleep with power connection. I tried SMC reset and PRAM reset, both did not help. The solution below works for mine. Simply uncheck ALL under Sharing. Closed Preferences. Then reopen Sharing under Preferences. Recheck as preferred.

1SOnny wrote:


I tried most everything on here and went to download PleaseSleep and noticed 3 search links down this link:


http://macenstein.com/default/2011/08/how-to-get-your-macbook-pro-to-sleep-in-os -x-lion/


I went to it and viola it worked finally. I hope it works for everyone else as stumped as I was.


Note: Make sure to wait a minute or so. About the time I thought it didn't work again it started to. Two seconds away from saying this didn't work either. Patients really is a virtue.

Feb 4, 2012 3:00 PM in response to jcarpio

@jcarpio


Thanks for your post.


I've done this—deleted prefs, played with System Pref setting, checked permissions, reset PRAM, reset SMC, reinstalled Lion, and every other diagnostic and systematic elimination process I could research—and my Mac still won't sleep regularly. The only variable that's beginning to emerge is that if I hold everything constant (everything possible) and work with the same software all day that I booted with, this iMac will sleep SOMETIMES early in the day, never after a few hours. At this point, I've given up, putting the Mac to sleep whenever I leave my desk or when security is required.


I await an answer from those smarter than I am.


Best,

Evan

Feb 7, 2012 9:12 AM in response to Anic264b

I may have spoken too soon...


My MacBook Pro has only slept on it's own one time while in it's HengeDock. If I have it out and close the lid, it *seems* to sleep normally. (It usually goes into my bag right after the sleep indicator light indicates that the system has, in fact, gone to sleep. It seems to sleep while it is in my bag as there is no heat that escapses when I open the bag.)


One thing that I've noticed is that coreaudiod tends to be both running and imposing sleep when my MBP fails to sleep.


I saw that someone changed the function of ttyskeepawake. My MacBook Air and MacBook Pro both have ttyskeepawake set to 1. If I have an open terminal session with an open SSH session to a remote host, is this preventing sleep? (I run screen on the remote host, so it's nothing major if my connection drops...)


Could the source of my issue be as simple as a constant open connection to a server in a data center in Colorado?

OS X Lion 10.7 Sleep Issue

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