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.
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.
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:
to whatever percent you want.
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