Limit battery charging on your Lenovo laptop, to increase your battery’s life

To increase the battery’s life of your Lenovo laptop, you can limit the charging to 80%, or other percent you want and tell the system to charge your laptop when it is a some percent only.

In this article I will show you how to make your system charge your battery only at 80% and start charging when your battery gets les than 30%.

First, you have to install the tp_smapi kernel module, like this:

$ sudo apt-get install tp-smapi-dkms

Now, load the tp_smapi module to your kernel, like this:

$ sudo modprobe tp_smapi

To limit your battery charging to 80%, you have to edit the /sys/devices/platform/smap/BAT0/stop_charge_thresh, like this. (replace 80 with another number, from 1 to 100 if you want a different battery charging limit)

$ echo 80 | sudo tee /sys/devices/platform/smapi/BAT0/start_charge_thresh

To “ask the system” to charge your battery only when it gets below 30%, you have to edit the /sys/devices/platform/smapi/BAT0/stop_charge_thresh file, like this (replace 30 with another number, from 1 to 100 if you want a different inferior charging limit:

$ echo 30 | sudo tee /sys/devices/platform/smapi/BAT0/stop_charge_thresh

Now your battery will be charged when it drops to 30% and will stop charging at 80%.

Tagged with: , , , , ,
Posted in The Linux and Unix Articles!
5 comments on “Limit battery charging on your Lenovo laptop, to increase your battery’s life
  1. blogger says:

    didn’t get it, is it for windows. can you explain this in detail

  2. Mike Conway says:

    This is only for older thinkpad models. thinkpad-acpi superceded this package, and even that was discontinued in 2011. According to thinkwiki, the tp-smapi packages should not be used if you have an Ivy Bridge based CPU.

  3. Gabriel says:

    I can do this in my Asus s300ca (Ubuntu 13.10) ??? thk.

  4. Mmx says:

    Awesome !!! Thanks a lot !!!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Subscribe

  

Subscribe to get the latest Linux news and how to guides directly on your e-mail!