无法在 Thinkpad T500 上安装 tp_smapi 0.41

无法在 Thinkpad T500 上安装 tp_smapi 0.41

我已经按照以下步骤为我的 Thinkpad T500 下载了 tp_smapi 模块思考维基并运行 make。没有遇到任何错误

root@Forge:/storage/Repository/git/tp_smapi# make install HDAPS=1 FORCE_IO=1
make -C /lib/modules/3.19.0-18-generic/build M=/storage/Repository/git/tp_smapi O=/lib/modules/3.19.0-18-generic/build modules
make[1]: Entering directory '/usr/src/linux-headers-3.19.0-18-generic'
make[2]: Entering directory '/usr/src/linux-headers-3.19.0-18-generic'
  Building modules, stage 2.
  MODPOST 3 modules
make[2]: Leaving directory '/usr/src/linux-headers-3.19.0-18-generic'
make[1]: Leaving directory '/usr/src/linux-headers-3.19.0-18-generic'
rm -f /lib/modules/3.19.0-18-generic/kernel/drivers/platform/x86/{thinkpad_ec,tp_smapi,tp_base}.ko
rm -f /lib/modules/3.19.0-18-generic/kernel/drivers/firmware/{thinkpad_ec,tp_smapi,tp_base}.ko
rm -f /lib/modules/3.19.0-18-generic/kernel/extra/{thinkpad_ec,tp_smapi,tp_base}.ko
rm -f /lib/modules/3.19.0-18-generic/kernel/drivers/platform/x86/hdaps.ko
rm -f /lib/modules/3.19.0-18-generic/kernel/extra/hdaps.ko
make -C /lib/modules/3.19.0-18-generic/build M=/storage/Repository/git/tp_smapi O=/lib/modules/3.19.0-18-generic/build modules_install
make[1]: Entering directory '/usr/src/linux-headers-3.19.0-18-generic'
make[2]: Entering directory '/usr/src/linux-headers-3.19.0-18-generic'
  INSTALL /storage/Repository/git/tp_smapi/hdaps.ko
Can't read private key
  INSTALL /storage/Repository/git/tp_smapi/thinkpad_ec.ko
Can't read private key
  INSTALL /storage/Repository/git/tp_smapi/tp_smapi.ko
Can't read private key
  DEPMOD  3.19.0-18-generic
make[2]: Leaving directory '/usr/src/linux-headers-3.19.0-18-generic'
make[1]: Leaving directory '/usr/src/linux-headers-3.19.0-18-generic'
depmod 3.19.0-18-generic

但是当我尝试使用 tlp 查看电池状态时,它显示为未加载/安装:

root@Forge:/storage/Repository/git/tp_smapi# tlp-stat -b
--- TLP 0.7 --------------------------------------------

+++ ThinkPad Extended Battery Functions
tp-smapi   = inactive (kernel module 'tp_smapi' load error)
tpacpi-bat = inactive (unsupported hardware)

+++ Battery Status
/sys/class/power_supply/BAT0/manufacturer                   = SONY
/sys/class/power_supply/BAT0/model_name                     = 92P1141
/sys/class/power_supply/BAT0/cycle_count                    = (not supported)
/sys/class/power_supply/BAT0/energy_full_design             =  56160 [mWh]
/sys/class/power_supply/BAT0/energy_full                    =  39310 [mWh]
/sys/class/power_supply/BAT0/energy_now                     =  39310 [mWh]
/sys/class/power_supply/BAT0/power_now                      =      0 [mW]
/sys/class/power_supply/BAT0/status                         = Full

我已尽我所知按照网站上提供的步骤进行操作,但不确定为什么未安装该模块。

  • 操作系统:Xubuntu 15.04 LTS
  • 模块代码:tp_smapi-GitHub
  • 内核:3.19.0-18-generic(x86-64)

答案1

thinkwiki.org 上的许多说明非常过时了。

只需从 Ubuntu 存储库安装软件包:

sudo apt-get install tp-smapi-dkms

(如所述TLP 的文档也)

相关内容