We stand with Palestine ❤️ Free Palestine 🇵🇸

No to genocide in Gaza. No to the killing of civilians. No to targeting hospitals and schools. No to deception and double standards.

How to optimize your laptop battery life on Linux?

How to optimize your laptop battery life on Linux?
Commonly, you get shorter battery life (run time on a full charge) on GNU Linux compared to other operating systems, as your favorite distribution is probably not optimized for laptops, and your laptops are not Linux-optimized. However, as a Linux user, you still can get a better laptop battery life thanks to TLP.

This article is sponsored by TUXEDOComputers, a German company that produces Linux hardware, notebooks, computers, and more. Always and forever, all ideas and opinions on this website are wholly mine, as my values are not for sale. To learn more, read our Code of Ethics.{alertInfo}

{tocify} $title={Table of Contents}

What is TLP?

TLP is a free and open-source command-line utility that automatically applies various parameters and settings to reduce power consumption and optimize battery life.
TLP features
In addition, TLP offers plenty of customization options that allow you to configure its settings depending on your requirements.

How to install and configure TLP on Linux?

Installing TLP on Linux is as easy as typing a few command lines in a terminal:
  • Open a terminal window
  • Install the TLP package:
Debian & derivatives: sudo apt install tlp
Arch & derivatives: sudo pacman -Sy tlp
Fedora & derivatives: sudo dnf install tlp{codeBox}
  • Enable & start TLP service:
sudo systemctl enable tlp.service
sudo systemctl start tlp.service{codeBox}
  • Check TLP service status (to make sure that the TLP service is loaded and active):
sudo systemctl status tlp.service{codeBox}
How to check TLP service status?
If you experience performance issues (e.g., freeze and sudden reboot) after installing TLP, you can uninstall or disable it:
  • To uninstall TLP:
Debian & derivatives: sudo apt remove tlp
Arch & derivatives: sudo pacman -Rs tlp
Fedora & derivatives: sudo dnf remove tlp
  • To disable the TLP service:
sudo systemctl disable tlp.service
sudo systemctl stop tlp.service{codeBox}

In most cases, you do not need to configure TLP settings, but if you decide to do so, make the official documentation your companion.

Bonus: TLP frontend (GUI) apps

The Slimbook Battery and TLP-UI applications provide a GTK interface to make tweaking TLP settings smooth and handy.
Also, both apps are open-source and offer user-friendly interfaces with a straightforward menu.
It is worth noting that Slimbook Battery offers extra features and options from AMD and NVIDIA.

If you enjoy reading my blog and want to support it: Paypal account: contact@linuxtechmore.com. For more support options contact me.{alertIdea}
Djalel Oukid

Science teacher, PhD student, Master degree in Microbial biotechnology , Microbiologist, designer, video editor, podcaster & blogger. linkedin portfolio github

Comments are welcomed and encouraged on this blog. Spam, abusive and off-topics comments will be deleted. Please read our Comments policy before commenting.

Post a Comment (0)
Previous Post Next Post
Blackview BV9900 Pro Thermal Camera Mobile Phone Helio P90 Octa Core 8GB+128GB IP68 Rugged Smartphone 48MP Quad Rear Camera