I had a similar issue. I just replaced the fan (connected to the heatsink) thinking that was the problem. But it still did the same, laptop shuts off when plugged in. I checked adapter, tried disabling processor in safe mode, tried taking out the battery while plugged in - the issue was still...