I am seeing similar on a non-rooted phone. Restored the software and no improvement.
The only time I seem to be able to charge is connected to a Windows computer that does not have a valid driver installed or from the USB port in my car stereo.
Either I see it cycling between connected/not...