Try a PRAM reset, too. Can't hurt. Apple's help page says:
A small amount of your computer’s memory, called “parameter random-access memory” or PRAM, stores certain settings in a location that Mac OS X can access quickly. The particular settings that are stored depend on your type of Mac and the types of devices connected to it. The settings include your designated startup disk, display resolution, speaker volume, and other information.
Note: To print these instructions, open the Help Viewer’s Action pop-up menu (looks like a gear) and choose Print.
- Shut down the computer.
- Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
- Turn on the computer.
- Immediately press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.Continue holding the keys down until the computer restarts, and you hear the startup sound for the second time.
- Release the keys.
Resetting PRAM may change some system settings and preferences. Use System Preferences to restore your settings.
Test after each of the following steps that you haven’t already tried:
▹ 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.
▹ System Preferences ▹ Energy Saver ▹ Schedule… ▹ Start up or wake: uncheck
▹ System Preferences ▹ Print & Scan ▹ Open Print Queue...
Check all printers for unfinished jobs. Deal with any you find.
Disconnect all wired peripherals except keyboard, mouse or trackball, and monitor, if applicable.
Launch the Activity Monitor 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.
☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Activity Monitor in the page that opens.
Select All Processes from the menu in the toolbar, 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.
Boot in safe mode and log in. The instructions provided by Apple are as follows:
- Be sure your Mac is shut down.
- Press the power button.
- Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
- Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
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 Mac OS X 10.7 or later, you can’t boot in safe mode.
Safe mode is much slower to boot and run than normal. Don’t launch any applications at first. If sleep still doesn’t work properly, back up all data and reinstall the Mac 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.
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.
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.
Thanks a lot for your detailed post!
I tried booting into safe mode and trying to put the computer to sleep but encountered the same problem.
I also tried reinstalling the OS. Nothing changes.
Isn't it a categorical imperative that Apple products out of the box? Surely, this brazen neglect of duty deserves a strong talking to.