[ltp] Impressive battery life on an X301
Paul Seelig
linux-thinkpad@linux-thinkpad.org
Mon, 25 Jul 2011 19:34:49 +0200
On 07/25/2011 11:13 AM, Timothy Murphy wrote:
> How exactly do you set this up, as a matter of interest?
>
Short answer:
[root]~ # dpkg -l "*smapi*" | grep ^ii
ii tp-smapi-dkms 0.40-9 ThinkPad hardware/firmware access modules
source - dkms version
[root]~ # lsmod | grep smapi
tp_smapi 23601 0
thinkpad_ec 12857 2 hdaps,tp_smapi
[root]~ # vi /etc/sysfs.conf
...
# main battery thresholds:
devices/platform/smapi/BAT0/start_charge_thresh=65
devices/platform/smapi/BAT0/stop_charge_thresh=90
# ultrabay battery thresholds:
devices/platform/smapi/BAT1/start_charge_thresh=65
devices/platform/smapi/BAT1/stop_charge_thresh=90
...
[root]~ # /etc/init.d/sysfsutils force-reload
Setting sysfs variables....
[root]~ #
More detailed answer available from www.thinkwiki.org/wiki/Tp_smapi