HP Laptop drains battery while turned off
from tubbadu@lemmy.kde.social to linux@lemmy.ml on 30 Sep 2024 11:05
https://lemmy.kde.social/post/2061050

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:

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!

#linux

threaded - newest

Strit@lemmy.linuxuserspace.show on 30 Sep 2024 11:10 next collapse

I’ve had a similar issue with most of the laptops I have owned. The battery just discharges slowly when the device is turned off.

I have no idea what causes it or if it can be fixed.

rotopenguin@infosec.pub on 30 Sep 2024 19:38 collapse

Instead of having an efficient chip monitoring the power button, they integrate that job into some 10nm chip. That chip doesn’t get to power off, so it just pisses away power on gate leakage all day long.

lapoigne@jlai.lu on 30 Sep 2024 11:14 next collapse

Same for me with a MSI laptop, no solution

MultipleAnimals@sopuli.xyz on 30 Sep 2024 11:23 next collapse

Same with my Lenovo, not in few days tho but maybe in week or a two.

terminhell@lemmy.dbzer0.com on 30 Sep 2024 11:34 next collapse

Laptops now use the internal main battery as a replacement of the cmos rs2032 battery (in a lot of em at least).

Not that such a low draw cause this level of drain. Maybe the battery is going out as well.

tubbadu@lemmy.kde.social on 30 Sep 2024 22:29 next collapse

I checked and yes, there’s no cmos battery in it. Do you think this may have something to do with it?

terminhell@lemmy.dbzer0.com on 30 Sep 2024 23:13 collapse

Hard to say. But it’s something to consider. Lots of other worthwhile suggestions I see too. Hopefully it’s not a combination of things.

Let us know how it goes!

GenosseFlosse@feddit.org on 01 Oct 2024 06:04 collapse

The CMOS battery has maybe 100mA and lasts 5 years. A laptop battery has at least 400x the capacity, it would not drain in a few days.

y0din@lemmy.world on 30 Sep 2024 11:41 next collapse

do you have any usb devices, like external hard drives, chargers or similar connected to it? a lot of the laptops allows for usb charging/supply of power even when switched off, and this could be one of the sources for the drainage.

try disconnecting all USB cables if any are connected and see if the problem disappears?

never mind, did not see the line about no connected usb cables until after posting

y0din@lemmy.world on 30 Sep 2024 11:49 next collapse

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

Magister@lemmy.world on 30 Sep 2024 12:19 next collapse

on most new laptops, you cannot remove the battery that easily, you have to disassemble the back cover ☹️

KaninchenSpeed@sh.itjust.works on 30 Sep 2024 12:49 next collapse

An alternative would be to boot into the bios and shut down from there

y0din@lemmy.world on 30 Sep 2024 13:49 next collapse

That’s true, but long press on the power button still works, so you can try that instead then? 🙂

Landless2029@lemmy.world on 30 Sep 2024 18:41 collapse

I hate this about new laptops…

I miss the old switch on the bottom.

tubbadu@lemmy.kde.social on 30 Sep 2024 22:27 collapse

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

y0din@lemmy.world on 01 Oct 2024 05:47 collapse

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.

tubbadu@lemmy.kde.social on 06 Oct 2024 09:01 collapse

okay, I think we have some news: if I kill the pc by holding the power button, after a night the battery loses 0%! so I guess the problem is that it’s not shutting down properly. I tried to sudo halt --poweroff and it drained the battery as usual. I then tried sudo halt -f and something strange happened: the screen immediately turned off, but the red LED on the volume key indicating that the volume is muted stayed on, so the pc wasn’t completely off. what could be the problem? and why does this happen only when I force the halt? could it be a kernel issue?

thanks for the help and for your time!!!

y0din@lemmy.world on 06 Oct 2024 10:14 collapse

Hi, a bit busy today so I can investigate some more later, but the problem you are describing is in many cases related to the kernel version and has been resolved by up or downgrading the kernel version.

it might be worth looking into, at least it’s a simple task, while I get some more time to investigate or offer more for you to look into.

great that it worked so far, at least now you know where the problem is :)

tubbadu@lemmy.kde.social on 06 Oct 2024 13:15 collapse

I’ll try other kernels then, but I don’t know how to check if the system is actually powered off or not without waiting 8 hours and checking the battery drain XD perhaps the halt could be the key

thanks!! I’ll update the thread if I’ll discover something new

y0din@lemmy.world on 06 Oct 2024 14:26 next collapse

the halt command is like a handbrake for the kernel, so it basically shuts everything down hard and stops, but it does not power off the system without you telling it to, so that is why your LEDs stayed on after you used the other parameter.

you could just try to downgrade/ upgrade the kernel, do s shutdown for a few hours during daytime when the computer is not beeing used, then turn it back on and check the percentage.

you will see the drain if it’s not a full night, but it might not be so drastic.

if it’s completely shut down there should be no loss in percentage, even for a short period of time as there probably is now…

I’ll try to think up another solution, but a bit busy today as I mentioned on the last post

y0din@lemmy.world on 06 Oct 2024 14:35 collapse

probably related to this kernel bug though:

