Additional info, the machine works fine from a "shallow sleep", but not when hibernating.
I changed the hibernate mode to RAM only with:
sudo pmset -a hibernatemode 0
and it seems to wake from sleep fine. Of course, this risks running the battery down since the contents of memory aren't saving safely out to disk, so it's not a long-term acceptable solution.
I have instaled "SmartSleep" app and change hibernate settings to sleep only. I Think it has the same effect of your command. My Imac 27 is working better without freezing.
I had the same issue when i did the upgrade from Snow Leopard to Lion and used the same software. When I returned to sleep+hibernate everything was fixed.
I think there is something corrupted in /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist when you upgrade.
My pmset -g output is:
AC Power -1*
Currently in use:
So, after I confirmed that worked, I wanted to test more variables, so I set hibernate mode back to 3 (safe sleep, save to RAM and disk).
And the issue has gone away for me! At least for now, for a few hours of playing, sleeping, letting it sit on both power and disconnected.
I will update this ticket again if the issue creeps back.
Well, Jeff. Changing the hibernate mode is a pretty well-documented and "safe" thing to do. There are lots of instructions online that will step you through it, only takes 10 seconds and may well solve your problem.
Theory in this thread from ellisonjay that the hibernatemode is also a culprit for him.
I really wish I'd checked to see what my hibernatemode was set to when I was having problems before I manually reset it. But this simple fix has been working for a couple days now, so I'm pretty optimistic it was related to those pm settings.
This should help you Jeff:
`man pmset` at the terminal.
"We do not recommend modifying hibernation settings. Any changes you make are not supported. If you choose to do so anyway, we recommend using one of these three settings. For your sake and mine, please don't use anything other 0, 3, or 25.
hibernatemode = 0 (binary 0000) by default on supported desktops. The sys- tem will not back memory up to persistent storage. The system must wake from the contents of memory; the system will lose context on power loss. This is, historically, plain old sleep.
hibernatemode = 3 (binary 0011) by default on supported portables. The system will store a copy of memory to persistent storage (the disk), and will power memory during sleep. The system will wake from memory, unless a power loss forces it to restore from disk image.
hibernatemode = 25 (binary 0001 1001) is only settable via pmset. The sys- tem will store a copy of memory to persistent storage (the disk), and will remove power to memory. The system will restore from disk image. If you want "hibernation" - slower sleeps, slower wakes, and better battery life, you should use this setting."
[repost from: https://discussions.apple.com/message/19084237]
I am having a similar issue. At first, my alarm clock 2 application would not wake the Mac from sleep. Help desk had me reset the computer and RAM, and then it worked. Now my keyboard will not wake the Mac from sleep, only my mouse. Please let us know if there is a fix for this, it is very frustrating.
Yep, I have a similar issue but with an added twist which is that my 2011 MBA seems to also wake itself up occasionally since I upgraded to Mountain Lion.
Several times now I have put it to sleep (either by closing the lid or selecting 'sleep') and waited for the lights to go out and everything quiet. Then I open my bag some hours later to find it red hot and fans going like crazy. If I then open the lid, the machine does not come back up fully. Maybe I see the mouse cursor but nothing else. Then I need to hold the power button until it goes off again.
Taking a look with pmset I see that hibernate mode is set to 5. I have never modified this, so this is how my machine came. Interestingly this is not one of the values described as 'recommended' by Ellisonjay and is allegedly not the default shipped value for this machine (should be 3).
According to this article:
Mode 5 is fully hibernated mode (no power to RAM) which for a machine with SSD seems to make sense as the time penalty of reading back from SSD should be not so large.
So, yes, I want hibernate mode to work but, in the meantime, I hope mode 3 will at least stop my machine from waking up and frying itself inside it's case.
Interestingly, my iMac is sleeping "deeper" than ever, it's just hard to wake it up! I sleep next to my computer, and it seems like it's doing a better job of turning off my external hard drive (set on auto mode) and is quieter throughout the night. It's just really hard to wake it up, and when I do, the clock is wrong for about 10 seconds while it is waking up.
Just a quick follow up.
I've now changed hibernatemode from 5 to 25 and, so far, it works just fine.
So, this is just going directly into full hibernation (no power to RAM). This is the behaviour I have always had with my MBA since out of the box. For an SSD based system, I don't see the need for anything more complicated than that. It's the most power efficient and resume time from hibernation is just 3-4 seconds for me anyway.