In this post we will go through the steps to achieve better battery life starting with using TLP, and then later in the post on how to make sure you have graphics acceleration for video playback so your battery usage while watching videos can be massivley decreased.
TLP
To start with we are going to want to install TLP, this will vary from distro to distro but I have listed a few common ones here below.
|
|
After this we can configure the basic power saving settings, we are assuming you have intel_pstate driver which you can check with “cpupower frequency-info” and is the default for Arch, Fedora and Ubuntu. Load the below snippet into 01-basic.conf in /etc/tlp.d/
|
|
Now the above is what gives us most of a boost, but the below you can also add. Please read the notes as some of it might not be wanted.
|
|
Now go ahead and enable the service with “systemctl enable –now tlp” and you should be saving alot of power!. I hope this guide helped and if it did you can leave a star on the Repository. You can test how much power your device uses with my script Here
|
|
Enable GPU Acceleration
To enable GPU acceleration for any firefox based browser following the below steps
- Install intel-media-driver
|
|
- Check about:support and check if compositing value is “WebRender”, if it is not when we are in about:config later add gfx.webrender.all as a true value to force it to use it.
- Go into about:support of your firefox browser by entering it into the URL bar.
- Set “media.ffmpeg.vaapi.enabled” to true
- If you are running wayland start firefox with the enviroment variable set “MOZ_ENABLE_WAYLAND” to 1.
Using GPU Acceleration before adding TLP dropped usage from about 15-20w to 10-13w.
- Note: For Fedora you will need to do some extra steps to get it working look at the Wiki.
Other Optimizations
Press FN + Space to disable Keyboard backlight which usually saves around 0.5w.
Results
This is at 50% brightness, using a 1TB SN770, 2x16GB 3600MHz DDR4 RAM, i5-1240p with 2xUSB-C and 1xUSB-A. For watching videos it is while watching a 1080p video on youtube.
Configuration:
- Hyprland
- Waybar
- Librewolf
- Neovim
Info | Idle | Editing Text Documents | Scrolling Through Content | Watching 1080p Videos |
---|---|---|---|---|
Before Graphics Acceleration | 7-8w | 8-10w | 10-14w | 15-20w |
Before TLP | 7-8w | 8-10w | 10-14w | 10-13w |
After TLP | 2-5w | 5-7w | 7-9w | 10w |