MacBook graphic corruption when disconnecting/reconnecting USB-C monitor whilst sleeping

Originator:andy
Number:rdar://30114640 Date Originated:2016-01-20
Status:Open Resolved:
Product:macOS Product Version:10.12.2
Classification: Reproducible:
 
I am using a MacBook Pro late 2016 on a desk, closed,with an external USB-C monitor. If I choose to disconnect the USB-C monitor (the Apple-preferred LG UltraFine model) whilst the MacBook is sleeping, when waking the MacBook up later the graphics will either be corrupted (glitchy, unstable) or show the wrong screen/space and be unusable.

Steps to Reproduce:
1. Whilst MacBook is closed and sleeping (not powered off) connect USB-C display

OR

1. Connect USB-C display to MacBook Pro
2. Sleep MacBook Pro
3. Disconnect USB-C display whilst sleeping

Expected Results:
On wake the Mac should respond to the current state and present the OS as configured across available display(s).

Actual Results:
The MacBook will show either glitch graphics (small elements of screen repeatedly redraw over each other on any significant mouse movement etc.) or a darkened version of the desktop is seen, as if it's showing a secondary monitors output. I've yet to find a way of getting out of this environment.

Version:
10.12.2

Notes:
Whenever the Mac ends up in this state I have to do a full power cycle of the MacBook to recover. I have developed a workaround since finding out how to reliable reproduce - I ensure the Mac is always awake and open before connecting/disconnecting a display.

Configuration:
macOS Sierra 10.12.2
LG UltraFine 4K

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!