Tools for optimizing Linux power management
ACPI
The Advanced Configuration and Power Interface (ACPI) [9] lets you intervene actively with the system's power management. Tools such as Acpitool [10] and Acpiclient [11] inhabit the ACPI framework. To reduce the power used by unnecessary interfaces and devices, you can turn to GUI power management tool for your desktop interface, or use a tool such as Hdparm or Sdparm for hard drives.
Mobile devices such as laptops benefit from tools in the laptop-mode-tools package [12]. A graphical interface lets users change many parameters with a single mouse click (Figure 4). For example, if you are not connected to a wireless network, simply disable the wireless chip (Enable modules wireless-ipw-power, wireless-iwl-power, or wireless-power) to easily save the power these components otherwise require. For information on the parameters, check out the laptop-mode-tools project documentation, as well as the wikis for Arch Linux [13] and Ubuntu [14]. And see the article on ACPI elsewhere in this issue.
Powertop [15] gives you details of the system load. The program comes with five views: Overview, Idle stats, Frequency stats, Device stats, and Tunables. You can press Tab or Shift+Tab to change tabs. The device statistics answer the question of which devices are consuming too much power: In addition to the battery discharge rate, Powertop shows the extent to which a device or interface is busy (Figure 5).
Conclusions
Linux is not known for maximizing the theoretical maximum battery life of a mobile device, but current kernels and modern desktop environments with integrated power saving mechanisms have helped Linux narrow the gap with other systems. The Linux environment includes several useful tools you can use to configure the power configuration manually.
Keeping unneeded components and processes active costs energy without giving the user anything in return. You can find these power hogs with the current crop of tools and put your laptop on a battery diet.
Infos
- Travers, Matthew. CPU Power Consumption Experiments and Results Analysis on Intel i7-4820k, uSystems Research Group, Newcastle University, http://async.org.uk/tech-reports/NCL-EEE-MICRO-TR-2015-197.pdf
- Lstopo (from hwloc): https://packages.debian.org/stretch/hwloc
- Processor clocking: https://wiki.ubuntuusers.de/Prozessortaktung/
- Xfce4-cpufreq-plugin: http://goodies.xfce.org/projects/panel-plugins/xfce4-cpufreq-plugin
- Powerstat: https://sourceforge.net/projects/powerstat
- C-States, ACPI: https://en.wikichip.org/wiki/acpi/c-states
- Power management states: http://x://software.intel.com/en-us/articles/power-management-states-p-states-c-states-and-package-c-states#_Toc383778910
- "What are CPU C-states and how to disable them if needed?": https://gist.github.com/wmealing/2dd2b543c4d3cff6cab7
- The Linux ACPI Project: https://01.org/linux-acpi
- Acpitool: https://sourceforge.net/projects/acpitool/
- Acpiclient: https://sourceforge.net/projects/acpiclient/
- Laptop-mode-tools: https://github.com/rickysarraf/laptop-mode-tools
- Arch wiki on laptop-mode-tools: https://wiki.archlinux.org/index.php/Laptop_Mode_Tools
- Ubuntu wiki on laptop-mode-tools: https://wiki.ubuntuusers.de/laptop-mode-tools/
- Powertop: https://01.org/powertop
- "Using the I2C Bus": http://www.robot-electronics.co.uk/i2c-tutorial
- Pm-utils: https://pm-utils.freedesktop.org/wiki
- Uswsusp: http://suspend.sourceforge.net
« 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
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs
-
Juno Computers Launches Another Linux Laptop
If you're looking for a powerhouse laptop that runs Ubuntu, the Juno Computers Neptune 17 v6 should be on your radar.
-
ZorinOS 17.1 Released, Includes Improved Windows App Support
If you need or desire to run Windows applications on Linux, there's one distribution intent on making that easier for you and its new release further improves that feature.
-
Linux Market Share Surpasses 4% for the First Time
Look out Windows and macOS, Linux is on the rise and has even topped ChromeOS to become the fourth most widely used OS around the globe.
-
KDE’s Plasma 6 Officially Available
KDE’s Plasma 6.0 "Megarelease" has happened, and it's brimming with new features, polish, and performance.
-
Latest Version of Tails Unleashed
Tails 6.0 is based on Debian 12 and includes GNOME 43.
-
KDE Announces New Slimbook V with Plenty of Power and KDE’s Plasma 6
If you're a fan of KDE Plasma, you'll be thrilled to hear they've announced a new Slimbook with an AMD CPU and the latest version of KDE Plasma desktop.
-
Monthly Sponsorship Includes Early Access to elementary OS 8
If you want to get a glimpse of what's in the pipeline for elementary OS 8, just set up a monthly sponsorship to help fund its continued existence.