Roshan Book

My Tech Notebook

Control laptop chargin on ubuntu


Source: http://askubuntu.com/questions/34452/how-can-i-limit-battery-charging-to-80-capacity

The charging thresholds are, very unfortunately, firmware and vendor specific.

The lenovo user is luckily provided with a solution outlined here: http://www.thinkwiki.org/wiki/Tp_smapi

It basically says that you would have to install the tp-smapi-dkms package and issue the following as root:

echo 40 > /sys/devices/platform/smapi/BAT0/start_charge_thresh
echo 80 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh

Then it will stop charging once it reached 80% and only start charging when it drops below 40%.

Toshiba and others might have a similar kernel module that exposes firmware functionality to the /sys or/proc space, but it is very unlikely for patent issues. For the same reasons, an application that could handle this would be either Thinkpad- specific or only address a few select vendors.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: