He descargado el módulo tp_smapi para mi Thinkpad T500 siguiendo los pasos que se indican enPiensaWikiy corrió make. no encontró errores
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
Pero cuando intenté ver el estado de la batería usando tlp, aparece como no cargada/instalada:
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
He seguido los pasos proporcionados en los sitios hasta donde sé, pero no estoy seguro de por qué el módulo no está instalado.
- SO: Xubuntu 15.04 LTS
- Código del módulo:tp_smapi-GitHub
- Núcleo: 3.19.0-18-genérico (x86-64)
Respuesta1
Muchas instrucciones en thinkwiki.org estánmuyanticuado.
Simplemente instale el paquete desde los repositorios de Ubuntu:
sudo apt-get install tp-smapi-dkms
(como se describe endocumentos de TLPtambién)