How to actually increase Linux laptop battery life

There are a lot of guides online on how to extend the battery life on Linux laptops, here is what I use, and it usually helps me get at least an extra hour or so.

Installation

Installing this is really easy on Linux, for Debian/Ubuntu/Linux Mint/etc., simply run:

sudo apt install tlp

or, if you’re like me and use an Arch distro on your laptop(that’s right, my laptop is now Antergos instead of Kubuntu), simply run:

sudo pacman -S tlp

and you should be good to go. That’s one thing I like about the terminal: you can get things done so much quicker. On Windows you have to Google a program, find a site, download it and then install the program. On Linux, you run one command, and you know that the program is real from a real repository, as the repository is verified with a public/private key pair.

Configuration

The configuration file is stored in /etc/default, so to edit the config, just run:

sudo nano /etc/default/tlp

and now you can read the configuration file. I generally touch the CPU settings and limit the CPU max performance to 50%-70% when on battery, which can be done by changing the line:

CPU_MAX_PERF_ON_BAT=

to whatever percent you want.

Enable tlp

Now, all you need to do is run TLP with:

sudo tlp bat

to enable TLP in battery mode. To enable it as a service, run:

sudo systemctl enable tlp
sudo systemctl restart tlp

The second command allows the changes to take place without a reboot, as Linux requires very few reboots, it’s a shame to have two minutes of no productivity because of a simple install 🙂

Check on your battery from the terminal

To check your battery from the terminal, simply install acpi with:

#For Debian-Based distros
sudo apt install acpi
#For ARCH distros
sudo pacman -S acpi

then use:

acpi -b

(Maybe)Related posts:

Leave a Reply

1 Comment on "How to actually increase Linux laptop battery life"

Notify of
avatar
NerdOfCode
Guest

Glad to see your still using Arch after about 1 day… For the record: I got him to switch after a few days of convincing 🙂 🙂 :)!!!