Macbook Pro A1502 Early 2015 16GB 480GB SSD

So, when it is disconnected from the external monitor it freezes or gives a blank screen (shown). But when connected to an external hdmi cable to monitor, works well.

eBay