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.

iMac with Lion not waking after overnight sleep

Since upgrading to Lion a few days ago, my iMac (2010) won't wake up with magic keypad swipe, button press, spacebar or any other key. Works fine and wakes fine when used periodically during the day, but is locked tight upon first use in the AM. The only thing that works is a hard power off and reboot. Any thoughts? Thanks!

iMac, Mac OS X (10.7)

Posted on Jul 22, 2011 11:49 AM

Reply
265 replies

Oct 3, 2011 12:03 PM in response to Hansch

default hibernatemode is 3.

you don't need a (backup) copy on your disk ("sleepimage", which is a 1:1 copy of your Ram, 4 GBor 8GB or whatever you have).

Set hibernatemode to 0, and delete the sleepimage on your disk: much faster sleep and wake, and more space on your disk:

  • 0 - Old style sleep mode, with RAM powered on while sleeping, safe sleep disabled, and super-fast wake.
  • 1 - Hibernation mode, with RAM contents written to disk, system totally shut down while “sleeping,” and slower wake up, due to reading the contents of RAM off the hard drive.
  • 3 - The default mode on machines introduced since about fall 2005. RAM is powered on while sleeping, but RAM contents are also written to disk before sleeping. In the event of total power loss, the system enters hibernation mode automatically.
  • 5 - This is the same as mode 1, but it’s for those using secure virtual memory (in System Preferences -> Security).
  • 7 - This is the same as mode 3, but it’s for those using secure virtual memory.

Oct 3, 2011 4:54 PM in response to Techworld Services

Upgrade. But I have mixed results. If you search this thread, you'll see my previous posts. In nutshell, same experience as everyone else. I have bluetooth keyboard, magic mouse, (no trackpad). Mac goes to sleep and will not wake unless I hit the power button or plug in a usb keyboard. But, this does not happen all the time. I've tried all the fixes and have had different results, sometimes no change. I can go 2, 3 weeks with no issues. Then it will happen to nights in a row. Sometimes after a few hours. No weird setup, no unsupported third party apps. All ran fine in snow leopard. I wonder if it has to do with the hibernation mode as some else stated. I just read that lion handles this much different than snow leopard especially with the new features of lion. I just turned hibernation off and deleted the file. I'll reboot and see what happens.

Oct 3, 2011 11:41 PM in response to Lexiepex

Thank you for your explanation.


I set the hibernation mode to 1 and my (wifes) iMac needed some more time to wake-up this morning indeed (just like me), but the mouse, keyboard and trackpad were connected. So it seems to work well as a work-around. But I really hope that Apple wil come with a fix on short notice (as we all do).


I just wondered why you delete the sleepfile. I read that it is created everytime you computer goes to sleep.

Oct 4, 2011 12:39 AM in response to Hansch

hibernation 1 or 3 make no difference for the wakeup problem

3 which is the default, save the memory on disk and freeze the system but leaves BT on to sense the Keyboard/Mouse wakeup events. The reason to save on disk is because in case of powercut during sleep the system wake up reading the sleepimage file and return in consistent state.

Having 0 mens that if you loose power you will have your system off without any graceful procedure as you unplug the power cord.

Set to 1 means that the memory is written on disk and the system goes on power off state , BT power is disconnected.

The real reason for this workaround to work is because at every sleep you force an hw reset (ie poweroff the whole system).

Oct 4, 2011 12:36 PM in response to ziozanna

I disagree, the differences are explained above.

1 means nothing: sleep will be the same as shutdown, 0 means sleep without sleepimage.

If you suddenly loose power there is no difference between 0, 1, etc because data are lost and no file is written. If you want to "force" a hardware reset simply choose "shurdown" and you have a reset and hardware diagnosis. If you want sleep choose sleep.

Oct 4, 2011 1:03 PM in response to Lexiepex

I'm not an english spoken, i'm italian but i shuold sense The differenze between this 2 sentences


0 - Old style sleep mode, with RAM powered on while sleeping, safe sleep disabled, and super-fast wake.

