Skip to content
Go back

How to configure battery charge thresholds on Arch Linux for a Dell XPS 13 using tlp to extend battery lifespan

Updated:
Edit page

Background

fastfetch Output

[jeff@dell ~]$ fastfetch 
                  -`                     jeff@dell
                 .o+`                    ---------
                `ooo/                    OS: Arch Linux x86_64
               `+oooo:                   Host: XPS 13 9360
              `+oooooo:                  Kernel: Linux 6.18.6-arch1-1
              -+oooooo+:                 Uptime: 1 hour, 4 mins
            `/:-:++oooo+:                Packages: 567 (pacman)
           `/++++/+++++++:               Shell: bash 5.3.9
          `/++++++++++++++:              Display (SHP1449): 1920x1080 in 13", 60 Hz [Built-in]
         `/+++ooooooooooooo/`            Terminal: /dev/pts/1
        ./ooosssso++osssssso+`           CPU: Intel(R) Core(TM) i7-8550U (8) @ 4.00 GHz
       .oossssso-````/ossssss+`          GPU: Intel UHD Graphics 620 @ 1.15 GHz [Integrated]
      -osssssso.      :ssssssso.         Memory: 1012.50 MiB / 15.50 GiB (6%)
     :osssssss/        osssso+++.        Swap: 0 B / 7.75 GiB (0%)
    /ossssssss/        +ssssooo/-        Disk (/): 4.45 GiB / 912.85 GiB (0%) - ext4
  `/ossssso+/:-        -:/+osssso+-      Local IP (wlan0): 10.91.119.166/24
 `+sso+:-`                 `.-/+oso:     Battery (DELL TP1GT61): 77% [AC Connected]
`++:.                           `-/+/    Locale: en_US.UTF-8
.`                                 `/

Install Arch Linux

I installed via archinstall. Pretty standard, just a couple choices worth calling out:

Manage Battery

sudo systemctl mask --now power-profiles-daemon.service
sudo pacman -S tlp
sudo systemctl enable --now tlp.service
...
# Battery charge level below which charging will begin.
START_CHARGE_THRESH_BAT0=50
# Battery charge level above which charging will stop.
STOP_CHARGE_THRESH_BAT0=60
...

This means charging starts when the battery drops below 50%, and stops at 60%. Adjust to whatever you prefer (e.g., 70→80 if you still want decent unplugged time).

sudo tlp-stat -b

On Dell laptops you should see the dell battery care plugin and the active threshold values (via /sys/class/power_supply/BAT0/...).


Edit page
Share this post on:

Next Post
My Simple Way to Install Astro + TailwindCSS + Giscus