#battery #linux #cli #threshold

app chargectl

Manage charge thresholds on modern Linux machines

2 releases

0.1.1 May 9, 2024
0.1.0 May 9, 2024

#467 in Command line utilities

Download history 217/week @ 2024-05-05 21/week @ 2024-05-12 9/week @ 2024-05-19

247 downloads per month

MIT license

12KB
196 lines

chargectl

builds.sr.ht status MIT licensed

CLI for managing charge thresholds on modern Linux machines. Inspired by TLP.

Usage

$ chargectl --help
Manage charge thresholds on modern Linux machines

Usage: chargectl <COMMAND>

Commands:
  full   Set thresholds to enable immediate charging until full
  get    Get the current start and stop thresholds for a given battery
  set    Set start and stop charge thresholds for a given battery

Options:
  -h, --help     Print help
  -V, --version  Print version

systemd

An example service unit can be found here. You may need to modify the ExecStart path depending on your installation configuration.

Dependencies

~1.2–1.8MB
~34K SLoC