Posted 2019-08-09 with tags linux, Battery Life, Power Management, Laptops, TLP

Install the TLP utility, which implements a sane default configuration file which should enable some improvement right out of the box.

From the docs:

TLP saves laptop battery power on Linux without the need to understand every technical detail. TLP comes with a default configuration already optimized for battery life, so you may just install and forget it. Nevertheless TLP is highly customizable to fulfil your specific requirements.

Visit the installation docs for info on how to install on common linux distros, and to find information on configuration.

It appears there are some additional capabilities/features available for users with IBM/Lenovo ThinkPads.

For non-thinkpad machines running a flavor of Ubuntu install with:

sudo apt-get install tlp tlp-rdw 

Start the utility:

sudo tlp start

Check battery status:

sudo tlp-stat -b
--- TLP 1.1 --------------------------------------------

+++ Battery Status
/sys/class/power_supply/BAT0/manufacturer                   = Notebook
/sys/class/power_supply/BAT0/model_name                     = BAT
/sys/class/power_supply/BAT0/cycle_count                    = (not supported)
/sys/class/power_supply/BAT0/charge_full_design             =   3100 [mAh]
/sys/class/power_supply/BAT0/charge_full                    =   3137 [mAh]
/sys/class/power_supply/BAT0/charge_now                     =    590 [mAh]
/sys/class/power_supply/BAT0/current_now                    =    720 [mA]
/sys/class/power_supply/BAT0/status                         = Discharging

Charge                                                      =   18.8 [%]
Capacity                                                    =  101.2 [%]

Hopefully that's enough to improve battery performance to an acceptable level.

Additional Leads

Try the powertop utility if the installation of TLP does not yield sufficient improvement.