MacBook Pro does not sleep when lid closed

Hi there. I recently upgraded my MacBook Pro from Snow Leopard to Mountain Lion. Before the upgrade my mac would sleep automatically when the lid closed. However, ever since I've upgraded, when I close the lid, my mac doesn't go to sleep. However, if my mac isn't plugged in (running off the built in battery) it goes to sleep. I looked through system preferences and I can't seem to find any settings relating to this, does anyone have any suggestion on what's happening and how I can fix it? Many thanks in advanced.

MacBook Pro, OS X Mountain Lion (10.8.2), MacBook Pro 15" (Mid-2010)

Posted on Mar 14, 2013 4:26 PM

Reply
13 replies

Mar 16, 2013 8:29 AM in response to dfreez09

Test after each of the following steps that you haven’t already tried:


Step 1


Apple menu > System Preferences > Print & Scan > Open Print Queue

Check all printers for unfinished jobs. Deal with any you find.


Step 2


Apple menu > System Preferences > Energy Saver > Power Adapter > Wake for network access: uncheck. You may need to unlock the preference pane by clicking the lock icon in the lower left corner and entering your administrator password.


Step 3


Apple menu > System Preferences > Energy Saver > Schedule > Start up or wake: uncheck.

Step 4

Apple menu > System Preferences > Sharing: uncheck all boxes.


Step 5


Disconnect all wired peripherals except keyboard, mouse or trackball, and monitor, if applicable.


Step 6


Launch the Activity Monitor application.


Select All Processes from the menu in the toolbar of the Activity Monitor window, if not already selected. Enter “powerd” (without the quotes) in the "Filter" text field. Select the powerd process and click the Quit Process button in the toobar (stop-sign icon.) In the sheet that opens, click Force Quit. You’ll be prompted for your administrator password. The process will be relaunched immediately.


Step 7


Reset the SMC.


Step 8


Boot in safe mode and log in. The instructions provided by Apple are as follows:


  1. Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
  2. When you see the gray Apple logo, release the shift key.
  3. If you are prompted to log in, type your password, and then hold down the shift key again as you clickLog in.


The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.


Note: If FileVault is enabled under OS X 10.7 or later, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode.


Safe mode is much slower to boot and run than normal. Don’t launch any applicationsat first. If sleep still doesn’t work properly, back up all data and reinstall the OS. After that, if you still have the issue, make a “Genius” appointment at an Apple Store to have the machine tested.


If sleep now works as expected, go on to the next step.


Step 9


Still in safe mode, launch the usual set of applications that are running when you have the problem, including your login items, one at a time, testing after each one. Some applications may not work; skip them. You might be able to identify the cause of the problem this way.


Step 10


If sleep is still working after you’ve launched all the usual applications, reboot as usual (not in safe mode) and test again. If sleep still works, you’re done, at least for the moment.


If you still have the sleep issue after booting out of safe mode, post again.

Mar 14, 2013 6:22 PM in response to dfreez09

Triple-click anywhere in the line below to select it:


pmset -g assertions


Copy the selected text to the Clipboard (command-C).


Launch the Terminal application in any of the following ways:


☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)


☞ In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.


☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.


Paste into the Terminal window (command-V).


The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.


Post any lines of output that appear below what you entered — the text, please, not a screenshot.

Mar 15, 2013 1:07 PM in response to Linc Davis

I did the exactly what you mentioned and this is the output:


5/03/2013 20:04:48 GMT

Assertion status system-wide:

PreventUserIdleDisplaySleep 0

PreventSystemSleep 0

PreventUserIdleSystemSleep 0

ExternalMedia 0

UserIsActive 0

ApplePushServiceTask 0

BackgroundTask 0



Listed by owning process:

pid 246(helpd): [0x0000000c00000161] 03:20:55 BackgroundTask named: "com.apple.helpd.sdmbuilding"

pid 53(InternetSharing): [0x00000008000003b8] 00:44:27 DenySystemSleep named: "com.apple.InternetSharing"



Kernel Assertions: 0x0128

* Kernel Assertion ID = 500

Created At = 01/01/1970 01:06:36 GMT+

Modified At = 01/01/1970 01:00:00 GMT+

Owner ID = 0xffffff80126fc000

Level = 0

Assertions Set = None (4)



* Kernel Assertion ID = 501

