Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

MacBook Pro shuts down after closing lid for longer period of time

Hello,


so recently I've noticed that my MacBook Pro 2012 mid 13" shuts down after I close a lid for a longer period of time. I tried to fix the problem by resetting SMC and PRAM, but that didn't quite work. I've been using my macbook yesterday, then I closed the lid for the night and when this morning I opened up the lid, I heard the CD-ROM's sound (you probably know that sound when CD-ROM turns on) and I saw Apple logo - so my macbook somehow turned on automatically after I opened up the lid. But when it loaded up there was no user's selection (like Arnsa, Guest User etc.), it was just Arnsa (the last user I was logged in) and I had to type in my password. So anyways, do you guys have any clues what could be the problem?


P.S. I'm using Yosemite 10.10.2

MacBook Pro, OS X Yosemite (10.10.2)

Posted on Mar 22, 2015 2:30 AM

Reply
3 replies

Mar 22, 2015 8:10 AM in response to arnsa

With the Power Nap feature enabled, the computer enters a so-called standby mode after it has been in sleep on battery power for more than a certain time (one hour, by default.) In that mode, the contents of memory are saved to a file, and then the power is turned off. When the computer wakes up, the contents of memory are restored from the file. As a result, waking from sleep takes longer than it otherwise would. The benefit is that sleep can be prolonged indefinitely without draining the battery or having to restart the computer.

Late-model Macs are configured to enter standby after four hours in sleep while on AC power, in order to comply with a directive of the European Union. That behavior doesn't depend on the status of Power Nap.

You have three choices. One is to do nothing. Use the machine as designed. That's what I recommend.

The second choice is to disable Power Nap in the Energy Saver pane of System Preferences. Uncheck the box marked Enable Power Nap... in each of the tabs. You won't get the wake delay anymore, but you won't get any of the features of Power Nap either. The wake delay while on AC power won't be affected.

The third choice is to increase the delay before standby mode is triggered, or to disable standby mode completely. This is an unsupported option and you're on your own as to the consequences. If you choose to go this route, proceed as below. These instructions are for advanced users only.

Back up all data before making any changes.

These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.

Drag across the line below to select it, then copy it to the Clipboard by pressing the key combination command-C:

sudo pmset –a standbydelay

Don't copy the blank space at the end of the line.

Launch the Terminal application.

Paste into the Terminal window by pressing command-V. Press the space bar, then type the delay you want, in seconds. For example, if you want to change the standby delay from the default one hour to eight hours, enter 28800. Don't put commas or other punctuation marks in the number. To disable standby, enter 0 (zero.)

When the command is complete, press return. You'll be prompted for your login password. Nothing will be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. After running it, quit Terminal. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.

To disable standby on AC power, enter this command:

sudo pmset autopoweroff 0

and to revert to the default state,

sudo pmset autopoweroff 1

Mar 28, 2015 3:27 AM in response to Linc Davis

Well, the problem is that there's no such thing as "Power Nap" in Energy Saver options. Although after I've reset SMC and PRAM, the computer shut down only after lid was closed for a long time only once (the very first time I closed it). After that the it doesn't shut down anymore. Anyways, do you have any idea what was the problem? Is it normal that you sometimes need to reset SMC and PRAM to fix this problem? And why is there no Power Nap in Energy Saver options?

MacBook Pro shuts down after closing lid for longer period of time

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