In this occurrence - proceed with the following steps to identify the problem:
1. Try to charge the laptop with the power button off. Many modern laptops will require a lot of power. In cases, the laptop cannot charge the battery and process heavy workload tasks at the same time.
2. Ensure that the laptop charger is working correctly.
3. Clean the battery pack.If the issue is number two: a broken laptop charger, then it is recommended you consider a replacement universal laptop charger as a quick and cheap alternative.