Macbook hangs when removing HDMI cable

hanghardwarehdmiscreen

I have a very frustrating problem: when I remove the HDMI cable from my MacBook Pro (i.e. to disconnect my external monitor, and move about with the laptop), the screen just refuses to wake up when I open the lid. It doesn't react to the keyboard or mouse. It's a 2014 model, 13" Retina with Integrated Graphics.

What can I do to solve this problem of the MacBook hanging?

It goes via an HDMI -> DVI adapter, in case that's relevant.

enter image description here

Best Answer

Reverting to El Capitan fixed the problem for me with a mid 2014 rMBP, so it sounds like a Sierra bug. Hoping that the 10.12.4 release fixes it.