Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Thunderbolt disconnects when MacBook sleeps

My Thunderbolt display was working flawlessly until I upgraded my 2012 15" MBP to OS X 10.9. Now, when the MBP goes to sleep the display will not wake, the MBP wakes fine. The USB drive plugged into the back of the display is disconnected as well.

I have to unplug the thunderbolt cable and plug it back in.


Do you know what might be causing this? Any solutions?

Thank you!

MacBook Pro, OS X Mavericks (10.9)

Posted on Oct 26, 2013 3:56 AM

Reply
116 replies

Dec 20, 2013 10:42 AM in response to nicosen

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.

Dec 23, 2013 4:17 PM in response to nicosen

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?

Dec 23, 2013 6:08 PM in response to skiphunt

So far, the only downside, for me at least, is the declining faith in:

  1. Apple's testing capabilities,
  2. 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
  3. 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.

Dec 27, 2013 5:12 AM in response to riflores

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.

Dec 27, 2013 7:18 AM in response to g8k3pr

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. 🙂

Dec 27, 2013 8:37 AM in response to skiphunt

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:


https://dl.dropboxusercontent.com/u/2534919/SetSleepMode%20AppleScript.zip


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!


Stuart

Dec 30, 2013 7:26 PM in response to nicosen

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.

Jan 12, 2014 5:46 AM in response to nicosen

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!

Thunderbolt disconnects when MacBook sleeps

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