While you may be looking for same, I have seen similar with old batteries and failures in motherboards and chargers. But here we are without details. If the battery is over 2 years I pop in a new battery. Folk wish batteries last longer all the time.
How about some details?
I am having a strange issue with my laptop, and I have not been able to find anyone with a similar problem. So here it goes: When the battery is in the laptop, the computer does not realize that it is plugged in. I plug it in, but it does not realize that it is plugged in and shows battery only. When I disconnect that battery, however, it works just fine. It works perfectly with the battery removed, but with the battery connected the laptop doesn't realize that it's plugged in. What might this be?
Thanks.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic