tlp chargeonce not working - no start charge threshold error

I just discovered tlp chargeonce for some reason won't work on my thinkpad:

--- TLP 1.2.2 --------------------------------------------

+++ Battery Features: Charge Thresholds and Recalibrate
natacpi    = active (data, thresholds)
tpacpi-bat = active (recalibrate)
tp-smapi   = inactive (ThinkPad not supported)

+++ ThinkPad Battery Status: BAT0 (Main / Internal)
/sys/class/power_supply/BAT0/manufacturer                   = LGC
/sys/class/power_supply/BAT0/model_name                     = 02DL013
/sys/class/power_supply/BAT0/cycle_count                    =      8
/sys/class/power_supply/BAT0/energy_full_design             =  57000 [mWh]
/sys/class/power_supply/BAT0/energy_full                    =  57000 [mWh]
/sys/class/power_supply/BAT0/energy_now                     =  45330 [mWh]
/sys/class/power_supply/BAT0/power_now                      =      0 [mW]
/sys/class/power_supply/BAT0/status                         = Unknown (threshold effective)

/sys/class/power_supply/BAT0/charge_start_threshold         =     75 [%]
/sys/class/power_supply/BAT0/charge_stop_threshold          =     80 [%]
tpacpi-bat.BAT0.forceDischarge                              =      0

Charge                                                      =   79.5 [%]
Capacity                                                    =  100.0 [%]

[blazej@t490s ~]$ sudo tlp chargeonce
Error: no start charge threshold configured for BAT0.
[blazej@t490s ~]$

From what I can tell, start charge threshold is configured and in fact charging starts only after battery level drops below 75% and stops as soon as it arrives to 80%.

regular fullcharge works:

sudo tlp fullcharge
Setting temporary charge thresholds for BAT0:
  stop  = 100
  start =  96
Charging starts now, keep AC connected.

Nevertheless one time full charge command won't run.
Any idea why this is happening?

Thank you

Sounds like the threshold is not set.
Please post the output of:

cat /etc/default/tlp |grep THRESH

Note that even if the settings are disabled (commented out) tlp-stat shows them.

1 Like

Thanks!
that was apparently the case... They are commented out
Although as I said before, battery woud stop charging when reaching 80%


# START_CHARGE_THRESH value and stops when exceeding the STOP_CHARGE_THRESH value.
#START_CHARGE_THRESH_BAT0=75
#STOP_CHARGE_THRESH_BAT0=80
#START_CHARGE_THRESH_BAT1=75
#STOP_CHARGE_THRESH_BAT1=80
#RESTORE_THRESHOLDS_ON_BAT=1

That's intended. It respects the threshold settings.
If you want 100%, either change the threshold(s) or use the fullcharge option.

Charge battery once to the upper charge threshold
ThinkPads only

sudo tlp chargeonce [ BAT0 | BAT1 ]
Sets the lower threshold to upper threshold - 4 to initiate the charge. Upon reboot, thresholds are reset to the configured settings.
1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by