I have an HP Omen 15" and it doesn't charge the battery when the computer is on. If I connect the charger the symbol of the battery appears as “connected” for around 5 seconds and then it shows that it's working from the battery.
But the weird thing is that if the laptop is shut down or suspended then the battery does charge.
How can I solve this?