/lenopow

A script to enable/disable battery conservation mode in Lenovo Ideapad/LEGION notebooks. Can also override the automatic screen dimming when removed from a power source.

Primary LanguageShellThe UnlicenseUnlicense

lenopow

Lenovo Ideapad/LEGION battery conservation mode on Manjaro Linux, Artix Linux, and possibly most Arch-based distributions

lenopow allows managing Lenovo Ideapad's/LEGION's firmware on the battery and shifts between the usual charging thresholds from 95/100% to 55/60%. In some cases, not charging the battery to 100% constantly may improve the overall lifespan of the battery. This setting is suggested for a system that is always plugged into the AC adapter.

Installation

The standard make install routine is used.

The following additional variables are supported:

  • DESTDIR -- determines environment for staged installs,
  • PREFIX -- determines where the script will be installed (default: $HOME/.local).

Requirements

The script requires the following to run:

  • zsh
  • linux >= 4.14

Usage

Run: lenopow [operation]

Operation Description
-h Show this message.
-v Show script version.
-s Show battery protection status and current brightness.
-e Enable battery protection (charge level 55-60%).
-d Disable battery protection (charge level 100%).
-b BRIGHTNESS Set backlight brightness, default to max if not given

License

This simple wrapper script, with a definitely too big name, is licensed under the Unlicense - see the LICENSE file for details.