Overheating and battery draining

For all supported versions of Ubuntu

You can install TLP, a power management tool, to improve the battery life and reduce overheating.

TLP brings you the benefits of advanced power management for Linux without the need to understand every technical detail. TLP comes with a default configuration already optimized for battery life, so you may just install and forget it. Nevertheless TLP is highly customizable to fulfil your specific requirements. You can obtain TLP in one of 2 ways.

Since Wily, TLP is available by enabling the Universe Repository and issuing the commands sudo apt-get update to update the package list And to install tlp and it's recommended packages

sudo apt install tlp tp-smapi-dkms acpi-call-dkms

If you wish to install from the PPA.

Open a terminal an enter the following commands:

sudo add-apt-repository ppa:linrunner/tlp
sudo apt update
sudo apt install tlp