It might be a connection problem between the battery and the adapter. Whenever your laptop tries to charge the battery, the battery is not going charged, and your laptop thinks there is no battery and it is simply running on power.