Laptop battery charging limit parameters / GUI setting options (Lenovo)

(hint: this thread is not specifically related to GNOME but I didn’t find a better second level category alternative)

As follow-up of this reply two years ago:

With Lenovo Thinkbook T14, these /sys/class parameters don’t exist. As an alternative, I found the following gnome extension: Thinkpad Battery Threshold. One can set parameters, but the extension also says: “thresholds not available”.
Therefore I have been looking at the parameters of a Thinkpad T14: The available parameters are approx. identical, but Thinkpad offer four more parameters: the two as described in the april 2023-quote above, and two more: charge_control_start_threshold and charge_control_end_threshold (not ‘stop’). This seems to confirm that the Thinkbook does not support thresholds.

According to this here: https://askubuntu.com/questions/1038471/problem-with-lenovo-battery-threshold, Thinkbook is comparable to ideapad. The latter only provides a conservation mode - fixed threshold at 60%, or just 100%. Both have a /sys/bus/platform/drivers/ideapad_acpi parameter.

Meanwhile, after having judged several installable options (extensions) out there, I found a working solution that offers a fixed stop charge threshold at 80%. Well, that’s acceptable. It’s by the Battery Health Charging extension:


The extension is associated with the lowest green area in the screenshot. If this is set active (green), charging stops just before 80% is reached. The screenshot shows 84, but that’s due to experimenting with this mode on and off. It changes also the text associated with the bar of the energy settings window (“lädt nicht” - does not charge).

A few days ago I was a bit confused because of the text “Volle Kapazität” (full capacity) in this case, which was the reason for some experimenting. WelI, I have just updated this extension, and now the text is correct (max lifetime).
Yet I think that fixed threshold levels are hardware dependent. In the case of Ideapad, the threshold might be at 60% (see above) and in the Thinkbook case (verified) 80%.

I also had taken a glimpse of the git-webpage of this project. It seems that this extension is really flexible, because it also supports Thinkpads with their variable threshold(s) and assumably also other laptops beyond the Lenovo ecosystem.

The only little annoying factor is the extra battery icon with the two heart dots in it. It hardly serves a useful function - but in the settings, I have been able to hide it!

Mod edit:- Thanks for your comments. The topic has been moved to the Feedback category, as support is not being requested. Regards.

1 Like

I use that as well on my System76 Gazelle.

I attended Jelle van der Waa’s FOSDEM 2024 talk about the subject: From Kernel API to Desktop Integration, how do we integrate battery charge limiting in the desktop.

Guess what? :grinning:

GNOME 48 will include a new battery charge limit feature:

image

1 Like