3 stable releases
1.0.2 | Jun 4, 2023 |
---|---|
1.0.1 | Jun 3, 2023 |
#1632 in Command line utilities
31 downloads per month
9KB
148 lines
Batmanager
Tool for configuring Lenovo battery settings. Based on battmgr
.
Usage
Usage: batmanager [OPTIONS]
Options:
-c, --conservation [<on/off>] get or set the conservation mode [possible values: on, off]
-r, --rapid [<on/off>] get or set the rapid charing mode [possible values: on, off]
-p, --performance [<1/2/3>] get or set the performance mode [possible values: "intelligent-cooling (1)", "extreme-performance (2)", "battery-saving (3)"]
-h, --help Print help
-V, --version Print version
Examples
Read current configuration: batmanager
Read performance mode: batmanager -p
Turn on conservation mode: batmanager -c on
Turn off rapid charge mode: batmanager -r off
Turn conservation mode off, rapid charge on and set performance mode to "Intelligent Cooling" : batmanager -c0 -r1 -p1
Installation
This tool relies on the acpi_call kernel module.
Cargo
cargo install batmanager
ArchLinux
paru -S batmanager
Dependencies
~1–12MB
~81K SLoC