Here, we are discussing top 5 ways to increase battery life in Linux laptops. After reading this article, you can surely choose whatever is the best for you and squeeze up more juice from your battery.

1. Auto-cpufreq

Auto-cpufreq is a tool that actively monitor your CPU usage and scale the CPU governor as per your need. When there is a low CPU usage, auto-cpufreq set the governor to powersave. When system need more performance, performance governor is selected. You may have a favorite tool that already does this for you, but it likely fails to make use of proprietary peak performance technologies like Intel’s Turbo Boost, a common feature in many laptops over the last few generations. Auto-cpufreq takes these features into account and makes use of them when appropriate. It leads to high performance when you need it the most. Auto-cpufreq is written in Python. Auto-cpufreq just optimize the battery usage and most of the heavy lifting is done by the kernel itself. If you are already using TLP, auto-cpufreq can conflict with TLP, so it is best to remove TLP from your system before installing auto-cpufreq. You can use snapd to install auto cpufreq in your laptop: If you don’t like snaps and want to install auto-cpufreq from the source, first clone the repository using Git: then run the installer. The above command run a script and install auto-cpufreq in desired location. After installation, you can monitor battery usage in your laptop using the sudo auto-cpufreq –monitor command. If you want to try out auto-cpufreq before installing the daemon, you can do that using the following command. If you are satisfied with live auto-cpufreq optimization, you can now install the daemon which runs in the background and persist your settings across reboot. Check if the daemon is running using systemctl status auto-cpufreq command. If you are not happy with auto-cpufreq, you can remove it completely from the system using this command in your terminal.

2. Slimbook Battery

Slimbook battery is a utility coming with Slimbook Linux laptops. As this is an open source project, any Linux user can install this utility in their laptop. Slimbook battery provide a very intuitive UI for users to control their system. Slimbook battery works with various services and drivers like TLP, Intel P-State, AMD and nVidia. This makes Slimbook battery work in every Linux laptops out there. The tools has 3 modes – Energy saving, Balanced and Maximum Performance. Each energy mode comes with default values but the user is allowed to change the most important values, to adjust or avoid errors in their hardware. In Debian/Ubuntu derivatives, you can install Slimbook battery through their official PPA. After adding the PPA repository, you can install Slimbook Battery in your laptop: You can uninstall Slimbook Battery using this command. As TLP is installed along with Slimbook Battery, You should remove TLP separately.

3. TLP

TLP is a battery management an optimization utility. It helps you to manage your system’s power usage without you having to understand every technical detail about your computer, and it runs in the background so you don’t have to worry about it at all. A thing to note is that TLP does not replace the existing power management of your Linux installation. Instead, it has its own set of settings and it changes on every change of the power source. TLP’s default settings are already optimized for battery life, so you may just install and forget it. Nevertheless TLP is highly customizable to fulfill your specific requirements. The things that it manages include:

Kernel laptop mode and dirty buffer timeoutsProcessor frequency scaling including “turbo boost” / “turbo core”Power aware process scheduler for multi-core/hyper-threadingHard disk advanced power management level and spin down timeout (per disk)SATA aggressive link power management (ALPM)PCI Express active state power management (PCIe ASPM) – Linux 2.6.35 and aboveRuntime power management for PCI(e) bus devices – Linux 2.6.35 and aboveRadeon KMS power management – Linux 2.6.35 and above, not fglrxWifi power saving mode – depending on kernel/driverPower off optical drive in drive bay (on battery)

In the latest release of Gnome, it comes with Power Profile utility. This tool conflict with TLP. Therefore, remove Gnome Power Profile before installing TLP. If you are using latest Ubuntu 22.04 based distribution, TLP is available in the Ubuntu repository. For other version, you need to add the PPA to your system: Now you can install TLP in your device. If you are using Fedora, you can easily install TLP with this command. You can uninstall conflicting Gnome Power Profile utility using the following command in Fedora. After installation, reboot your device and TLP will automatically run in your background. To view the TLP configurations, use the sudo tlp start -c command. To change the default TLP configuration, edit the “/etc/default/tlp” file.

TLPUI

TLPUI is a GUI application for TLP. Every time you want to change some TLP configuration, you have to look at the TLP documentation for arguments you need to add in the config file. This is a very tedious process. TLPUI streamlines this process and provides a nice graphical experience on top of it to the user. TLP UI is written in Python and it aims to protect users from setting bad configuration and to deliver a basic overview of all the valid TLP configuration values. To install TLPUI, you need to have TLP installed in your device. Add TLPUI PPA in your Ubuntu-based distribution: Now install TLPUI using the following command. After the installation, you can launch the application to configure TLP easily.

4. Powertop

Powertop is a battery and power management utility for Linux operating system. Powertop is originally developed by Intel. Powertop functions like a system monitor but instead of monitoring RAM and CPU usage, It monitors power usage of every application running in the device. In addition to being a diagnostic tool, Powertop also has an interactive mode you can use to experiment with various power management settings, for cases where the Linux distribution has not enabled those settings. Powertop installation is very easy for Ubuntu-based distribution. Run this command to install powertop in your machine. If you want to build powertop from source, first you have to install build dependencies in your system. For Debian-based distribution, the command will look like this. After installing all the dependencies, clone the Github repository and enter to the cloned directory. Now as you have all the dependencies and codes, you can build powertop in your device very easily. After installing reboot your device to activate powertop. Now run powertop with –auto-tune flag to optimize powertop for your laptop. To run in calibration mode, use –calibrate flag. It monitor battery usage by all the running apps and provide an estimation of your laptop battery. If you want to debug powertop, use –debug flag. This flag is focused for developers. Visit their github page to know more about powertop and its functioning. Image credit: Unsplash