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

Jul 29, 2011 7:41 PM in response to W M R

SOLVED:


if your mac is not sleeping properly (mine was not sleeping only when the power was plugged in) do this:


open terminal:

run pmset -g (you'll get an output similar to this)

Active Profiles:

Battery Power -1

AC Power -1*

Currently in use:

womp 0

autorestart 0

halfdim 1

sms 1

panicrestart 157680000

hibernatefile /var/vm/sleepimage

networkoversleep 0

disksleep 10

sleep 0 (imposed by 18)

hibernatemode 3

ttyskeepawake 1

displaysleep 10

acwake 0

lidwake 1


see the line "sleep 0 (imposed by 18)"? that means pid 18 is forcing sleep to be disabled, that's what the zero 0 means.


now do "ps -ef |grep -e 18" and find out what 18 is. mine was cupsd or internet printing. in preferences, print and scan, i unchecked, share this printer on the network.


i re-ran pmset -g and got:


Active Profiles:

Battery Power -1

AC Power -1*

Currently in use:

womp 0

autorestart 0

halfdim 1

sms 1

panicrestart 157680000

hibernatefile /var/vm/sleepimage

networkoversleep 0

disksleep 10

sleep 10

hibernatemode 3

ttyskeepawake 1

displaysleep 10

acwake 0

lidwake 1


put the mac to sleep and it worked just as expected!

Jul 30, 2011 5:37 AM in response to jcarpio

When I do this I get this output:

Active Profiles:

Battery Power -1

AC Power -1*

Currently in use:

standbydelay 4200

standby 0

womp 0

halfdim 1

panicrestart 157680000

hibernatefile /var/vm/sleepimage

sms 1

networkoversleep 0

disksleep 10

sleep 1

hibernatemode 3

ttyskeepawake 1

displaysleep 1

acwake 0

lidwake 1


So I don't think this could help in my case. Has anybody else than W M R and me the problem just when mail is open? Would really like to know if this is a common issue with mail or if somehow my installation of lion wasn't completely successful.

If you have this problem, too, please report it via feedback in mail to apple, so that they can fix this.

Question to W M R: Have you got an imap or a pop account configured in mail?

Jul 30, 2011 6:41 AM in response to ApexRon

Sleep can be initiated in several ways:

1. Manually

2. Timer pop (changeable in system preferences)

3. Lid closure of a laptop


For me, manually works fine. I have not tried the timer pop because I don't have that requirement. However, I would like to close the laptop's lid and have the system go to sleep as it did in Snow Leopard.


It appears to me that the system believes that I desire to continue using the system because it moves the laptop screens to my second display. However, since I do not have a second keyboard or external mouse, using the laptop with the lid closed is impossible.


Lion needs to add an option to system preferences so that the user can determine what action the system should take when the laptop lid is closed.

Jul 30, 2011 6:47 AM in response to maharioo

maharioo-


aloha.


if mail is running and you close your lid to your MB, the machine doesn't sleep correct? how do you verify this?


have you tried to reset your power settings in Energy Saver for the "Power Adapter" to default and try again?


also, if your mac doesn't sleep again after this can you post the log from your console during the time you try?


thanks.

Jul 30, 2011 7:09 AM in response to ApexRon

Mail is running and MB does not sleep when lid is closed. Second display is still active with all the screens there were on it and the MB screens as well.


I have reset many things with no resolution.


Here is the console log from when I lowered the lid to when I raised it again:

7/30/11 10:04:23.335 AM Console: kCGErrorIllegalArgument: CGSGetDisplayBounds: Invalid display 0x042728c0

7/30/11 10:04:23.335 AM Console: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.

7/30/11 10:04:23.335 AM Console: _NXGetScreenRect: error getting display bounds (1001)

7/30/11 10:04:23.335 AM Console: kCGErrorIllegalArgument: CGSGetDisplayBounds: Invalid display 0x042728c0

7/30/11 10:04:23.335 AM Console: _NXGetScreenRect: error getting display bounds (1001)

7/30/11 10:04:23.335 AM Console: kCGErrorIllegalArgument: CGSGetDisplayBounds: Invalid display 0x042728c0

7/30/11 10:04:23.336 AM Console: _NXGetScreenRect: error getting display bounds (1001)

7/30/11 10:04:23.336 AM Console: kCGErrorIllegalArgument: CGSGetDisplayBounds: Invalid display 0x042728c0

7/30/11 10:04:23.336 AM Console: _NXGetScreenRect: error getting display bounds (1001)

7/30/11 10:04:23.336 AM Console: kCGErrorIllegalArgument: CGSGetDisplayBounds: Invalid display 0x042728c0

7/30/11 10:04:23.336 AM Console: _NXGetScreenRect: error getting display bounds (1001)

7/30/11 10:04:23.336 AM Console: kCGErrorIllegalArgument: CGSGetDisplayBounds: Invalid display 0x042728c0

7/30/11 10:04:23.337 AM Console: _NXGetScreenRect: error getting display bounds (1001)

Jul 30, 2011 7:27 AM in response to ApexRon

apexron-


can you disconnect your external display and see if the MB goes to sleep with the lid closed?


i don't have an external display but i hear that the MB staying awake after being closed while an external display is connected is a feature. i believe, but am not sure, it can be modified in the Displays preferences at the top. Perhaps you can attach a screenshot of your preferences pane.


thanks

Jul 30, 2011 7:49 AM in response to ApexRon

I disconnected second display. The system realized that and after a few seconds all screens were on the MB screen.


I closed the lid and after almost a minute it went to sleep. I have pasted the lengthy console messages but have not had a chance to discect myself as I am not an expert. Display preferences will be pasted at end.


7/30/11 10:33:04.000 AM kernel: hibernate image path: /var/vm/sleepimage

7/30/11 10:33:04.000 AM kernel: sizeof(IOHibernateImageHeader) == 512

7/30/11 10:33:04.000 AM kernel: Opened file /var/vm/sleepimage, size 4294967296, partition base 0x0, maxio 400000 ssd 0

7/30/11 10:33:04.000 AM kernel: hibernate image major 14, minor 0, blocksize 512, pollers 5

7/30/11 10:33:04.000 AM kernel: hibernate_alloc_pages flags 00000000, gobbling 0 pages

7/30/11 10:33:04.000 AM kernel: hibernate_setup(0) took 0 ms

7/30/11 10:33:04.000 AM kernel: en1: BSSID changed to 3c:ea:4f:25:5e:61

7/30/11 10:33:04.000 AM kernel: wlEvent: en1 en1 Link DOWN

7/30/11 10:33:04.000 AM kernel: AirPort: Link Down on en1. Reason 8 (Disassociated because station leaving).

7/30/11 10:33:53.000 AM kernel: hibernate_page_list_setall start 0xffffff8067441000, 0xffffff8067466000

7/30/11 10:33:53.000 AM kernel: hibernate_page_list_setall time: 288 ms

7/30/11 10:33:53.000 AM kernel: pages 972656, wire 149544, act 316393, inact 86103, spec 0, zf 118319, throt 0, could discard act 222244 inact 67147 purgeable 12890 spec 16

7/30/11 10:33:53.000 AM kernel: hibernate_page_list_setall found pageCount 670359

7/30/11 10:33:53.000 AM kernel: IOHibernatePollerOpen, ml_get_interrupts_enabled 0

7/30/11 10:33:53.000 AM kernel: IOHibernatePollerOpen(0)

7/30/11 10:33:53.000 AM kernel: writing 669112 pages

7/30/11 10:33:53.000 AM kernel: encryptStart 2e280

7/30/11 10:33:53.000 AM kernel: encryptEnd 66ca4b0

7/30/11 10:33:53.000 AM kernel: image1Size 207522816, encryptStart1 2e280, End1 66ca4b0

7/30/11 10:33:53.000 AM kernel: encryptStart c5e8c00

7/30/11 10:33:53.000 AM kernel: encryptEnd 3eb88af0

7/30/11 10:33:53.000 AM kernel: PMStats: Hibernate write took 24612 ms

7/30/11 10:33:53.000 AM kernel: all time: 24612 ms, comp bytes: 2740977664 time: 3043 ms 858 Mb/s, crypt bytes: 952353056 time: 5509 ms 164 Mb/s,

7/30/11 10:33:53.000 AM kernel: image 1052281856, uncompressed 2740977664 (669184), compressed 1046950800 (38%), sum1 5ead80ef, sum2 1c6d4e96

7/30/11 10:33:53.000 AM kernel: wired_pages_encrypted 92020, wired_pages_clear 56350, dirty_pages_encrypted 520814

7/30/11 10:33:53.000 AM kernel: hibernate_write_image done(0)

7/30/11 10:33:53.000 AM kernel: sleep

7/30/11 10:34:07.000 AM kernel: Wake reason: EC LID0

7/30/11 10:34:07.000 AM kernel: HID tickle 31 ms

7/30/11 10:34:07.000 AM kernel: Previous Sleep Cause: 5

7/30/11 10:34:07.000 AM kernel: en1: 802.11d country code set to 'X0'.

7/30/11 10:34:07.000 AM kernel: en1: Supported channels 1 2 3 4 5 6 7 8 9 10 11 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140 149 153 157 161 165

7/30/11 10:34:10.404 AM UserEventAgent: CaptiveNetworkSupport:CaptivePublishState:1211 en1 - PreProbe

7/30/11 10:34:10.525 AM configd: network configuration changed.

7/30/11 10:34:10.556 AM configd: network configuration changed.

7/30/11 10:34:10.000 AM kernel: en1: 802.11d country code set to 'US'.

7/30/11 10:34:10.000 AM kernel: en1: Supported channels 1 2 3 4 5 6 7 8 9 10 11 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140 149 153 157 161 165

7/30/11 10:34:10.878 AM applepushserviced: <APSCourier: 0x108d23150>: Stream error occurred for <APSTCPStream: 0x108d44720>: The operation couldn’t be completed. Socket is not connected

7/30/11 10:34:10.884 AM applepushserviced: <APSCourier: 0x108d23150>: Stream error occurred for <APSTCPStream: 0x7fe251d85a40>: The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)

