
Sleep issue on Mac OS Lion

After installing the update, a huge number of users complain about the incorrect reaction of the computer to exit sleep mode, and regardless of the type of device, whether it be an iMac, Macbook or Mac Mini. It manifests itself in this way: after the computer goes into sleep, it is already impossible to wake it up in the traditional ways: by opening the laptop cover, pressing the power button, etc, you have to do a hard reset. The main charm lies in the fact that there are many modifications of this bug: for someone, it appears only if you put the computer into sleep mode by closing the lid, for someone only by clicking "Sleep mode" in the menu; for some, it appears only when MagSafe is connected, while for someone it only appears when working on battery power. For me, it manifests itself in an extremely exotic way: the system wakes up, but it behaves in a way
Interestingly, there is no single cure for this. The support forum offers a huge number of solutions to the problem, but none of them help everyone for sure.
This post is an assembly of all possible solutions from here: https://discussions.apple.com/thread/3190738 .
The most common tips are to reset PRAM and NVRAM.
PRAM (parameter RAM) and NVRAM (non-volatile RAM) are two areas of your Mac’s memory where some settings and information are stored even after the computer’s power is turned off. But sometimes the data contained there may be damaged and cause all sorts of problems.
You can reset the contents of PRAM and NVRAM in five consecutive steps:
1) Turn off the computer.
2) Locate the Command, Option, P, and R keys on your keyboard (you'll need these keys in the next steps).
3) Turn on the computer.
4) Simultaneously press and hold the Command + Option + P + R combination, but note that this must be done before the gray screen appears.
5) After a few seconds, your Mac will reboot again, a familiar sound (startup sound) will sound, and you can release the pressed keys.
Reset SMC
In the worst case, in addition to the "faulty" sleep mode, you can also notice other symptoms that indicate the need to reset the parameters of the system management controller (System Management Controller or briefly SMC). Everywhere it is recommended to resort to this only in the very last case, when all other methods have already been tried, although there is nothing to worry about - this controller controls various kinds of sensors, and does not contain any settings. Resetting will not affect the system settings.
Resetting SMC parameters on laptops with a removable battery is done this way (by “removable” battery we mean one that the user can replace himself, without a screwdriver, only by opening the cover with his hands and removing the battery):
1) Turn off the computer.
2) Disconnect the MagSafe network adapter (if connected).
3) Remove the battery from the laptop case and set it aside.
4) Press and hold the Power button for 5 seconds.
5) Release the power button, insert the battery back into the laptop, and plug in the MagSafe adapter.
6) Press the Power button to turn on the computer.
Resetting SMC on laptops without a removable battery is done as follows:
1) Turn off the computer.
2) Plug one end of the MagSafe adapter into a power outlet, and the other end to a laptop.
3) Simultaneously press Shift + Control + Option (on the left side of the keyboard) and the Power button (at the same time, the LED on the MagSafe adapter can change state or even turn off temporarily).
4) Release all keys at the same time.
5) Press the Power button again to turn on the computer.
Resetting SMC settings on Mac desktop computers, do the following:
Turn off the computer and unplug the power cord.
Wait at least 15 seconds.
Plug the power cord back into the Mac.
Wait another 5 seconds and then press the Power button to turn on the computer.
Search for a process that keeps you awake
run in the terminal: pmset -g
opposite to sleep see the pid of the process, after the phrase "imposed by". For example, for:
sleep 0 (imposed by 18)
run ps -ef | grep -e 18
Some more tips:
- Refresh Little Snitch
- Close / delete iStat
- Delete the contents of the / Library / Preferences / SystemConfiguration directory, empty the trash, reboot
- Close Mail (when running on some, the hard disk just does not go to sleep
- Disable Internet Sharing (System Settings -> Sharing -> Remove the “General Internet” checkbox (some recommend removing all the checkboxes).
Only one method helped me, and then it only lasted 1 time:
1) Disable MagSafe
2) Close the laptop cover
3) Wait until the laptop falls asleep (activity indicator the drive will not blink)
4) Turn MagSafe back
on 5) Wake laptop