TLP doesn't stop charging at 70%

Hi, this is my batttery

[sudo] password di cris: 
--- TLP 1.5.0 --------------------------------------------

+++ Battery Care
Plugin: huawei
Supported features: charge thresholds
Driver usage:
* vendor (huawei_wmi) = active (charge thresholds)
Parameter value ranges:
* START_CHARGE_THRESH_BAT0:  0(default)..99
* STOP_CHARGE_THRESH_BAT0:   1..100(default)

/sys/devices/platform/huawei-wmi/charge_control_thresholds  = 40 70 [%]

+++ Battery Status: BAT1
/sys/class/power_supply/BAT1/manufacturer                   = DYNAPACK
/sys/class/power_supply/BAT1/model_name                     = HB4593R1ECW
/sys/class/power_supply/BAT1/cycle_count                    =    105
/sys/class/power_supply/BAT1/charge_full_design             =   7410 [mAh]
/sys/class/power_supply/BAT1/charge_full                    =   7249 [mAh]
/sys/class/power_supply/BAT1/charge_now                     =   7249 [mAh]
/sys/class/power_supply/BAT1/current_now                    =      0 [mA]
/sys/class/power_supply/BAT1/status                         = Full

Charge                                                      =  100.0 [%]
Capacity                                                    =   97.8 [%]

So My battery can use Start charge and Stop charge but TLP when battery is charging does nothing and I reach 100% charging
I use TLP beacause Huawei WMI (my notebook is a Huawei Matebook D AMD) does nothing too.
I like Manjaro and I think it works far better than Windows 11 and the only missing feature on manjaro is the charge limit that is present on Windows via Hiawei app called PCManager
How can get a limit charge at 70%? Thanks
If I boot on windows and reboot on Manjaro charge limit to 70% is working but after a reboot it is not working anymore.

You could implement something on your own

Thanks but a notifier is not good for my use, I use my laptop with AC connected all the time so I need a charge limit to protect battery life, I have never unplugged my laptop using in battery mode.

Install the package tlpui and find the necessary configuration.

Plasma powerdevil has settings for it and they work on my laptop.

TLPUI is installed and configured, tlp.conf have those line
but is not working

Perhaps a stupid question - but is the service enabled?

systemctl status tlp

I think the same but well I think it is enabled

lp.service - TLP system startup/shutdown
     Loaded: loaded (/usr/lib/systemd/system/tlp.service; enabled; vendor preset: disabled)
     Active: active (exited) since Sat 2022-07-16 09:17:23 CEST; 1h 35min ago
    Process: 772 ExecStart=/usr/bin/tlp init start (code=exited, status=0/SUCCESS)
   Main PID: 772 (code=exited, status=0/SUCCESS)
        CPU: 248ms

lug 16 09:17:22 Huawei systemd[1]: Starting TLP system startup/shutdown...
lug 16 09:17:23 Huawei tlp[772]: Applying power save settings...done.
lug 16 09:17:23 Huawei tlp[772]: Setting battery charge thresholds...done.
lug 16 09:17:23 Huawei systemd[1]: Finished TLP system startup/shutdown.

From the status of the tlp service is looks like charge thresholds has been applied.

Since you are using Plasma - take a look at

System Settings → Power Management (perhaps only if your Plasma is 5.25)

I can’t say what it is - the service was my first hunch.

Some systems rely on acpi for advanced features - check status of the daemon

systemctl status acpid

I don’t know if tlp and acpi can be used together - you will have to check it there could be a conflict.

System setting Power management is set as 40 % start and 70% stop, that is because in teory Huawei-WMI is included into new kernels and so in teory it would work without any prompt from user or tlp or other script.
But since i install Manjaro Huawei-WMI does nothing to controll battery charge and that drives my crazy, trying to understand why it doesn’t work (FN key are working, keyboard backlight too but battery no).
Acpid is not active but if I remeber well (I’m a beginner but I try linux on my pcs since 2005) ACPID provide various acpi events but not for battery

What do you mean by WMI. To my knowledge WMI is proprietary stuff for Microsoft Windows - unless you know something I don’t (likely) WMI doesn’t work on Linux.

And the laptop I mentioned - it is a Lenovo Thinkpad - I remembered now as I am playing with an Asus laptop - which I cannot adjust charge thresholds for in Plasma.

I just realized that charging threshold is only working on Lenovo ThinkPad - so you are bound to use other means e.g. the charger plug/unplug script mentioned above.

If you install and run tlpui check the requirement on ThinkPad Battery tab

I also see from your output it is supported using the mentioned WMI - so if it is not working - your best bet is to go upstream to the developer.