There are several reasons a laptop could be having trouble charging. Examine the outlet, cord, and connection first, since these are easily identified and often fixable problems. If you can't find any issues there, changing your laptop settings or resetting its battery management can sometimes solve the problem. If not, replacing the battery might be unavoidable. Ensure that the AC adapter connected to the system meets the minimum wattage for the system to charge the battery. Many high end systems require higher capacity AC adapters than low and mid-range systems. (90 watt for basic & midrange systems, 150 / 180 / 210 watt for select high end systems.)
1- Check system power connection;
Check the DC port for dust or debris. Blowing into the port or using a can of air could allow for better contact resolving the issue.
2- Microsoft ACPI Compliant Control Method Battery listing;
Click Start and type device in the search field, then select Device Manager.
Expand the Batteries category.
Under the Batteries category, right-click the Microsoft ACPI Compliant Control Method Battery listing, and select Uninstall.
You may see more than one.
WARNING: Do not remove the Microsoft AC Adapter driver or any other ACPI compliant driver.
On the Device Manager Taskbar, click Scan for hardware changes.
Alternately, select Action > Scan for hardware changes.
Windows will scan your computer for hardware that doesn't have drivers installed, and will install the drivers needed to manage your battery's power. The notebook should now indicate that the battery is charging.
If you still have the issue try updating the chipset driver and reboot.
3- Update Bios;
You can locate the latest BIOS update for your system by visiting the Drivers and Downloads Page (select your system by adding your tag or from the product list if not already cookied). In the Downloads section you will find the latest BIOS for your system. Also restore Bios settings to default.
4- Drain the residual power of your computer and re-calibrate the battery ;
Please also refer to https://www.nemolaptops.com/single-post/2018/03/28/Laptop-Booting-to-Black-Screen
Power off your computer.
Remove all the external peripherals (printers, scanners or any other USB device) connected to your computer.
Please remove the AC adapter and battery of your computer.
Press and hold the power button of your computer for 10-15 seconds to drain the residual power.
Release the power button
Keep the battery out for at least 2 - 3 hours.
Then insert the battery and charge it overnight with the system powered off.
Insert the battery in and connect the AC adaptor.
Then power on the computer and see if it works.
5- Check the battery health from control panel ;
Click on Windows logon on desktop.
Type 'Power options' in search bar above that.
Click on Power Options.
Check for the 'Battery Health Meter' among the different options on the left side of window.
Check for battery health and check if the battery charging is disabled.
Restart your computer to check if the issue is fixed.
6- Run and install all Windows Updates