Hello! My girlfriend’s HP laptop running kubuntu 24.04 has this problem: when it’s turned off (either from the GUI or poweroff
) it discharges overnight, from 100% to 0% in a few days.
I searched the web to look for fixes:
- wake on lan is disabled in the BIOS
- USB ports have no settings in the bios, but there’s nothing connected to them anyway
- the system is actually powered off, not sleeping (at least if
poweroff
actually works) - everything, firmware included, is up to date
She doesn’t remember having this problem from the beginning, but cannot tell when this started occurring
Did any of you ever encounter this problem? I don’t know what else to do, and it’s quite annoying.
Thank you for your time!
does this happen if you force it to shut down by holding the power button for +10sec, or if you remove and reinsert the battery after power off?
forcing a shutdown or removing and installing the battery, will ensure that the laptop is indeed shut down and not just halting during the shutdown process.
if you still have the same issue after this test I would guess your battery is dying, but if not you know that the issue is a software and not a hardware problem…
anyway, best of luck getting it sorted
on most new laptops, you cannot remove the battery that easily, you have to disassemble the back cover ☹️
An alternative would be to boot into the bios and shut down from there
I hate this about new laptops…
I miss the old switch on the bottom.
That’s true, but long press on the power button still works, so you can try that instead then? 🙂
I’ll try it as soon as I can, thanks for the suggestion! I don’t think the battery is dying, because while powered on the battery life is very good
let’s hope it’s a software issue, in general it’s much cheaper to fix software than hardware 🙂
you can also try using the “sudo halt --poweroff” command.
if it ks software related. that command will force an instant shutdown ignoring all normal shutdown run levels (use with caution if you have open files that need to be saved in advance).
if that command succeeds as well after the battery test, you can be sure the problem lies within the shutdown run level scripts, which should help you narrow it down even more.