https://askubuntu.com/questions/1078939/ubuntu-18-04-battery-life
http://tipsonubuntu.com/2018/11/18/quick-tip-improve-battery-life-ubuntu-18-04-higher/
This is how I get the best battery life with my Dell XPS 15 9570 (nvidia graphics) on any Ubuntu 18.04+ based system (Elementary OS, Mint, etc.)
Install packages:
sudo apt-get install tlp powertop
Enable tlp:
sudo tlp start
Check that it's running:
sudo tlp-stat -s
Check battery drain watts with AC disconnected and most apps and browser tabs closed (give it a few moments to stabilise):
sudo powertop
Press ESC to exit (it takes a few seconds).
http://tipsonubuntu.com/2018/11/18/quick-tip-improve-battery-life-ubuntu-18-04-higher/
[Quick Tip] Improve Battery Life in Ubuntu 18.04 / Higher
For laptop users who want to get better battery life, besides using a lightweight desktop environment, you can use power management tool called TLP.
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.
How to Install TLP in Ubuntu:
1. TLP is available in Ubuntu universe repository. Simply open terminal (Ctrl+Alt+T) from application launcher.
2. Then run command to install the tool:
sudo apt install tlp
Type user password (no asterisks feedback) when it prompts and hit Enter.
For lazy men, you’re done as the tool comes with a default configuration already optimized for battery life.
Install graphical UI for TLP:
To fulfil your specific requirements, there’s a GTK user interface called TLPUI which makes it easy to change the configuration.
1. To install the tool, open terminal (Ctrl+Alt+T) and run command to add PPA:
sudo add-apt-repository ppa:linuxuprising/apps
Type user password (no visual feedback) when it asks and hit Enter to continue.
2. Then install TLPUI via command:
sudo apt install tlpui
3. (OPTIONAL) To remove the tool, run command:
sudo apt remove --autoremove tlpui
And go to Software & Updates -> Other Software to remove the PPA: