How to install Power Commands in Ubuntu

To install Power Commands in Ubuntu

Power Commands is a graphical front end tool for Linux systems. It allows the system administrator to create some power tasks like Shutdown, Restart, Logout and Hibernate in an easy manner. Installation of Power Commands in Ubuntu is explained in this article.

Installation of Power Commands

First add the PPA repository to install the power commands.

root@linuxhelp:~# add-apt-repository ppa:atareao/atareao
 Applications from atareao
 More info: https://launchpad.net/~atareao/+archive/ubuntu/atareao
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmpzo618gkk/secring.gpg'  created
gpg: keyring `/tmp/tmpzo618gkk/pubring.gpg'  created
gpg: requesting key 36FD5529 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpzo618gkk/trustdb.gpg: trustdb created
gpg: key 36FD5529: public key " Launchpad PPA for atareao"  imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK


Run the below command to update the system repository.

root@linuxhelp:~# apt-get update 
Hit http://security.ubuntu.com wily-security InRelease              
Hit http://in.archive.ubuntu.com wily InRelease                        
Hit http://in.archive.ubuntu.com wily-updates InRelease                
Get:1 http://ppa.launchpad.net wily InRelease [15.4 kB]                
Hit http://in.archive.ubuntu.com wily-backports InRelease                                                 
Hit http://in.archive.ubuntu.com wily/main Sources                                                        
Hit http://security.ubuntu.com wily-security/main Sources             
Get:2 http://ppa.launchpad.net wily/main amd64 Packages [6,420 B]                   
Hit http://in.archive.ubuntu.com wily/restricted Sources
.
.
.
backports/multiverse i386 Packages                                                                                                   
Hit http://in.archive.ubuntu.com wily-backports/main Translation-en                                                                                                        
Hit http://in.archive.ubuntu.com wily-backports/multiverse Translation-en                                                                                                  
Hit http://in.archive.ubuntu.com wily-backports/restricted Translation-en                                                                                                  
Hit http://in.archive.ubuntu.com wily-backports/universe Translation-en                                                                                                    
Fetched 30.8 kB in 24s (1,279 B/s)                                                                                                                                         
Reading package lists... Done


Now its time to install power commands with the following command.

root@linuxhelp:~# apt-get install power-commands -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  consolekit libck-connector0 libpam-ck-connector
The following NEW packages will be installed:
  consolekit libck-connector0 libpam-ck-connector power-commands
0 upgraded, 4 newly installed, 0 to remove and 252 not upgraded.
Need to get 97.9 kB of archives.
.
.
.
Processing triggers for desktop-file-utils (0.22-1ubuntu3) ...
Processing triggers for bamfdaemon (0.5.2~bzr0+15.10.20150627.1-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.58ubuntu1) ...
Setting up libck-connector0:amd64 (0.4.6-5) ...
Setting up consolekit (0.4.6-5) ...
Setting up libpam-ck-connector:amd64 (0.4.6-5) ...
Setting up power-commands (0.2.0-0extras14.04.0) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...
Processing triggers for dbus (1.10.0-1ubuntu1) ...


Open the installed application through the Unity dashboard. Type shutdown in the search bar, click and drag it to the Unity dash.

Search for restart option and drag it to the unity dash.

Then search for logout option and make it as shortcut.

Finally make shortcut for the hibernate option in the unity dash.

Now you can able to see the created shortcuts for power buttons in the Unity dashboard.

FAQ
Q
How do I find the "device code" for a temperature sensor?
A
*Run the PTDaemon program with zero command line parameters or -h.
*A list of temperature sensors and power analyzers will be displayed, along with the 'help' information.
Q
Is a power analyzer required to run the benchmark?
A
1.For compliant runs, yes.
2.For any other runs, the SPEC PTDaemon (Power Temperature Daemon) has a device type "dummy" for these occasions.
3.You may also remove the power analyzer data source from the ccs.props file.
Q
What is power commands?
A
Power Commands is a graphical front-end tool for Linux systems. It allows the system administrator to create some power tasks like Shutdown, Restart, Logout and Hibernate in an easy manner.
Q
Are the results of SPECpower_ssj2008 comparable to any other benchmarks?
A
*No, they are not.
*Several substantive changes have been made that make the "ssj2008" workload(s) unique and different from all other benchmarks.
Q
What is PMBus in Power commands?
A
PMBus is a non-proprietary standard for communication with power converters of all types. The PMBus specification is in three parts.