batmanager

Crates.iobatmanager
lib.rsbatmanager
version1.0.2
sourcesrc
created_at2023-06-03 01:50:47.080262
updated_at2023-06-04 23:05:51.024176
descriptionTool for configuring Lenovo battery settings
homepage
repository
max_upload_size
id881315
size20,519
Rein Fernhout (LevitatingBusinessMan)

documentation

README

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
Commit count: 0

cargo fmt