For me, it was a simple matter of changing the adapter.
I changed my power adapter for charging, and the problem went away immediately.
I assume it was the result of either drawing too much power, or not enough to charge the phone.
Anyway, try that before you go hacking your phone apart...