3

when I ask tlp for my battery status via

sudo tlp stat -b

I get the following status:

+++ ThinkPad Extended Battery Functions
tp-smapi   = inactive (kernel module 'tp_smapi' not installed)
tpacpi-bat = active

I followed e.g. this tutorial http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html#installation and did all the steps described:

 apt-get install tlp tlp-rdw 
 apt-get install tp-smapi-dkms acpi-call-dkms 

I in fact was able to set my batteries' thresholds and everything seems to work. But following the faq of linrunner (http://linrunner.de/en/tlp/docs/tlp-faq.html) when trying to troubleshoot this problem, they only refer to the above posted installation guide which I closely followed.

If I try to load tp_smapi via

 sudo modprobe -v tp_smapi 

I see the following error message:

modprobe: FATAL: Module tp_smapi not found in directory /lib/modules/4.4.0-22-generic

Therefore I think this is somehow where the problem lies. I read a lot of q&a's regarding tp_smapi by now but I could not find a solution to it yet. Therefore please help me out! :(

aiac
  • 33

2 Answers2

4

The installation of tp-smapi-dkms failed at some point. As you have a T460s i reckon you're using a 4.6 kernel. tp-smapi-dkms 0.41-1 from the Xenial repos doesnt't compile with that kernel. Only 0.42-1 from Yakkety or Debian unstable will do.

BUT: tp-smapi won't work on the T460s anyway (and is not needed), so just remove it and you'll be fine:

sudo apt-get purge tp-smapi-dkms
linrunner
  • 1,525
1

I actually can see count number (and tp-smapi is not loaded) on T580 and Debian 10:

    +++ ThinkPad Battery Status: BAT0 (Main / Internal)
/sys/class/power_supply/BAT0/manufacturer                   = SMP
/sys/class/power_supply/BAT0/model_name                     = 00UR891
/sys/class/power_supply/BAT0/cycle_count                    =      8