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
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