Are you using a Linux distribution on your laptop? And you want to get more laptop battery life. Well, I have some solutions for you. In this tutorial, we will discuss how to extend battery life with the TLP laptop power manager on Ubuntu 16.04, Linux Mint 18 and Elementary OS Loki.
I always find that Linux eats my laptop power more quickly than Windows does. My Lenovo laptop can run Windows for 3 hours with AC power unplugged. With Linux, no matter it’s Ubuntu, Debian, Arch Linux, or Fedora, it can only run for 2 hours. (Well, I haven’t used Windows for more than a year.)
TLP is an advanced Linux power management tool for laptops and netbooks. It’s the successor to Jupiter which is now defunct. There’re loads of tips, tricks and hacks that could squeeze an extra hour from a Linux laptop or netbook. TLP makes optimizing power usage easy for Linux beginners or for those who don’t want to tinker. You don’t have to understand every technical details to extend battery life.
How to Install TLP on Ubuntu 16.04, Linux Mint 18, Elementary OS Loki
TLP is a pure command line utility that doesn’t come with a GUI. It’s available in the default Ubuntu software repository starting with Wily 15.10. So you can use the following command to install TLP.
sudo apt install tlp tlp-rdw tp-smapi-dkms acpi-call-dkms
acpi-call-dkms are for Lenovo ThinkPad laptops only.
If you want to get the latest version and updates, here’s the commands you can issue to the terminal to install it via official TLP PPA.
sudo add-apt-repository ppa:linrunner/tlp sudo apt update && sudo apt install tlp tlp-rdw tp-smapi-dkms acpi-call-dkms
How to Use TLP
Once TLP is installed, you can immediately start it with:
sudo tlp start
It will load the default optimization configurations, like manage your CPU power state, spin down your hard drive, auto-suspends USB and loads more. To check its status you can run:
There are a lot of information you can get from its output. If your AC power is plugged, TLP will start in AC mode. If later on you unplug your AC power, TLP will automatically switch to battery mode.
You can manually enable or disable WiFi, bluetooth and wwan radios.
sudo wifi [on/off] sudo bluetooth [on/off] sudo wwan [on/off]
Tada! My battery now lasts more than 2 hours.
TLP will automatically apply power saving settings every time you boot up your computer. So from here on out, you can just forget it. For more usage information, check out the man pages.
man tlp man tlp-stat
For power usage analysis, you can install powertop and start it with sudo privilege.
sudo apt install powertop sudo powertop
Other things you can do to get the most power out from your laptop or netbook is making sure your fans are clean, which can be done with a can of compressed air. It’s a known fact that when your fans are collecting dust, it has to work a little bit harder. And using a lower light setting for your screen can also prolong batter life.