Measuring and optimizing power usage
Battery capacity is a critical resource on mobile devices, such as notebook computers and tablets. Linux provides tools that measure power consumption, one such command is powertop
.
Getting ready
The powertop
application doesn't come preinstalled with many Linux distributions, you will have to install it using your package manager.
How to do it...
The powertop
application measures per-module power consumption and supports interactively optimizing power consumption:
With no options, powertop
presents a display on the terminal:
# powertop
The powertop
command takes measurements and displays detailed information about power usage, the processes using the most power, and so on:
PowerTOP 2.3 Overview Idle stats Frequency stats Device stats Tunable Summary: 1146.1 wakeups/sec, 0.0 GPU ops/secs, 0.0 VFS ops/sec and 73.0% C Usage Events/s Category Description 407.4 ms/s 258.7 Process /usr/lib/vmware/bin/vmware 64.8 ms/s 313.8 Process /usr/lib64/firefox/firefox...