Currently Being ModeratedNov 17, 2011 3:50 PM (in response to Builder1)
I had this problem with my MacBook Pro for a long time, and fixed it by changing the sleep mode. Here's how:
Type the following:
pmset -g | grep hibernatemode
It should say something like:
Here's an explanation of the different types of hibernate modes:
- 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.
To change your sleep mode, use the following command:
sudo pmset -a hibernatemode 0
(replace 0 with whatever hibernate mode you desire)
For my MacBook Pro, I changed it to 0, and it works great. It's super fast to wake and sleep, which is a plus. The only downside of hibernatemode 0 is that if your battery runs out your computer doesn't hibernate - it shuts off. This doesn't matter, though, because with Lion everything is autosaved, so really hibernate 0 is all plusses.
Currently Being ModeratedNov 17, 2011 5:08 PM (in response to gbrenik)
Thank you for the quick response. I was typing the command you suggested into the terminal and got a warning that using sudo could result in data loss so I chickend-out! Is that something I sould be worried about?
Currently Being ModeratedNov 17, 2011 5:58 PM (in response to gbrenik)
Thanks again, I have made your suggested changes! I just did a few tests and set the MBP to sleep after 5 minutes. It has woke 3 times in a row with no problem. Since the problem has always occoured randomly I cant say for sure its fixed (time will tell) but this is a very good sign that you may have fixed my issue! Thank you
Currently Being ModeratedNov 17, 2011 7:12 PM (in response to Builder1)
So the computer is randomly going to sleep while in use? I have the same problem but I'm on 10.6.8. It goes black, sleep light comes on, press random key, wakes back up but goes right black to sleep...eventually it shuts off or screen stays black with solid white light. The only solution left for me is to reinstall the OS...but I'm a bit afraid of doing that. If that doesn't fix the problem then I don't what it is...probably hardware.
Currently Being ModeratedNov 17, 2011 7:21 PM (in response to greyskiesblack)
My computer is not going to sleep while in use. It goes to sleep when not in use (as it should) but if it falls to sleep with the lid open (rather than me shutting the lid) and power cord is plugged in, It sometrimes will not wake up. The keyboard lights come on but the display does not wake. I am forced to hold the power button down to restart. (This does not happen when on battery power. On battery power sleep and wake up functions work perfectly). As of now, even Apple cannot figure this out.
Currently Being ModeratedDec 6, 2011 2:37 PM (in response to vrock)
I can't say I have solved it yet, As of last night the problem still presists and for the first time that I know of, the incident happend while on battery power. Every other time it has happened while plugged it. To avoid the problem while plugged in, I just set sleep to "never" while plugged in. When it happend on battery power last night, I started searching for answeres again. I found a suggestion on another forum to delete iStat Pro (which I happen to have). I deleted it and so far it has not happened again. Thats not to say it is solved, I have thought it was fixed before and a day or two later it is back. We'll see.
PS- I am running 10.7.2. I never had this problem until shortly after upgrading to lion. Not sure if they are related, I have an iMac running all the same software versions, including iStat and I never have problems with sleep on the iMac.
Currently Being ModeratedDec 6, 2011 2:42 PM (in response to Builder1)
I believe I have had this problem while on battery power but not entirely sure - now I need to monitor it quite closely. I don't think I had it to begin with when I bought my mac in April. I feel like I have started to become aware of it in the last few months. Do you get freezing too? Sometimes when the screen finally starts up I don't have a mouse or cursor and I can't scroll with the trackpad at all. Not sure if the two are related. I don't have iStat pro so this can't be the problem. I'm not sure which Big Cat I'm on but its not lion is it (I hate this cat thing!)?
Thanks for coming back so quick .
Currently Being ModeratedDec 6, 2011 2:51 PM (in response to vrock)
I got my MBP in July 2010. For the first full year, it ran great with no issues at all with Snow Leopard, but all my issues started this summer shortly after the lion install. Not much freezing, mainly this sleep issue...
Currently Being ModeratedDec 7, 2011 11:48 AM (in response to Builder1)
MBP 17" bought in august 2011 so it came with Lion already installed.
Never a problem with sleep.
Last week they had to change the motherboard because of a problem w/ the 1/8 audio plug.
Since i got it back, i've had the exact same problem you have.
Spent all day trying to figure this out.
I prefered it when apple stuff worked for me...not the other way around.
Currently Being ModeratedDec 7, 2011 12:23 PM (in response to MartinMBP)
I unchecked the "require password after sleep or screensaver begins" (security & privacy) and the computer wakes like a charm.
Still, i DO want to use password for wake so the problem is not solved.
I dont know how it's related but since the problem started i also loose my wi-fi connection everytime sleep occurs.