You are not logged in.

#1 2023-09-28 04:45:56

Trvzn
Member
Registered: 2023-07-19
Posts: 16

[SOLVED] Battery not charging

The battery on my thinkpad Z16 doesn't charge. I use tint2 as my panel and its notification system accuses when the AC is plugged/unplugged, but the percentage doesn't change.

I tried to diagnose it myself, and I get the following (all with AC plugged)

$ tpacpi-bat -g ST
<bat> missing or incorrect


$ cat /sys/class/power_supply/BAT0/status
Not charging

$ upower -i /org/freedesktop/UPower/battery_BAT0

  native-path:          (null)
  power supply:         no
  updated:              Wed 31 Dec 1969 04:00:00 PM PST (1695875325 seconds ago)
  has history:          no
  has statistics:       no
  unknown
    warning-level:       unknown
    battery-level:       unknown
    percentage:          0% (should be ignored)
    icon-name:          '(null)'

The cat command returns Discharging if unplugged.

Last edited by Trvzn (2023-09-28 17:53:50)

Offline

#2 2023-09-28 07:32:06

espritlibre
Member
Registered: 2022-12-15
Posts: 129

Re: [SOLVED] Battery not charging

is tpacpi even needed for your system? if this is recent thinkpad model then battery should be handled by in-kernel thinkpad_acpi module.
seen this thread
battery not charging issues on lenovos are often solved by simply running the Battery Quick Check in UEFI Diagnostics, this will reset the values in the EC

Offline

#3 2023-09-28 15:57:14

Trvzn
Member
Registered: 2023-07-19
Posts: 16

Re: [SOLVED] Battery not charging

Thanks for the reply.
I only installed tpacpi to run this diagnostics.
I checked the thread and ran

sudo tlp-stat -b

--- TLP 1.6.1 --------------------------------------------

+++ Battery Care
Plugin: thinkpad
Supported features: charge thresholds, recalibration
Driver usage:
* natacpi (thinkpad_acpi) = active (charge thresholds, recalibration)
* tpacpi-bat (acpi_call)  = inactive (superseded by natacpi)
Parameter value ranges:
* START_CHARGE_THRESH_BAT0/1:  0(off)..96(default)..99
* STOP_CHARGE_THRESH_BAT0/1:   1..100(default)

+++ ThinkPad Battery Status: BAT0 (Main / Internal)
/sys/class/power_supply/BAT0/manufacturer                   = SMP
/sys/class/power_supply/BAT0/model_name                     = 5B10W51887
/sys/class/power_supply/BAT0/cycle_count                    =      2
/sys/class/power_supply/BAT0/energy_full_design             =  72010 [mWh]
/sys/class/power_supply/BAT0/energy_full                    =  74560 [mWh]
/sys/class/power_supply/BAT0/energy_now                     =  70890 [mWh]
/sys/class/power_supply/BAT0/power_now                      =      0 [mW]
/sys/class/power_supply/BAT0/status                         = Not charging

/sys/class/power_supply/BAT0/charge_control_start_threshold =      0 [%]
/sys/class/power_supply/BAT0/charge_control_end_threshold   =    100 [%]
/sys/class/power_supply/BAT0/charge_behaviour               = [auto] inhibit-charge force-discharge

Charge                                                      =   95.1 [%]
Capacity                                                    =  103.5 [%]

and

sudo acpi -V

Battery 0: Not charging, 95%
Battery 0: design capacity 4131 mAh, last full capacity 4277 mAh = 100%
Adapter 0: on-line
Thermal 0: ok, 20.0 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 110.0 degrees C
Cooling 0: Processor 0 of 3
Cooling 1: Processor 0 of 3
Cooling 2: Processor 0 of 3
Cooling 3: ath11k_thermal 0 of 100
Cooling 4: Processor 0 of 3
Cooling 5: Processor 0 of 3
Cooling 6: Processor 0 of 3
Cooling 7: Fan 1 of 1
Cooling 8: Processor 0 of 3
Cooling 9: Processor 0 of 3
Cooling 10: Processor 0 of 3
Cooling 11: Processor 0 of 3
Cooling 12: Processor 0 of 3
Cooling 13: Processor 0 of 3
Cooling 14: Processor 0 of 3
Cooling 15: Processor 0 of 3
Cooling 16: Processor 0 of 3
Cooling 17: Processor 0 of 3

The most interesting to me was

cat /sys/class/power_supply/BAT0/charge_start_threshold
0
cat /sys/class/power_supply/BAT0/charge_stop_threshold
100

Does that mean it only starts charging when it hits 0?

Last edited by Trvzn (2023-09-28 15:58:08)

Offline

#4 2023-09-28 16:37:18

seth
Member
Registered: 2012-09-03
Posts: 51,675

Re: [SOLVED] Battery not charging

Does that mean it only starts charging when it hits 0?

START_CHARGE_THRESH_BAT0/1:  0(off)..96(default)..99
Battery 0: Not charging, 95%

You could try to set it to a lower (but explicit) value, allow the battery to drop and see whether it starts charging.
(nb tat you're currently at 98.44% of the design capacity, it the charge doesn't start below 96% that might be the relevant factor over the 95% of 103% capacity)

Online

#5 2023-09-28 17:53:34

Trvzn
Member
Registered: 2023-07-19
Posts: 16

Re: [SOLVED] Battery not charging

That seems to have solved the issue (and switching back to the default limit now magically works as well, so go figure...). Marking as solved. Thanks!

Offline

#6 2024-02-29 14:04:34

LohseBoi
Member
Registered: 2021-01-29
Posts: 2

Re: [SOLVED] Battery not charging

Hey, just tapping in here to get some help. I am having the same issue, but I can't update `START_CHARGE_THRESH_BAT0/1`, how did you fix your issue? I have tried updating the values in /sys/class/power_supply/BAT0/charge_start_threshold and /sys/class/power_supply/BAT0/charge_end_threshold, which did not help. When spamming `tlo-strat --battery` I can see it go from "Not charging" to "Charging" and back, I am wondering if this si a hardware issue (ThinkPad E14 Gen 4, <1 year old)

Offline

#7 2024-02-29 15:17:23

seth
Member
Registered: 2012-09-03
Posts: 51,675

Re: [SOLVED] Battery not charging

What are the actual values on your system?
The idea was to force the batttery to stop charging below the currently stuck value, drain it and then (hopefully) charge it.
For the OP the battery seems to have re-evaluated its condition and they can now charge to 100% again (which, sidenote, is not advisable if you care about battery life - you want flat cycles between 20% and 80% of the capacity)

Online

#8 2024-03-01 15:51:46

LohseBoi
Member
Registered: 2021-01-29
Posts: 2

Re: [SOLVED] Battery not charging

After some further investigation, I believe it's a hardware issue. It does charge, even when powered down, but very slow (around 5% in 1.5 hours), I have tried fixing the threshold-values as in this thread and others, but to no fix.

Offline

#9 2024-03-01 16:03:03

seth
Member
Registered: 2012-09-03
Posts: 51,675

Re: [SOLVED] Battery not charging

Do you have a different charger?
Does it charge (much) faster when the system is powered down?

Online

Board footer

Powered by FluxBB