我已經使用中的步驟為我的 Thinkpad T500 下載了 tp_smapi 模組ThinkWiki並運行 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 的文檔也)