How to fix a Macbook that does not always draw its internal screen after waking from sleep and having unplugged external display while asleep?
Solution 1:
In my experience, any Mac can be a little glitchy when waking from sleep out of "clamshell mode." Likely what is happening is that when you unplug the MagSafe and Thunderbolt connections from the MacBook Pro, it is waking up. Then the System Management Controller (SMC) gets confused because your Mac is trying to wake up but it's lid is closed (and the sensor is telling it) which usually means that you want your Mac to be asleep (because you don't have an external display or mouse/keyboard hooked up.) What often ends up happening is the Mac is "awake" but the display is "asleep."
Follow these procedures and you SHOULD get consistent behavior...
- wake up the MBPro by opening the lid
- unplug all your cables and make sure it was fully woke up
- then put it back to sleep by closing lid and/or carry to your desired destination.
Additionally, since you have setup remote login (via SSH) you could try telling the Mac to go to sleep via command line, wait 20 seconds, and then wake it up againe (open the lid/press a key on the keyboard.) This webpage describes the procedure:
http://osxdaily.com/2012/03/14/remotely-sleep-mac/
HTH
Solution 2:
I would pay attention to two factors:
1) Do you have an external keyboard attached?
2) The power situation - how/when sleep happens is affected by this
3) If the lid is closed at the time you move the mac.
A couple of examples will help illustrate this:
Recently I found that my external keyboard was not waking up the closed lid mac as I thought it should. I found that this was because the power was unplugged and the 'lid closed' operation only worked with the power actually plugged in.
As another example I found that when my computer was asleep, in order to wake it up - without opening the lid! - the trick was to plug an external keyboard/mouse in and hit a key / move the mouse. This then took the mac out of sleep (though again that may depend on whether you have power plugged in or not).
Solution 3:
I was having strange issues with my external monitor when waking my iMac from sleep. I reset my PRAM/NVRAM and it seems to have solved the issue (at least it hasn't come back in the week since I reset the PRAM/NVRAM).
Resetting PRAM and NVRAM instructions from http://support.apple.com/kb/HT1379
- Shut down the computer.
- Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
- Turn on the computer.
- Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
- Hold the keys down until the computer restarts and you hear the startup sound for the second time.
- Release the keys.
Solution 4:
By any chance are you running gfxCardStatus? (I've had similar issues with my non-Retina MBP recently, and that's the only thing I can think of that I've installed in the past couple of weeks.)
If not, did you use Migration Assistant to setup this machine? Or did you set it up as a bare machine and manually reinstall apps and preferences?
I would look for extensions and other items that may not be compatible with the Retina-MBP hardware. Turn everything off and turn them on one-by-one, testing this issue each time.
Solution 5:
I have this problem constantly. It's hit-or miss. One way I found that works is I use Alfred and just tell it to sleep before I unplug. If the mac goes into normal sleep mode, unplugging will not cause issues. Actually I forgot -- "Apple" menu -> sleep should do the trick without Alfred.
Another possibility is to open the lid, wait for it to switch to dual monitor mode, unplug monitor, wait for it to switch to single monitor mode, close lid. This guarantees it will resume normally.