Arch Linux Laptop Battery Tweaks Guide
INFO
This guide helps improve battery life on Arch Linux laptops.
1. Battery Optimization
WARNING
Avoid using both tlp
and auto-cpufreq
together as they can conflict with each other. Choose one power management tool.
1.1. Using auto-cpufreq
(Recommended)
INFO
auto-cpufreq
adjusts CPU frequency and power based on system load.
Install
auto-cpufreq
:bashyay -S auto-cpufreq
Test in live mode:
bashsudo auto-cpufreq --live
Enable automatic startup:
bashsudo auto-cpufreq --install
Monitor system behavior:
bashsudo auto-cpufreq --monitor
View CPU stats:
bashsudo auto-cpufreq --stats
Uninstall:
bashsudo auto-cpufreq --remove
1.2. Using TLP (Advanced Power Management)
INFO
TLP optimizes battery life automatically.
Install TLP:
bashsudo pacman -S tlp tlp-rdw
Start and enable TLP:
bashsudo systemctl enable tlp --now
Check TLP status:
bashsudo tlp-stat
Optional: Install GUI for TLP:
bashyay -S tlpui
1.3. CPU Scaling Governor
INFO
Balance performance and battery use by adjusting the CPU governor.
Install
cpupower
:bashsudo pacman -S cpupower
View current CPU governor:
bashcpupower frequency-info
Set CPU governor:
For balanced performance:
bashsudo cpupower frequency-set -g schedutil
For battery efficiency:
bashsudo cpupower frequency-set -g powersave
Make the governor setting persistent:
Edit the
cpupower
configuration:bashsudo nano /etc/default/cpupower
Add
GOVERNOR="schedutil"
orGOVERNOR="powersave"
.Enable and start the service:
bashsudo systemctl enable cpupower --now
2. Adjust Swap Usage (Swappiness)
INFO
Reduce swap usage for better performance.
Check current swappiness:
bashcat /proc/sys/vm/swappiness
Set swappiness to 10:
Edit
/etc/sysctl.conf
:bashsudo nano /etc/sysctl.conf
Add:
bashvm.swappiness=10
Apply changes:
bashsudo sysctl -p
3. File System Performance (noatime)
INFO
Disable file access time writes for better performance, especially on SSDs.
Edit
/etc/fstab
:bashsudo nano /etc/fstab
Add
noatime
to the root partition:bashUUID=<your-disk-UUID> / ext4 defaults,noatime 0 1
Reboot to apply changes:
bashsudo reboot
4. System Monitoring Tools
4.1. powertop
(Power Consumption Monitor)
Install
powertop
:bashsudo pacman -S powertop
Run
powertop
in interactive mode:bashsudo powertop
Optimize settings:
bashsudo powertop --auto-tune
4.2. btop
or htop
(Resource Monitoring)
Install
btop
:bashsudo pacman -S btop
Install
htop
:bashsudo pacman -S htop