Ubuntu – How to set battery charging thresholds

batterylenovopower-managementthinkpad

I am new to Ubuntu and I don't speak computerese. I really don't! I have read the various threads on the topic and still can't work it out.

I have recently purchased a Lenovo Thinkpad x250 and I want to set my battery management to have charging thresholds and whatever other settings are ideal for prolonging the battery life.

I have looked into tlp and tp-smapi. I also found tpacti-bat. Unfortunately, I don't understand what it says on this website at all.

I installed tlp, which apparently has to be managed entirely from the terminal. I haven't found any descriptions I understand on how to do this and I have no idea how I can see the settings and change them.

So I deleted it again.

For tp_smapi I found these instructions:

Installation on Ubuntu: Ubuntu ships tp_smapi in their
linux-ubuntu-modules-* package for Hardy, so you don't have to build
it yourself. Please note that they have renamed tp_smapi's modified
hdaps module to hdaps_ec so that the two can coexist. You should load
hdaps_ec, not hdaps.

What on earth does this mean?

Is there any program which is user-friendly to people whose computer knowledge is very basic and which can be run as a program on Ubuntu where I can easily see and alter the settings?

Or is there an easy-to-follow guide to use for the tlp program?

This was too long for a comment:
Now I have tried it out for a few days and there are three options: 1. It isn't working, 2. The information I see in the power statistics (when I click the battery icon in the upper right corner of my screen) is all wrong, 3. I am unable to read mentioned information.
Here is what is shown in the power statistics: the percentage of the battery power stays the same all day, as do the "minutes to charge". It changes slightly in between suspend modes. Two days ago, it was on 46% the whole time, then after I'd had the system suspended for some time, it was on 44 %. Also the minutes changed. Today it has shown 52 % and 17 minutes, then after some time in suspend mode it now shows 51 % and 25 minutes, not changing. What is shown changes if I unplug the pc and plug it back in.
When I click the power statistics details, the main battery (BATT0) tells me 0 seconds time to full and 0 seconds time to empty, the BATT1 says the minutes shown in the corner as its time to full. This information changes in between I suspend / shut down / unplug the computer. For both of the batteries it always says "charging" when plugged in. In short, it seems all wrong.
Please help? Thank you.

Best Answer

Please stop messing around with kernel modules by hand and stay away from way outdated instructions for Hardy. All things needed are available as packages from either the Ubuntu repos (15.10) or the TLP PPA.

Install TLP as described here. You may omit the tp-smapi-dkms package as tp-smapi is incompatible with the X250.

Modify TLP's configuration to include your desired charge thresholds, Example here. Don't forget to remove the leading #'s from these lines.

To activate the thresholds use

sudo tlp start

Show the output of

sudo tlp-stat -s -c -b 
Related Question