Hey I have been trying everything to get my laptop to charge properly now i have had it for 12 months now and literally the day its warranty ends Christmas eve the laptop stops charging whenever i turn it on, this is a laptop I use very often so I have to use it until it turns off, is this a bug? I have checked the system over and as far as i can tell it is not a hardware issue as I have used different chargers and both chargers work fine in another laptop and the battery must be fine because its charges when turned off or in sleep mode?
I would check the battery out with HWmonitor app this will show indication of wear your battery. I have also corrected the problem by going into the device manager deleting acpi battery and ac adapter, shutting the system down fully, disconnecting the battery, letting it sit, then powering up without the battery and connecting the battery during windows session. If the battery isn't removable not much you can do but just delete the drivers from the device manager disconnect when off let it sit and reconnect. During the battery disconnect phase you can hold down the power button to discharge every bit of current from the motherboard when unplugged this also helps with various power issues.
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".