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).
For thinkpads this is possible using the following sysfs nodes: platform/ smapi/BAT0/ start_charge_ thresh platform/ smapi/BAT0/ stop_charge_ thresh
echo 40 > /sys/devices/
echo 70 > /sys/devices/
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).