Any laptop user would like to optimize the battery usage so that he/she gets the best range out of it. Therefore, it’s necessary to know which process is draining up the laptop battery. ‘Powertop’ utility does exactly help you achieve that goal.
Install Powertop and enable it in Fedora
STEP 1: Go to ‘Activities’ and launch ‘Terminal’.
STEP 2: Powertop is included in Fedora’s official repository sources. Therefore, simply enter the following command to install Powertop.
sudo dnf install powertop
STEP 3: You must enter root password and ‘y’ when prompted in the Terminal.
STEP 4: Powertop needs access to hardware to measure power usage. So we will use sudo and give it special privileges.
STEP 5: Since you want to maximize battery life of laptop, you should minimize wakeups. One way to do this is to use powertop’s Tunables page. ‘Bad’ indicates a setting that’s not saving power, although it might be good for performance. ‘Good’ indicates a power saving setting is in effect. You can hit Enter on any tunable to switch it to the other setting.
But powertop package also provides a service that automatically sets all tunables to ‘Good’ for optimal power saving. To use it, run this command:
sudo systemctl start powertop.service
If you’d like the service to run automatically when you boot, run this command:
sudo systemctl enable powertop.service