Day 2 and success, this time with 6-hours of sleep followed by instant wake-up.
The 6 Terminal commands set I assembled together (see my last post) seems to have worked--for me at least. If you decide to apply them, I strongly suggest you apply all 6 of them and in that order.
If day 3 (tonight) brings success as well, I'll follow-up post one last time.
My only "huh" comes from wondering why, with all the brainpower at Apple, how they couldn't come up with this.
I ran these two days ago and so far I have not experienced the issue any longer. This might be promissing. I have a rMBP with Thunderbolt display and several USB devices running off the monitor USB ports. I have so far tested with machine plugged, unplugged, lid closed, open and extended periods of sleep (overnight) with good resuts. Thanks for the post!
Well it was definitely a group effort. Someone else suggested the pmset commands as did someone else suggest the page that detailed their use. All I did was to assemble them in a logical order that made sense...and then hope.
I am on day 3 now without problems. I hope to hear from others too. There looks to be 3 of us (including me) so far.
Also, something to note that should be obvious--if one ever does a power management reset either by using a utility like Mountain Lion Cache Cleaner, or manually, by shutting down and then holding down the shift-control-option-power buttons--everything will once again default back to the original settings, thus requiring another reset using this "coctail" of pmset commands once again. I know this just now as I did this using Mountain Lion Cache Cleaner.
I really was at my wits end and honestly was not looking forward to exchanging my MBPr with a new one--not at all. Worse yet, I was actually going to hold out as long as possible so that when I did do so, I'd get the next iteration of this model rather than just a switch-out to the same one. Worst case scenario, sell this to Gazelle and use the money toward a replacement/upgrade.
There definitely does seem to be a disconnect--or worse, a compartmentalization--between the engineers and the AppleCare/technical support staff, and it's not exactly good to witness the AppleCare staff being shown up like this.
I too decided to run these prompts too after taking my mbp to Apple a few days ago and them saying that I can send it out and they can run a plethora of diagnostics on the hardware to see if anything is wrong. Things have been running smooth as of now, but its only been 6 hours, which the mbp has only been asleep for 3, will keep you guys updated on how it goes, but from the rest of you, it seems very promising! Thank You very much Summer Storn for posting this find!
Day 4: Closed my MacBook Pro 15-inch "Retina" last night and 6-hours plus later, I opened it up. It instantly woke up and was not "groggy" at all.--going right to the log-in screen.
Anyone else who is testing, please let us know of your succeess and/or failures.
By the way, for newcomers who do not want to scroll back and search for this set of Terminal commands, here they are:
sudo pmset -a hibernatemode 3
sudo pmset -a autopoweroff 0
sudo pmset -a autopoweroffdelay 36000
sudo pmset -a standby 0
sudo pmset -a standbydelay 36000
sudo pmset -a acwake 0
(The 36000 represents 10-hours in seconds and can be adjusted to your preference)
To check to be sure they applied correctly:
I usually don't put my Retina MacBook Pro in to sleep mode, but when I do, I would notice that it would take some time to start-up again (~10 seconds).
After running the Terminal commands, I no longer experience this "lag time" to wake-up. I have no idea what the commands do, but they seem to work for me. Really nice job!
@jstefanop: very good analysis!
To set a few checked points clearly:
- black screen after wake up isn't related to any external display;
- is not limited to Retina;
- is not coming of any file corruption;
- not solved by any sort of system install.
It looks like a simple logic problem. Suggesting customers to reinstall a system is just…
It seems like the pmset commands work, but I don't see this as a real solution for the problem.
If I understand these commands correctly, they disable standby (hibernation after sleep mode, which writes the memory to disk and powers off the memory) and autopoweroff. Setting the standbydelay and autopoweroffdelay in these commands should not have any effect, as you disable them in the commands before anyway.
No wonder that the Macbooks wake up very fast now, as they keep the memory alive and don't hibernate to the disk anymore, but they also use more battery during sleep this way.
It's a nice workaround and should work for all of us I suppose, but the problem still exists.
By the way: I only had the problem of not waking up when the charger was connected, so I used these commands with -c instead of -a, which only applies when the charger is connected. Worked fine for me.
@Summer: if you confirm your sequence of pmset kills this bug of [...secret word under NDA], then you should be carefull not to use
System Preferences > Energy Saver
since it may corrupt again the settings saved within the SMC.
If you have a chance to reproduce the initial bug, it would be a very good point to catch what
Then you will be able to compare to the settings you entered through a Terminal and see where
the error is.
Hmm, im now having another issue that seemed to arise sometime this week. I use the laptop moderately at night. I'd say from 8PM-Midnight, so about 4 hours straight. After about 2-3 hours the mbp literally will randomly freeze. Now im not talking about lagging, i mean full blown frozen, doesn't respond to anything. Have to power cycle the laptop and everything will go fine, but then once again the next day it will happen again.
Has anyone tried running the pmset cmds and let it set for more than 10 hours? It looks like all you're doing is telling it not to sleep or standby for 10 hours, all it's doing is blanking the screen. This doesn't really fix anything so you may as well just set the energy saver setting to never sleep.