This was orginally written for ASUS TUF FX505GD laptops, but it should work on any similar linux laptops.
$ cat /sys/class/power_supply/BAT0/charge_control_end_threshold
If this command returns a value, then your laptop is probably supported.
⚠️ Warning: This application is not tested on other laptops.
Note: This was written for personal use, so it may not work on your laptop. Please use it at your own risk.
- .NET 8.0.x SDK
$ git clone 'https://github.com/JoseBritto/batman.git'
$ cd batman
$ dotnet publish -o build
$ cd build
$ sudo ./batman install
$ cd build
$ sudo ./batman uninstall
I recommend moving the batman
binary to a folder in your $PATH
so that you can run it from anywhere.