bugs.launchpad.net/ubuntu/+source/…/2059738

downgrading the kernel should fix it as a workaround it would seem.

MangoPenguin@lemmy.blahaj.zone on 30 Sep 2024 12:48 next collapse

Maybe Intel AMT running? I’m not sure it can be disabled though.

krolden@lemmy.ml on 30 Sep 2024 12:55 collapse

Even if it was it shouldn’t drain the battery that fast.

krolden@lemmy.ml on 30 Sep 2024 12:56 next collapse

How long does the battery last while powered on?

tubbadu@lemmy.kde.social on 30 Sep 2024 22:23 collapse

As it should be, the battery life while in use it’s even better than my own pc

dysprosium@lemmy.dbzer0.com on 30 Sep 2024 12:55 next collapse

It may be exactly this, noticed by Linus Tech Tips: www.youtube.com/watch?v=OHKKcd3sx2c

If their solutions don’t work, try this: www.youtube.com/watch?v=7JoFi5yXzZk

nyan@sh.itjust.works on 30 Sep 2024 15:00 next collapse

Some level of self-discharge happens over time with even a disconnected battery, but that does seem greater than expected. I’d suspect hardware issues, to be honest. Batteries are fickle little creatures that deteriorate over time no matter what you do. Maybe it’s misreporting the amount of charge left to the OS.

tubbadu@lemmy.kde.social on 30 Sep 2024 22:22 collapse

Probably there are problems with the report to the OS because the battery health is marked as 100%, which is a bit strange for a 4yo pc. Do you think this may have something to do with the battery drain?

sag@lemm.ee on 30 Sep 2024 15:02 next collapse

I have HP Notebook. This issue also happened to me. It was a battery issue. I just changed the battery.

tubbadu@lemmy.kde.social on 30 Sep 2024 22:20 collapse

The battery health is marked as 100%, which seems strange to me. However, the battery life while powered on is very good, so I don’t think the battery is old or exhausted. Do you think that changing the battery may be the solution?

sag@lemm.ee on 01 Oct 2024 06:29 collapse

Maybe the solution. Not Sure.

cralder@lemmy.world on 30 Sep 2024 17:13 next collapse

This happened to my Surface pro 4 with both Windows and Linux. Could be a hardware issue.

cRazi_man@lemm.ee on 30 Sep 2024 19:07 next collapse

My wife’s HP laptop does this as well (she is running Windows). A previous laptop did this and a BIOS update fixed it. For most laptops the official response from manufacturers seems to be: eat shit.

tubbadu@lemmy.kde.social on 30 Sep 2024 22:18 next collapse

As usual :|

JaxNakamura@programming.dev on 01 Oct 2024 04:31 collapse

My son’s Windows laptop did the same. Turns out there is a setting to make Windows truly shut down when selecting “shut down” from the menu, because normally it secretly sleeps or hibernates or something to have faster start-up times. There’s also the power another device via USB option that you may have to disable in BIOS / EFI settings.

TechAdmin@lemmy.world on 30 Sep 2024 21:11 next collapse

There’s a feature to allow charging from USB ports while a computer is off, Lenovo calls it “Always on USB.” That feature is constantly using power even when nothing is plugged in. To test if any ports have that feature power off the computer then try plugging in a simple 5v 500ma usb device to charge. If it starts charging then it has that feature and will drain power. If no options to disable in BIOS then as far as I know stuck :(

I’ve worked on a couple recent gen refurb laptops (dell and lenovo) with that feature but lacking any disable option in BIOS. I’ve tried to get into the habit of plugging in whenever not being used but still end up with things empty more often than I like. Very frustrating and I think only hope is future bios update to give that option.

tubbadu@lemmy.kde.social on 30 Sep 2024 22:17 collapse

I’ll have to check it out then, thanks for your help!

tubbadu@lemmy.kde.social on 06 Oct 2024 09:03 collapse

update: I tried but when off (or at least “apparently off”) the USB ports are off, my phone does not charge when plugged in

Lem453@lemmy.ca on 01 Oct 2024 05:06 next collapse

I would check the journalctl logs to ensure it is fully turning off. If here is still battery drain and you are sure the laptop is off, then its a hardware issue rather than software.

tubbadu@lemmy.kde.social on 06 Oct 2024 09:05 collapse

how do I check this? This is probably the source of the issue (see this comment), but I have no idea on what to do to understand the actual cause

thanks for your time and help!

Lem453@lemmy.ca on 06 Oct 2024 16:04 collapse

This is a good place to start to understand what you are doing: howtogeek.com/…/how-to-use-journalctl-to-read-lin…

But basically you shut the computer off, then on then do

journalctl -S -3m

Will show the last 3 mins of logs which you can go through and try to read the logs up until the moment it actually turns off to see what is happening.

noddy@beehaw.org on 01 Oct 2024 08:48 collapse

Might be related to those sleep state stuff that microsoft keep pushing. I think LTT has a video about how it causes battery to drain while off. I think the solution was either shutting it down while unplugged, or while plugged in or something. If you always shut the laptop down with the charger plugged in try to unplug the charger before shutting it down and see if it makes a difference. Or the opposite. I don’t remember which it was.