How to check Which Application is Draining Your Battery on Linux

I am a highly motivated and experienced engineer with a passion for helping teams deliver software faster, more reliably, and more securely. I am proficient in a wide range of DevOps technologies along with Software Development and have a proven track record of success in leading and mentoring teams. I am also a strong communicator and educator, and I enjoy sharing my knowledge with others.
Powertop is a tool to diagnose issues with power consumption and power management to help set power saving settings.
Installation
Arch Linux:
sudo pacman -S powertop
Debian based (Ubuntu, Mint, Raspbian ..etc):
add-apt-repository ppa:eugenesan/ppa
apt-get update
apt-get install powertop -y
PowerTOP has been installed, you can use the following command to know more about it.
powertop --help
Profile battery usages
Following command will generate the HTML file called powerreport.html Open the report in your favorite web browser.
sudo powertop --html=powerreport.html
powerreport.html file will be stored on DIR where you are running this command.

Tuning
sudo powertop
The Tuning tab of the report shows the actual parameters suggested by the tool to apply to save power
For more information: https://wiki.archlinux.org/index.php/powertop




