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 8, 2013 8:11 AM in response to nicosen

Hello again everyone,


I think I might have a found a solution, like Braden Brook said, it has to do with the usb ports at the back.

I was browsing through the system setting and found that there is an option for turning off devices attached to the usb ports, I'm guessing this includes the ones at the back of the Display as well.


So I went on setting the "turn off" feature for the usb ports as "never". So in theory the current that's keeping on all the usb devices should never stop, consequently preserving the connection between the macbook and the display.


This is also the reason why when waking up the macbook it would say that devices where unsafely disconnected.


The option for this can be found in energy settings, and turning off the "put hard disks to sleep when possible". I did this for both power and battery, as when i go to sleep i usually disconnect the power of the macbook pro.


Hopefully this will work and thank you all for the replies! 😀

Dec 8, 2013 8:32 AM in response to g8k3pr

You go in System Preferences, then Energy Saver.


In there you will find two tabs, one for Battery and one for Power Adapter (when plugged in power supply).


You should see that under the two scrolling bars for sleep there are two tick boxes, you can ignore the second one. But by unticking the first one, it means power will not be stopped from going to the hard drives.


I was a bit unsure at first as i thought this applied only to the macbook pro hard drive, but it's plural on there, then i assumed that included also external hard drives.


I hope this clarified your question 🙂

Dec 8, 2013 9:38 AM in response to riflores

Well I just found out this now so i guess by tomorrow morning i will be sure if this actually works.


This is strange because when i disconnect the power from the mbp (while it's still connected to the display) it will go to sleep. Then when i put the power back in the macbook and press a key on an external keyboard it will wake up normally.


However, I realised that when left overnight the display would just disconnect. That's why i assumed it might have been that hard drive option that i just unticked.


The best way to know is to just try it 🙂

Dec 15, 2013 2:06 PM in response to nicosen

Hi all,


I finally figured out how to remedy this issue.


It has to do with the hibernate mode setting for the computer. By default, this is set to 3. For an explanation of what this here is the output from the pmset man page below. Long story short, I used pmset to set my hibernate mode to 0, which writes the machine state to ram for regular sleep mode. Since doing this, I have had no issues with the waking the computer and getting my Thunderbolt display back. To do this enter the following command in a terminal window


sudo pmset -a hibernatemode 0


To go back to the default, just replace the 0 with a 3.

Man Page output for pmset:


hibernatemode takes a bitfield argument defining SafeSleep behavior. Passing 0 dis-
ables SafeSleep altogether, forcing the computer into a regular sleep.


0000 0001 (bit 0) enables hibernation; causes OS X to write memory state to hiberna-
tion image at sleep time. On wake (without bit 1 set) OS X will resume from the
hibernation image. Bit 0 set (without bit 1 set) causes OS X to write memory state
and immediately hibernate at sleep time.


0000 0010 (bit 1), in conjunction with bit 0, causes OS X to maintain system state in
memory and leave system power on until battery level drops below a near empty thresh-
old (This enables quicker wakeup from memory while battery power is available). Upon
nearly emptying the battery, OS X shuts off all system power and hibernates; on wake
the system will resume from hibernation image, not from memory.


0000 1000 (bit 3) encourages the dynamic pager to page out inactive pages prior to
hibernation, for a smaller memory footprint.


0001 0000 (bit 4) encourages the dynamic pager to page out more aggressively prior to
hibernation, for a smaller memory footprint.


We do not recommend modifying hibernation settings. Any changes you make are not sup-
ported. If you choose to do so anyway, we recommend using one of these three set-
tings. 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 system will not
back memory up to persistent storage. The system must wake from the contents of mem-
ory; 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.


Please note that hibernatefile may only point to a file located on the root volume.

Dec 19, 2013 5:13 PM in response to g8k3pr

g8k2pr, it's been several days since I applied your suggestion and your solution still works and if I could I would give you the "This solved my question", but it's disabled for some reason. Thanks a lot!


P.S. Anyone tried to upgrade to 10.9.1? Did it fix it, made it worse? In the description of the update, I didn't see anything about the sleep issues. So, I'll wait for the 10.9.2. Had enough frustrations with the orginal upgrade.

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.