I've been battling this problem for over a month. Nothing has worked and I'm on my 3rd thunderbolt display. Apple support suggested I restart in recovery mode, repair disk & permissions. I thought this worked but it only lasted for a couple days before it came back. I'm running 10.9.1 and that didn't solve it either.
Just tried this yesterday. pmset yesterday morning. So are, so good.
Well, at the risk of jinxing it... it's now been 5 days since I did the pmset to 0, and have had no problems at all. As a matter of fact, I was having a second problem as well, that the power port wasn't always recognizing and lighting up to charge until I'd plug and unplug the magsafe 2 a couple times.
After the pmset to 0, that problems went away as well. YES!!!
Does anyone know of any potential downsides of having the pmset to 0?
So far, the only downside, for me at least, is the declining faith in:
- Apple's testing capabilities,
- Apple's Release management (the solution seems very, very simple and trivial - how hard is it to implement it in 10.9.x?), and finally
- Apple's customer relations. It's their tendency to be so isolated from the end users (one thing Microsoft is better than Apple - is their transparency when a known defect exists - they would just say it on the MS website so no need to guess if you're doing something wrong if there is a bug).
Lessons learned: after a major release, go to Apple's forums to see what people struggle with and... wait for the 2 minor releases down the road. BTW, I can tell you now what the issues will be next: WiFi and sleep... as always.
Good luck everyone.
Well, I suspected that the problem was with sleep mode set to 3 (the default) because of the way it stores a backup copy of memory contents to disk in that mode. And, since most new Macbook Pro/Air computers now come with Flash storage by default, there is very little time delay with reading and writing that information from/to disk. However, with an older Macbook Pro, which does have a normal hard drive (mine is a 750 GB 7200rpm disk), they must have changed something in Mavericks with respect to the timing and disk access. It is for this reason, I hypothesize that setting the sleep mode to 0 helps. I say this because by taking the disk access out of the picture, it seems to remedy the issue (even if it is just backing up memory contents in mode set to 3). And while this is fine for when I use my MBP as a desktop machine attached to my TBD and always plugged into power, it may not be the best solution when I'm on the road. It's for this reason I'll tend to set it back to 3 or 25 (Hibernate mode) for peak battery performance when using it as a laptop.
You can view the man page for pmset here but the main explanation of each of the three main settings from the Apple site man page follows:
- hibernatemode = 0 (binary 0000) by default on supported desktops. The system 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 system 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.
Hope that helps explains things.
Thank you so much for sharing this! I took back 3 different TBDs, made one trip to the "genius" bar, and another long phone support call. I was ready to believe BestBuy that the problem was my MBP's graphic card that had just gone out of warranty. The pmset has solved ALL of my problems for over a week now.
Apple should give you some props, or a cookie, or something dang it!. Also, would be cool if there was a simple app to quickly change the pmsetting without having to copy/remember the string. I'd gladly pay for that since I'd like to quickly set to 25 when traveling and not using my TBD.
Thanks again for sharing your findings on this and saving me any more unnecessary aggravation.
Your very welcome. Believe me, I too struggled with this issue for many weeks before coming up with this solution. And, your wish for an app is my command and it's free
You can download a quick little Applescript Application called SetSleepMode. You can download the zip archive containing the app and script here:
that I wrote (complete with AppleScript source) that you can run anytime you need to change the sleep mode. It's simple but effective. Once you launch the app, it will ask for your password so it can execute "pmset" command using sudo. After it runs the command with the selected mode, you are all set. I have confirmed it works by calling "pmset -g" from the command line to verify the "hibernatemode" is set to the selected value I chose. Enjoy!
Thanks g8k3pr!! You are truly a life saver. I have returned by TBD to Best Buy 3 times over the Christmas holiday and no one could solve the problem. Not only did you come up with a solution, you also created a trusted app to solve the problem. I just used the app and problem fixed!!!
Can't thank you enough!!
Have a great Holiday Season.
So after you run this script, is there anything else that needs to be done? I've tried reconnecting and restarting. I've tried completely unplugging the display. I've tried unplugging and replugging the Thunderbolt cable. My display still won't wake up when my air is plugged into it. I did run script and set to 0.
Thanks for everyone's contributions regarding this issue.
We have two Mid 2012 MBA's in our household which were running ML. On either MBA we would use a Monoprice TB to HDMI adapter plugged into our Sony LCD to view BR movies and stream content via an extended desktop setup.
Once we upgraded to Mavericks we were no longer to do this on either MBA. Post upgrade if we plugged in this same cable arrangement into any of the 3 HMDI inputs on our TV, the TV would not even recognize anything was plugged in which to me signified the TB port was somehow asleep/off.
Like many I tried different accounts/SMC reset/etc. I did run the hibernation 0 script but this did not completely resolve my problem.
Now when I plug this setup in my TV does recognize a source! Yay! My MBA screen also "flickers" like it's trying to switch. However my TV does not detect any signal nor do I get the standard extended display background on my TV like we used to Pre-Mavericks. There are no additional displays shown under Display Settings and I have tried checking/unchecking "Displays have seperate spaces" under Mission Control settings to no avail.
I've tried different HDMI cables (though I just have the one TB to HDMI adapter), however I find it hard to believe the issue lies in anything other than our MBA's.
Thanks for your suggestions!