Comment 3 for bug 120457

Revision history for this message
Wouter Deconinck (wdconinc) wrote :

For thinkpads this is possible using the following sysfs nodes:
echo 40 > /sys/devices/platform/smapi/BAT0/start_charge_thresh
echo 70 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh
This will start charging when remaining charge drops below 40% and stop charging when charged for 70%.

One could consider looking in the smapi directory, loop over the batteries, and set preset values for start and stop.

This functionality requires the tp_smapi module, which is not included in the main tree, but also provides some other useful features (hard disk protection).