1 - Hibernation mode, with RAM contents written to disk, system totally shut down while “sleeping,” and slower wake up, due to reading the contents of RAM off the hard drive.


Shutdown IS an init script that kills all processes and daemon in a predefined sequences than halt the kernel and poweroff the system.


You should disagree The ovbious but is up to you. For my little esperience on unix systems The comma 1 - hiberanation means something different than shutdown.


About loose power , try first.


cheers

Oct 5, 2011 12:39 AM in response to ziozanna

off/topic:

my excuses for the other readers, because we are off/topic and not ending this - already too long thread - by having a "private" discussion.

ziozanna: I am not quite understanding also: I don't speak italian. My argument wass that having the hibernatemode at 1 serves nothing: offcourse there is a difference between 0 and 1, and I wrote it down.

My argument is that it has no sense, why would you want a sleepimage file? If you end the session without problems you don't need a sleepimage. And in my opinion, if you end a session without problems with the sleep command, you don't need a sleepimage either, because the ram status is saved in the ram itself.

This sleepimage takes time to write/ an read, and serves to nothing. Hibernatemode 1 does not have any sense: either set the hibernatemode to 3 or set it to 0.

Closing off now, this thread.

Thanks for your patience

Oct 5, 2011 4:42 PM in response to Lexiepex

Hi

Can I just ask..

What is the recommended procedure to follow after you have had to physically turn off your computer by force - ie. hold in the power button for 4 seconds as the mouse keyboard trackpad bluetooth and rj45 internet connection are alll not responding any more ;-) ie. this problem!


What I mean exactly is following the lock up - is there a recommended procedure to check out if your disk is corrupted or ok etc?


I know if I was on windows I would schedule a checkdisk etc.


I suppose on the mac - running Disk Utility - repair permissions is similair???


Anyone got a procedure or best practice?


I hate pulling the plug but this problem forces it!


Also - does no one from apple read these threads and offer to look into the problem?


This thread is running at 9 pages and counting now after all..

Oct 6, 2011 12:50 AM in response to Techworld Services

off/topic (I think):

Hi Techworld, if you shutdown by keeping the on/off button pressed, you loose perhaps some data of the running apps (like in Windows), but when the hardware is good, nothing else.

There is a hardware diagnostics when you start up (see the result in System Profiler in the first few lines) everytime you start up after a shutdown; like chkdsk etc (nowadays it is the "smart disk" sys).

Repair permissions is "old hat" and is not necessary to do, only when you have changed hardware, like a disk, or repaired or restored from a clone; but it does not harm anything (it is something from the OS Tiger period I believe).

It is difficult sometimes to force yourself to not do what is necessary in Windows, like antivirus apps, defrag, clean etc: this is all built-in in OSX. Example: there are daily/weekly/monthly cleanups, security built in in the OS, "defrag" built in in the OS etcetera. If you want to "delve" into the system a bit more use Onyx a very handy utility for testing cleaning setting hidden parameters etc. Keep away from all other things like "antivirus" etcetera because they can cause trouble and do nothing for you. Malware scanning only with the ClamXav app, but do not set "sentry" (it is not evenposssible to use in the app when downloaded fron the Appstore).

Lastly, this forum is not Apple, it may or may not that the posts are read by Apple, I do not know.

Normally I leave threads that are to long, because it is getting off the problem solving often...

Oct 10, 2011 6:56 AM in response to Eggtart

I can report back that in my case... my iMac has been behaving properly and has woken every time in the past week. It would usually lock after a day or less..

This is the first time since upgrading to Lion that I can say this..


What did I do?


I disconnected my Trackpad..


Now I know that a lot of poeple out there do not even have trackpads and yet have this same problem so I am not going to say that is what it was... I just hope it helps someone.. It is not a cure though - my iMac is still broken as far as I am concerned..


Heres hoping this weeks expected Lion update for iCloud will have a fix.. Will report back after the event - I will enable my touchpad especially for the occasion ;-)


Apple - come on - fix this problem!

iMac with Lion not waking after overnight sleep

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