Home

Battery Charging Threshold for Acer laptops on Linux

As the owner of an Acer Nitro 5 (AN515-57), I wanted to extend my battery's lifespan by limiting its charging capacity to 80%. Unfortunately, Acer doesn't provide an official solution for this on Linux. However, we can still achieve this functionality.

The acer-wmi-battery repository provides a custom kernel module for this feature. However, using the alternatives below is recommended so the module is rebuilt automatically when the kernel is updated.

You can use this fork with DKMS support or check repositories for packages providing this module, such as the AUR on Arch Linux (DKMS) or Copr on Fedora (akmods).

Make health_mode persist between reboots (DKMS/akmods)

The health_mode value sometimes resets to 0, disabling the feature. Running the command below configures the module to always load with the enable_health_mode=1 parameter on boot.

echo "options acer_wmi_battery enable_health_mode=1" | sudo tee /etc/modprobe.d/acer-wmi-battery.conf