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
:shellyay -S auto-cpufreq
Test in live mode:
shellsudo auto-cpufreq --live
Enable automatic startup:
shellsudo auto-cpufreq --install
Monitor system behavior:
shellsudo auto-cpufreq --monitor
View CPU stats:
shellsudo auto-cpufreq --stats
Uninstall:
shellsudo auto-cpufreq --remove
1.2. Using TLP (Advanced Power Management)
INFO
TLP optimizes battery life automatically.
Install TLP:
shellsudo pacman -S tlp tlp-rdw
Start and enable TLP:
shellsudo systemctl enable tlp --now
Check TLP status:
shellsudo tlp-stat
Optional: Install GUI for TLP:
shellyay -S tlpui
2. Adjust Swap Usage (Swappiness)
INFO
Reduce swap usage for better performance.
Check current swappiness:
shellcat /proc/sys/vm/swappiness
Set swappiness to 10:
Edit
/etc/sysctl.conf
:shellsudo nano /etc/sysctl.conf
Add:
shellvm.swappiness=10
Apply changes:
shellsudo sysctl -p
3. File System Performance
3.1. (SSD) Configuring noatime
INFO
Disabling file access time noatime
prevents unnecessary disk writes, improving performance and longevity, especially on SSDs.
Edit
/etc/fstab
:shellsudo nano /etc/fstab
Add
noatime
to the root partition:iniUUID=<your-disk-UUID> / ext4 defaults,noatime 0 1
Reboot to apply changes:
shellsudo reboot
3.2. (HDD) Configuring HDD Spin Times
INFO
Make your HDD spin down after a given amount of time, this will improve longevity and save power. The value is in multiples of 5 seconds. Example: To set it to 10 minutes (600 seconds)
WARNING
Setting this too low may cause frequent spin-ups, which can reduce drive lifespan.
Set the spindown timeout:
shellsudo hdparm -S 120 /dev/sdX
To disable spindown:
shellsudo hdparm -S 0 /dev/sdX
4. System Monitoring Tools
4.1. powertop
(Power Consumption Monitor)
Install
powertop
:shellsudo pacman -S powertop
Run
powertop
in interactive mode:shellsudo powertop
Optimize settings:
shellsudo powertop --auto-tune
4.2. btop
or htop
(Resource Monitoring)
Install
btop
:shellsudo pacman -S btop
Install
htop
:shellsudo pacman -S htop