7/30/11 10:34:11.000 AM kernel: MacAuthEvent en1 Auth result for: 3c:ea:4f:25:5e:61 MAC AUTH succeeded

7/30/11 10:34:11.000 AM kernel: wlEvent: en1 en1 Link UP

7/30/11 10:34:11.000 AM kernel: AirPort: Link Up on en1

7/30/11 10:34:11.000 AM kernel: en1: BSSID changed to 3c:ea:4f:25:5e:61

7/30/11 10:34:11.000 AM kernel: AirPort: RSN handshake complete on en1

7/30/11 10:34:11.826 AM airportd: _doAutoJoin: Already associated to “Melzer”. Bailing on auto-join.

7/30/11 10:34:12.000 AM kernel: en1: BSSID changed to 3c:ea:4f:25:5e:61

7/30/11 10:34:12.658 AM configd: network configuration changed.

7/30/11 10:34:12.797 AM UserEventAgent: CaptiveNetworkSupport:CaptivePublishState:1211 en1 - Probe

7/30/11 10:34:12.797 AM UserEventAgent: CaptiveNetworkSupport:CaptiveStartDetect:2343 Bypassing probe on Melzer because it is protected and not on the exception list

7/30/11 10:34:12.798 AM UserEventAgent: CaptiveNetworkSupport:CaptivePublishState:1211 en1 - Unknown

7/30/11 10:34:12.810 AM configd: network configuration changed.

7/30/11 10:34:16.368 AM [0x0-0x468468].backupd-helper: Not starting Time Machine backup after wake - less than 60 minutes since last backup completed.

7/30/11 10:34:25.402 AM UserEventAgent: ServermgrdRegistration cannot load config data

7/30/11 10:34:25.402 AM UserEventAgent: ServermgrdRegistration oldConfig is nil during net changed notification


User uploaded fileUser uploaded file

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.