[RESPONDED] AMD BIOS 3.03 Linux Battery leak while shutdown

Hi, just reporting an odd experience.

The last shutdown failed somehow (stuck for a very long time at the end of the sequence where normally the power goes off) so I had to kill it pressing the power button.

Today I open the lid and the laptop behaves for few seconds as if it was resuming from standby showing the last framebuffer (the powerdown log that was displayed before I killed it), keyboard backlight and power button LED. Then it went off.

Turned it on again, went through bios screen, so it was really off this time, and OS reports much lower battery than when I left it.
I had left it at “full” charge (bios limited at 85%), found it at 31%.

Not sure what I can do to investigate or reproduce this but I’d be happy to try stuff.

OS: Gentoo (kernel 6.7)
Been using this for few weeks, this never happened before and haven’t happened again yet.
Suspend is working on lid close (as I’ve read is the only supported way for now), however I think battery drains faster than it should while in it too.

Not entirely sure on the course of events that led to the drain, it’s worth checking battery health just to be safe.

upower -i /org/freedesktop/UPower/devices/battery_BAT1

Paste the output here. If the results are looking good and healthy, we’d want you to simply monitor battery behavior (idle especially as that’s the best indicator).

Seems fine:

  native-path:          BAT1
  serial:               WA
  power supply:         yes
  updated:              Wed 22 Nov 2023 09:40:12 CET (6 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              51.7806 Wh
    energy-empty:        0 Wh
    energy-full:         62.1367 Wh
    energy-full-design:  60.6042 Wh
    energy-rate:         11.5326 W
    voltage:             16.654 V
    charge-cycles:       15
    time to empty:       4.5 hours
    percentage:          83%
    capacity:            100%
    icon-name:          'battery-full-symbolic'
  History (charge):
    1700642322  83.000  discharging
  History (rate):
    1700642412  11.533  discharging
    1700642382  13.390  discharging
    1700642352  13.204  discharging
    1700642322  14.350  discharging

I’ll leave the laptop closed/suspended for the whole day and see how it is after that.
But I noticed that after a full charge last night while powered off (again bios limited to 85%) I found it down to 83% and now in the time it took to write this already down to 81%.

So, here is the right before closing the lid and right after lifting it up:

# upower -i /org/freedesktop/UPower/devices/battery_BAT1

  native-path:          BAT1
  serial:               WA
  power supply:         yes
  updated:              Wed 22 Nov 2023 09:48:42 CET (7 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              50.4493 Wh
    energy-empty:        0 Wh
    energy-full:         62.1367 Wh
    energy-full-design:  60.6042 Wh
    energy-rate:         9.58212 W
    voltage:             16.549 V
    charge-cycles:       15
    time to empty:       5.3 hours
    percentage:          81%
    capacity:            100%
    icon-name:          'battery-full-symbolic'
  History (rate):
    1700642922  9.582   discharging
    1700642892  9.102   discharging
    1700642862  8.901   discharging
    1700642832  10.232  discharging
# upower -i /org/freedesktop/UPower/devices/battery_BAT1

  native-path:          BAT1
  serial:               WA
  power supply:         yes
  updated:              Wed 22 Nov 2023 21:21:33 CET (3 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              43.1428 Wh
    energy-empty:        0 Wh
    energy-full:         62.1367 Wh
    energy-full-design:  60.6042 Wh
    energy-rate:         0.89784 W
    voltage:             16.187 V
    charge-cycles:       15
    time to empty:       48.1 hours
    percentage:          69%
    capacity:            100%
    icon-name:          'battery-full-symbolic'
  History (charge):
    1700684493  69.000  discharging
  History (rate):
    1700684493  0.898   discharging

12% battery in 11.5h, is it in line with expectations?

7.3Wh over 11.5h (0.6W) sounds at least a lot less unreasonable than other reports of suspend power.

Here is a before and after a complete shutdown of few days (wednesday night to saturday afternoon).

  native-path:          BAT1
  serial:               WA
  power supply:         yes
  updated:              Wed 22 Nov 2023 23:19:33 CET (23 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               charging
    warning-level:       none
    energy:              52.8487 Wh
    energy-empty:        0 Wh
    energy-full:         62.1367 Wh
    energy-full-design:  60.6042 Wh
    energy-rate:         20.5663 W
    voltage:             17.016 V
    charge-cycles:       15
    time to full:        27.1 minutes
    percentage:          85%
    capacity:            100%
    icon-name:          'battery-full-charging-symbolic'
  native-path:          BAT1
  serial:               WA
  power supply:         yes
  updated:              Sat 25 Nov 2023 16:05:36 CET (9 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              50.7125 Wh
    energy-empty:        0 Wh
    energy-full:         62.694 Wh
    energy-full-design:  60.6042 Wh
    energy-rate:         13.4366 W
    voltage:             16.35 V
    charge-cycles:       15
    time to empty:       3.8 hours
    percentage:          80%
    capacity:            100%
    icon-name:          'battery-full-symbolic'
  History (charge):
    1700924736  0.000   unknown
  History (rate):
    1700924736  0.000   unknown

Next will be the same but instead of gracefully shutting down I will keep the power button pressed like in the first case of the post.

Killing with power button didn’t seem to have triggered the same behaviour as the original post, here is the data:

  native-path:          BAT1
  serial:               WA
  power supply:         yes
  updated:              Sat 25 Nov 2023 22:35:58 CET (10 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               charging
    warning-level:       none
    energy:              52.3379 Wh
    energy-empty:        0 Wh
    energy-full:         62.694 Wh
    energy-full-design:  60.6042 Wh
    energy-rate:         0.513224 W
    voltage:             17.038 V
    charge-cycles:       15
    percentage:          85%
    capacity:            100%
    icon-name:          'battery-full-charging-symbolic'
native-path:          BAT1
  serial:               WA
  power supply:         yes
  updated:              Mon 27 Nov 2023 23:48:40 CET (18 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              50.6041 Wh
    energy-empty:        0 Wh
    energy-full:         61.5175 Wh
    energy-full-design:  60.6042 Wh
    energy-rate:         13.9784 W
    voltage:             16.447 V
    charge-cycles:       16
    time to empty:       3.6 hours
    percentage:          82%
    capacity:            100%
    icon-name:          'battery-full-symbolic'
  History (charge):
    1701125320  0.000   unknown
  History (rate):
    1701125320  0.000   unknown

Yes, this sounds about right for suspend.

1 Like