- [Instructor] Welcome to the next video of section eight:
Measuring and optimizing power usage.
In the previous video, we've learned how to find out
active user hours on a system.
In this video, we'll learn how to measure
and optimize power usage.
Power consumption is one of the factors
that one must keep on monitoring,
especially on mobile devices such as:
Notebook computers, tablets, and similar.
There are a few tools available for Linux systems
that measure power consumption.
And one such command is Powertop,
which we're going to use for this section.
Powertop doesn't come pre installed
with most Linux distributions.
You'll have to install it using your package manager.
Let's see how to use Poweretop to measure
and optimize power consumption.
Using Powertop is pretty easy.
Just run.
Powertop will start taking some measurements
and once it's done, it will show you a screen,
which will have detailed information about power usage,
the process using the most power, and so on.
For generating html reports, use..
Powertop will take measurements over a period of time
and generate an html report with the default file name
powertop.html, which you can open using any web browser.
For optimizing power usage, use..
When Powertop is running, use the arrow keys
to switch to the tunables tab.
This will show you a list of things that Powertop can toon
so they consume less power.
Just choose whichever ones you want, press enter
to toggle from bad to good.
If you want to monitor the power consumption
from a portable device's battery, it's required
to remove the charger and use the batter for Powertop
to make measurements.
Awesome!
We've successfully learned how to measure
and optimize power usage.
In the next video, we'll learn about
monitoring disk activity.