Pretty sure this has been resolved since it's so old.
I have a cat that likes to sit on my keyboard when I'm not around and she somehow gets into the power settings and checks the box beside "Disable Battery Charging".
I uncheck this setting and the battery charges fine.
Hope this helps...