Same problem (charging / not charging) with my laptop. It charges when the laptop is off. However, when I turn on, and the ac adapter is plugged, the problem begin: charging, and few seconds after, not charging (this process repeats forever =/).
I have updated BIOS driver and changed the battery...