Optimizing laptop battery life with AcpiTool and PowerTOP
Calibration
If the rows for design capacity and last full capacity clearly differ, individual cells are more or less exhausted. This can be partially reversed by recalibrating the battery. To do this, drain the battery several times to the final discharge voltage and then fully charge it again.
For proper discharging, adjust the threshold in the energy manager of the desktop environment so that the computer switches off at minimum battery charge level (Figure 3). This ensures a clean shutdown of all processes and applications and minimizes the risk of data loss. Additionally, it avoids an accidental deep discharge, which can damage the battery.
Charging the battery for two to three hours after each complete discharge completes the recalibration and brings the last full capacity values back up to something approaching the design capacity. This accordingly extends the laptop's battery life.
Switching Off Unneeded Components
Switching off components and services that you do not need for operations helps to extend a laptop's battery life. For example, modern devices often have WiFi modules that you can switch off to save power. Besides a permanently running disk, a bright display is one of the biggest power guzzlers.
Although Linux now offers mature energy-saving options, which you can conveniently adjust through a graphical interface on the desktop, they do not include the full range of sensible energy management capabilities: To locate power-hungry components and services on Linux off the beaten track, you will find Intel's PowerTOP a useful companion.
PowerTOP is found in the repositories of many distributions. If you find two versions of the program, then install the 2.x version: This is the first version to include the code that supports convenient control of individual laptop components. If no packages are available for the distribution you are using, download the PowerTOP source code [5] and build the program by following the how-to.
Next, run the program in a terminal as an administrator by typing the
powertop
command. The tool lists the status of the hardware it finds in an ncurses interface and updates the data in real time. You will see not only the level of utilization for individual components, but also for services (processes). If PowerTOP permanently shows a value of 100 percent for individual subsystems, this means the components do not support power-saving mechanisms.
In the tab bar at the top of the screen, you will find a Tunables option on the right. The matching list details the computer components and specifies whether their current settings save energy or impede energy management (Figure 4). It makes sense to modify the settings for components listed as Bad.
To do so, select the device with the arrow keys and press Enter; a dialog for editing the settings is then displayed. PowerTOP automatically determines better settings and implements them when you press Enter again. Pressing R checks to see whether the program has made the changes.
Thanks to the descriptive names in the list, it is easy to identify hardware that you rarely use and thus does not need to be switched on permanently. Because PowerTOP makes the settings permanent, you can genuinely save power thanks to smart changes.
Conclusions
The high level of component integration in current laptops makes it difficult to configure meaningful energy-saving options. AcpiTool and PowerTOP are two useful tools that help keep your battery in good health and achieve the maximum lifetime to boot. Controlling these little helpers is extremely simple, allowing you to identify and disable the power hogs on your system.
Infos
- ACPI and Microsoft: http://techrights.org/2008/07/25/foxconn-bios-acpi/
- AcpiTool: http://acpitool.sourceforge.net
- "Inxi" by Erik Bärwaldt, Linux Pro Magazine, issue 164, July 2014, p. 70, http://www.linuxpromagazine.com/Issues/2014/164/Inxi
- Memory effect: http://phys.org/news/2013-04-memory-effect-lithium-ion-batteries.html
- Download PowerTOP: https://01.org/powertop/downloads
« Previous 1 2
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Gnome 48 Debuts New Audio Player
To date, the audio player found within the Gnome desktop has been meh at best, but with the upcoming release that all changes.
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.
-
HashiCorp Cofounder Unveils Ghostty, a Linux Terminal App
Ghostty is a new Linux terminal app that's fast, feature-rich, and offers a platform-native GUI while remaining cross-platform.
-
Fedora Asahi Remix 41 Available for Apple Silicon
If you have an Apple Silicon Mac and you're hoping to install Fedora, you're in luck because the latest release supports the M1 and M2 chips.
-
Systemd Fixes Bug While Facing New Challenger in GNU Shepherd
The systemd developers have fixed a really nasty bug amid the release of the new GNU Shepherd init system.
-
AlmaLinux 10.0 Beta Released
The AlmaLinux OS Foundation has announced the availability of AlmaLinux 10.0 Beta ("Purple Lion") for all supported devices with significant changes.
-
Gnome 47.2 Now Available
Gnome 47.2 is now available for general use but don't expect much in the way of newness, as this is all about improvements and bug fixes.