While my system is old, its battery worked well. However, after letting it work on battery mode till it dried off, upon restarting the system, it showed the error:
No battery is detected
The second I pulled out the power cord, the system shut down. This was indicative of the fact that the system was actually not detecting the battery, something which is of concern.
I would not agree that the battery went bad because this problem occurred immediately after the system the system was put on battery mode and working on the same till the battery exhausted. However, this could be verified.
Check is the battery is actually bad before proceeding to the troubleshooting
1] Press Win + R to open the Run window. Type the command devmgmt.msc and press Enter to open the Device manager.
2] Expand the list of batteries and check for your battery’s driver. The interesting fact is that the system would count the power adapter as a battery and would be shown as AC power adapter. So, in short your battery would be the other driver.
3] Right-click on your batter’s driver and select Properties.
4] If the Device status reads “This device is working properly,” we are good to go.
We could try the following troubleshooting steps one by one to resolve the issue:
Solution 1] Discharge the capacitors
Even if we pull out the power cable and connect the system to the battery, the residual charge in the laptop’s capacitor wouldn’t let the system pick up the charge from the battery directly. Thus, before anything else, we need to discharge the capacitors.
1] Shut down the system and remove the power cord and the battery.
2] Press the power button for 5 to 10 seconds making sure no power source is connected to the system.
3] Reconnect the battery and try to boot the system.
If it works fine, well and good, or else proceed to the next solution:
Solution 2] Use the Power troubleshooter
1] Click on the Start button and then the gear-like symbol to open the Settings page.
2] Go to Updates and security and then the Troubleshoot tab.
3] Select the Power troubleshooter and run it.
4] Once done, restart the system.
The power troubleshooter checks underlying issues which strain the battery.
Solution 3] Uninstall and reinstall the battery drivers
The issue could be with the battery drivers as well. In such a case, the drivers could be reinstalled.
Hope it helps!