How to install PowerTOP on Ubuntu 17.04

To install PowerTOP on Ubuntu 17.04

PowerTOP is an open-source power management tool used for diagnosing power related issues such as reducing power consumption and extending battery life thus making it more healthy and robust. Also, it provides an interactive mode for experimenting various power management settings. Installing PowerTOP on Ubuntu is so simple and this article sheds light on it.

Installing PowerTOP

Make sure you add the repo for PowerTop in your system before you begin with its installation. Use the following command for the same purpose.

root@linuxhelp1:~# add-apt-repository ppa:eugenesan/ppa
 This repository contains collection of customized, updated, ported and backported
packages for two last LTS releases and latest pre-LTS release.
Packages for older releases relocated to ppa:eugenesan/archive or deleted.

+-------------------------------------------------------------------------------------+
| Disclaimer:
+-------------------------------------------------------------------------------------+
* Packages in this a nd related PPAs are for personal use only.
  They developed specifically for several custom environments and may not work for you.
* Usage of packages in this PPA, in some forms, might contradict licenses of software
  packaged in this and related PPAs. End users and administrator are responsible for
  runtime licensing and possible legal consequences.
* Some packages provided with their dependencies while some might require additional
  Ubuntu repositories and external PPAs. Below is the list of
.
.
.
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keybox ' /tmp/tmp58gcy2yp/pubring.gpg'  created
gpg: /tmp/tmp58gcy2yp/trustdb.gpg: trustdb created
gpg: key E61380B28313A596: public key " Launchpad synergy+"  imported
gpg: Total number processed: 1
gpg:               imported: 1
OK

Once its done, update the repo as follows.

root@linuxhelp1:~# apt-get update
Get:1 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty InRelease [15.4 kB]                                                       
Hit:2 http://in.archive.ubuntu.com/ubuntu zesty InRelease                                                                           
Hit:3 http://security.ubuntu.com/ubuntu zesty-security InRelease                                          
Hit:4 http://in.archive.ubuntu.com/ubuntu zesty-updates InRelease                                         
Hit:5 http://in.archive.ubuntu.com/ubuntu zesty-backports InRelease
Get:6 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main amd64 Packages [1,100 B]
Get:7 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main i386 Packages [1,108 B]
Get:8 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main Translation-en [1,288 B]
Fetched 18.9 kB in 1s (12.3 kB/s)
Reading package lists... Done

You can install PowerTOP package now. Install PowerTOP with the following command.

root@linuxhelp1:~# apt-get install powertop -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  cpufrequtils laptop-mode-tools
The following NEW packages will be installed:
  powertop
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
Need to get 0 B/181 kB of archives.
After this operation, 590 kB of additional disk space will be used.
Selecting previously unselected package powertop.
(Reading database ... 203513 files and directories currently installed.)
Preparing to unpack .../powertop_2.8-1build2_amd64.deb ...
Unpacking powertop (2.8-1build2) ...
Setting up powertop (2.8-1build2) ...
Processing triggers for man-db (2.7.6.1-2) ...

PowerTOP has been installed, you can use the following command to know more about it.

root@linuxhelp1:~# powertop --help
Usage: powertop [OPTIONS]

     --auto-tune     sets all tunable options to their GOOD setting
 -c, --calibrate     runs powertop in calibration mode
 -C, --csv[=filename]     generate a csv report
     --debug         run in " debug"  mode
     --extech[=devnode]     uses an Extech Power Analyzer for measurements
 -r, --html[=filename]     generate a html report
 -i, --iteration[=iterations] number of times to run each test
 -q, --quiet         suppress stderr output
 -t, --time[=seconds]     generate a report for ' x'  seconds
 -w, --workload[=workload] file to execute for workload
 -V, --version         print version information
 -h, --help         print this help menu

For more help please refer to the ' man 8 powertop' 

Hope the installation procedure was helpful to you. PowerTOP is built with amazing utilities like sensors, powersave and cpu governor so each one plays its own role thus ensuring you a very low power consumption. Moreover, PowerTOP is a useful tool for laptop users as it is capable of obtaining prolonged battery life as it looks over the kernel options to estimate total power usage. Also, it is a boon for larger firms with their own servers as it reduces power consumption in a large level.

Tag : Ubuntu
FAQ
Q
Does TLP make sense on newer laptops / with newer Linux versions?
A
Yes, of course.
The Linux kernel has accumulated many power saving features over the years, but only a minority is enabled by default. It seems to be really hard for the kernel developers to fully debug power saving on all possible hardware, so power saving stays disabled for the majority of drivers and it's up to the user to enable it.
Conclusion: a userspace tool like TLP is still needed to enable power saving globally.
Q
How to install PowerTop in Fedora?
A
Run the following to install PowerTop on Fedora:
yum install powertop
run PowerTOP with the command:
powertop
Q
What is PowerTOP on Ubuntu?
A
PowerTOP is an open-source power management tool used for diagnosing power related issues such as reducing power consumption and extending battery life thus making it more healthy and robust. Also, it provides an interactive mode for experimenting with various power management settings.
Q
How to install PowerTOP on Ubuntu 17.04?
A
Run the following command:
# apt-get install powertop
Q
Why using Powertop over TLP?
A
Powertop isn't a power management tool but merely an analysis tool. Any recommended settings you apply with powertop get lost upon the next system reboot. To make powertop's settings permanent you need a tool like TLP.

TLP's default configuration contains all appropriate powertop recommendations and implements them automatically.