I noticed just today that in the top right of my screen that my battery was not charging but i had my charger connected in the laptop itself, my laptop is a T460s Lenovo laptop and it has lights to show that the charger is connected and they are lit up and in the power statistics it detects the charger and says it is online, but when I look in the system settings it shows that it is not charging and that it is not losing power, nor is it gaining any power. I do not know what to do on my operating system to help, I am using Ubuntu 20.04.
81 Answer
Try and reset the Power management (a feature that turns off the power or switches the system's components to a low-power state when inactive) this way:
Shutdown computer, hold down the Power button for ~30 seconds and reboot. Then, recheck indicator.