If you have a GNU / Linux distro installed on an ASUS laptop, then you should know the bat tool. A simple command that can help you easily set charge thresholds for these laptop batteries. That way, you can help extend the life of your batteries.
Linux bat command is intended to replicate utility functions ASUS Battery Health Charging, which is not available for distros, only for Windows.
For example, with bat you can easily switch between a load threshold to another, reset to another previous threshold, see the charge current being used, display the current level of battery charge or status. All this thanks to the use of systemd services (v244 or higher, so you will need a Fedora 32 distro, Ubuntu 20.04, Debian 11.0, openSUSE Leap 15.3, etc., or higher). Bash and Linux kernel 5.4 or higher are also required, as it would not work with some ASUS laptops otherwise.
For its installation, you can follow these steps:
- Access this GitHub page and download the package called bat in your home directory.
- Then you must install in / usr / local / bin with:
cd ~ sudo install bat /usr/local/bin
- Now you can start executing bat commands. For example, to see the load threshold:
- To set the charge threshold to 60% and that when the battery reaches that figure, the charging stops:
bat -t 60
- Make the change permanent:
- Reverse the change:
- Show the current charge level of your battery with bat:
- And even being able to show the status with:
I hope it has helped you and you can enjoy these improvements that with bat are now available in Linux in the absence of ASUS deign to launch its native software also for this platform ...