How old are the batteries? After 2 years, nothing is assured and I have run into fried power supplies when a failed battery was left in and the laptop kept trying to charge it and ... eventually the circuits failed resulting in a new motherboard...

Tell more but I doubt software will solve this.

Bob