GICT knowledge base
Maximizing Battery Life on Ubuntu Laptops: Settings and Tools
Published
If you’re using Ubuntu on a laptop, you’ve probably noticed that battery performance can sometimes lag behind what you’d expect from the same hardware running Windows or macOS. That doesn’t mean Ubuntu can’t go the distance-it just takes a bit of fine-tuning. With the right tweaks and tools, you can dramatically improve your laptop’s battery life, giving you the freedom to work, study, or create all day long without constantly hunting for a power outlet.
This guide walks you through the most effective settings, practical steps, and essential tools for maximizing battery life on Ubuntu, whether you’re a casual user, a student, or a power user on the go.
1. Understand What’s Draining Your Battery
Before you can optimize, it helps to know what’s using your power. On Ubuntu, battery drain comes from:
- Display brightness
- CPU activity and scaling
- Background apps and services
- Wi-Fi, Bluetooth, and other peripherals
- Graphics card (especially in laptops with hybrid or discrete GPUs)
- Misconfigured power settings or drivers
2. Tweak Power Settings in Ubuntu
a) Adjust Screen Brightness
Your display is usually the biggest battery drainer. Lowering brightness can make a significant difference.
- Use the brightness keys on your laptop keyboard.
- Or, go to Settings > Power and adjust the brightness slider.
b) Set Automatic Screen Blank and Suspend
In Settings > Power, set the screen to blank after a short period of inactivity (e.g., 5 minutes). Set your laptop to suspend when inactive or when the lid is closed.
c) Turn off Unused Hardware
Disable Bluetooth if you’re not using it: Open the Bluetooth menu or run rfkill block bluetooth. Turn off Wi-Fi when you’re wired or offline.
3. Optimize CPU and System Performance
a) Use Power Profiles
Ubuntu 21.04 and later come with Power Profiles:
- Go to Settings > Power: Choose Power Saver for extended battery life.
- You can also use the command line:
powerprofilesctl set power-saver
b) CPU Frequency Scaling
The CPU can run in different modes-performance, balanced, and powersave. Install cpufrequtils:
sudo apt install cpufrequtils
Check modes:
cpufreq-info
Set powersave mode:
sudo cpufreq-set -r -g powersave
4. Install Battery Life Optimization Tools
a) TLP: Advanced Power Management
TLP is a command-line tool that applies a set of power-saving tweaks automatically.
Install TLP:
sudo apt install tlp tlp-rdw
sudo systemctl enable tlp
sudo systemctl start tlp
TLP works out of the box-no configuration needed, but power users can edit /etc/tlp.conf for deeper customization.
Check TLP status:
sudo tlp-stat -s
b) PowerTOP: Analyze and Tune Power Usage
PowerTOP helps you spot what’s using power and enables advanced power-saving tweaks.
Install PowerTOP:
sudo apt install powertop
Run PowerTOP (best plugged in, as it needs calibration):
sudo powertop
Use the Tunables tab to apply suggested optimizations.
c) Laptop Mode Tools (Alternative to TLP)
Some users prefer Laptop Mode Tools, but TLP is generally more user-friendly and effective on modern laptops.
5. Manage Graphics Cards
If you have hybrid graphics (Intel + NVIDIA/AMD), the discrete card can drain your battery even when you’re not gaming.
a) Use Integrated Graphics
For NVIDIA laptops, install the proprietary driver and NVIDIA Prime:
sudo apt install nvidia-driver-XXX nvidia-prime
Switch to Intel (power saving) mode:
sudo prime-select intel
Reboot after switching.
b) Disable Unused GPUs
Some tools (like TLP) can auto-disable unused GPUs; check your TLP configuration.
6. Reduce Background Processes and Startup Applications
Every running service or app uses CPU cycles and power:
- Go to Settings > Startup Applications (or use
gnome-session-properties). - Disable applications you don’t need to run at startup.
- Close tabs and applications you’re not actively using.
7. Keep Your System and Drivers Updated
Run regular updates to ensure you have the latest kernel and power management improvements:
sudo apt update && sudo apt upgrade
Consider using the latest kernel (sometimes available through “Hardware Enablement Stacks” or the Ubuntu Mainline Kernel PPA) for newer laptops.
8. Additional Tips for Extending Battery Life
- Unplug peripherals (USB drives, mice, external monitors) when not needed.
- Mute or lower volume (audio hardware uses power).
- Choose lightweight applications (for example, use Gedit instead of VSCode for quick editing).
- Switch to dark mode if your laptop has an OLED screen (saves power).
9. Monitoring Battery Health
GNOME Power Statistics: Open the Activities overview and search for Power Statistics to see battery wear and charge cycles.
Terminal tools: Install acpi:
sudo apt install acpi
acpi -V
Check for swelling or rapid loss of charge: If your battery is very old or degraded, no amount of tweaking will help-consider a replacement.
10. Real-World Example: From Poor Battery to All-Day Productivity
A developer using Ubuntu on a ThinkPad X1 noticed battery life lasting less than three hours. After lowering brightness, enabling Power Saver mode, installing TLP, and switching to integrated graphics, life improved to over six hours on a single charge-all while keeping essential tools and Wi-Fi running. The biggest difference came from simply closing unused apps and browser tabs, and disabling Bluetooth, which he found was on by default.
Conclusion
Ubuntu’s out-of-the-box battery life is decent, but with a handful of tweaks, community tools like TLP and PowerTOP, and some good usage habits, you can make it truly excellent. The best approach is a combination of smart system settings, background app management, and hardware-aware adjustments. Even older laptops can get a new lease on life with the right setup.
Remember, every laptop is a little different. Experiment with these settings, monitor your results, and make battery-friendly computing part of your routine. With a well-optimized Ubuntu system, you’ll enjoy hours of unplugged productivity-wherever your work or passions take you.
Related guides
How to Set Up zram on a Small VPS
Configure zram on Ubuntu with kernel and swap checks. Understand compressed memory limits, monitor real use and avoid unsafe swap-file changes.
LinuxHow to Find Services That Need a Restart After Updates with needrestart
Find services using outdated libraries with needrestart on Ubuntu. Read restart reports, review automatic restart policy and plan maintenance safely.
LinuxHow to Limit a Linux Service’s Memory with systemd
Limit a Linux service with systemd MemoryHigh, MemoryMax and swap controls. Check cgroup support, diagnose pressure and remove only your own policy.
LinuxHow to Protect SSH with CrowdSec on Ubuntu
Protect SSH with CrowdSec on Ubuntu. Connect log detection to firewall enforcement and test temporary blocking without losing administrator access.
