Page 1 of 1

X1 Carbon Gen 8 can't change charge levels via TLP 1.3.1 in Ubuntu 20.04

Posted: Sat Aug 28, 2021 5:32 am
by eggrevolver
I've got a new X1 gen8 with core i7 10510U CPU. I've installed Ubuntu 20.04 and tlp, were successfully changing charge levels up until this moment. I guess, I've installed some regular update and it doesn't work anymore :( When I try to do anything via tlp it tells `Error: battery charge thresholds not available.`

Code: Select all

$ uname -r
5.11.0-27-generic

Code: Select all

$ sudo tlp-stat -b
--- TLP 1.3.1 --------------------------------------------

+++ Battery Features: Charge Thresholds and Recalibrate
natacpi    = inactive (laptop not supported)
tpacpi-bat = inactive (laptop not supported)
tp-smapi   = inactive (laptop not supported)
One of those must be supported afaik... I've checked tlp faqs and found nothing about this issue.
Does anyone know what may be causing this?

Re: X1 Carbon Gen 8 can't change charge levels via TLP 1.3.1 in Ubuntu 20.04

Posted: Mon Aug 30, 2021 5:40 am
by eggrevolver
Ok, I've found the problem. I was messing up with thinkfan and broke `thinkpad_acpi` config, modprobe was unable to load it:

Code: Select all

$ sudo modprobe thinkpad_acpi
modprobe: ERROR: could not insert 'thinkpad_acpi': Invalid argument
contents of `thinkpad_acpi.conf` were:

Code: Select all

cat /etc/modprobe.d/thinkpad_acpi.conf 
options thinkpad_acpi fan_control=1
options thinkpad_acpi fan_control=7
leaving the only first line cured everything, `thinkpad_acpi` is loaded and `tlp` works via `natacpi`:

Code: Select all

sudo tlp-stat -b
--- TLP 1.3.1 --------------------------------------------

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