When it turns on, turn it off and keep it plugged.
It has happened once with my tablet when the power its getting was less than the power needed to keep it running. I let it turn on, I turned it off and kept it plugged for about an hour and then I used it.