Battery manager to handle system performance modes and charge modes through acpi_calls (for ideapad 15are05/14are05/14alc05/14sARH).
On Windows native software to support battery and performance operations exist, on GNU/Linux, it's possible to handle system performance modes and battery charge modes making acpi_calls
manually. This script makes it easy to manage such operations.
In order to use battmngr the acpi-call
module needs to be installed.
To install battmngr
you only need to download the script, put it in a directory of your choice and then add it to your PATH.
Usage: battmngr [OPTION...] MODE
Options:
-r, --read read current battery mode
-s, --set set battery mode
-rc, --read-charge read current charge mode
-sc, --set-charge set charge mode
Battery Modes:
1 Intelligent Cooling
2 Extreme Performance
3 Battery Saving
Charge modes:
1 Rapid Charge On
2 Rapid Charge Off
3 Battery Conservation On
4 Battery Conservation Off
Examples:
battmngr -r
battmngr -s 1
battmngr -rc
battmngr -sc 1
battmngr -s 1 -r -sc 4 -rc
battmngr
seem to be working fine on the supported devices, but only because ACPI calls values were publicly known.
If you know any way of discovering ACPI calls values for specific laptop models, please open an issue detailing your process. This could help supporting many more potentially compatible laptops.
When in configuration:
issuing the command battmngr -sc 1
will turn on Rapid Charge mode but disable Battery Conservation mode.
It's possible to activate both Rapid Charge and Battery Conservation modes starting from configuration:
and issuing the command battmngr -sc 3
This configuration is not obtainable using official lenovo software and should be avoided.
Check here for more: https://wiki.archlinux.org/title/Lenovo_IdeaPad_5_15are05#Note
This project is licensed under the GPL-3.0 License.