Created At = 01/01/1970 01:06:37 GMT+

Modified At = 01/01/1970 01:00:00 GMT+

Owner ID = 0xffffff80126f1000

Level = 0

Assertions Set = None (4)



* Kernel Assertion ID = 518

Created At = 15/03/2013 20:03:30 GMT

Modified At = 01/01/1970 01:00:00 GMT+

Owner ID = 0xffffff8012867300

Level = 255

Assertions Set = None (128)

Mar 16, 2013 6:24 AM in response to Linc Davis

Linc Davis wrote:


Please enter the following command in the same way as before and post the output:


pmset -g custom


This is the output I recieved when typing in the command above in to terminal.


Battery Power:

lidwake 1

ttyskeepawake 1

hibernatemode 3

gpuswitch 2

hibernatefile /var/vm/sleepimage

displaysleep 3

sleep 15

acwake 0

halfdim 1

sms 1

lessbright 1

disksleep 10

AC Power:

lidwake 1

ttyskeepawake 1

hibernatemode 3

gpuswitch 2

hibernatefile /var/vm/sleepimage

womp 1

displaysleep 5

networkoversleep 0

sleep 15

acwake 0

halfdim 1

sms 1

disksleep 10



Many Thanks.

Mar 16, 2013 9:15 AM in response to dfreez09

dfreez09 wrote:


This is the output I recieved when typing in the command above in to terminal.


Battery Power:

lidwake 1

ttyskeepawake 1

hibernatemode 3

gpuswitch 2

hibernatefile /var/vm/sleepimage

displaysleep 3

sleep 15

acwake 0

halfdim 1

sms 1

lessbright 1

disksleep 10

AC Power:

lidwake 1

ttyskeepawake 1

hibernatemode 3

gpuswitch 2

hibernatefile /var/vm/sleepimage

womp 1

displaysleep 5

networkoversleep 0

sleep 15

acwake 0

halfdim 1

sms 1

disksleep 10



Many Thanks.

That listing is incomplete. You're missing entries for standby and then autopoweroff (depending on version of ML you're running).


Something's not right with your PMSET .plist files. Rebuilding those may fix this issue.


The path for the plist file is /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist.


Usually, deleting the file or moving it to your desktop and rebooting allows the OS to rebuild the file from scratch. Try that and then do another pmset -g custom and see what you get listed. System defaults supported by your actual laptop should be rebuilt then.

Dec 1, 2014 10:10 AM in response to dfreez09

I started having the same problem yesterday. If I put it to sleep, it would almost immediately wake up. If I closed the lid, it would wake for a few minutes then sleep. If screen saver went on, it would quickly wake again until the next cycle and then wake, over and over.

Did the PRAM reset. No help. Ran Permissions Repair, nothin. Reset Energy Saver, nada. Also made sure iTunes wasn't the problem.

I am using a Mbook Pro running 10.5. Opened terminal and it showed the following.


mac-macs-computer:~ drod$ pmset -g assertions

12/1/14 8:35:53 AM PST

Assertion status system-wide:

PreventUserIdleDisplaySleep 0

PreventSystemSleep 0

PreventUserIdleSystemSleep 1

InternalPreventDisplaySleep 0

ExternalMedia 0

UserIsActive 0

ApplePushServiceTask 0

BackgroundTask 1



Listed by owning process:

pid 200(coreaudiod): [0x000000010000255b] 01:07:18 NoIdleSleepAssertion named: "com.apple.audio.'AppleHDAEngineOutput:1B,0,1,2:0'.noidlesleep"

pid 4127(helpd): [0x0000000c00000fa7] 00:00:50 BackgroundTask named: "com.apple.helpd.sdmbuilding"


But neither of these led to solving the problem either. So I went back over to Activity Monitor and set it to look at Real Memory or %CPU Usage. In both categories I saw that Flash Player was taking up quite a bit of usage but knew I didn't have anything running in Safari. So Quit that process in Activity Monitor and the problem IMMEDIATELY went away. Interesting that Flash didn't show up in the Terminal as keeping the Mac from going to sleep. However I wonder if the 'com.apple.Audio' was somehow linked to Flash?


Hope others find this remedy works for them too.


New issue however, once quitting Flash Player, Facebook or other vids won't play automatically so you need to get Flash up and running again. I did this by … simply quitting and restarting Safari.

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 Pro does not 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.