It's possible that being plugged in and charging for 5 months straight "overcharged" the battery, slowly killing it over time. You may need a new battery. You're better off letting the battery drain ocassionally and then recharging it, than having it always plugged in. Just a thought.