A script to enable/disable battery conservation mode in Lenovo Ideapad laptops. 💻 🔋 💂♂️
When the conservation mode is enabled, your battery will only be charged to 60% to maximize its lifespan. On Windows, Lenovo Vantage is usually used to enable this mode. On GNU/Linux, this can be done manually. This script is a shortcut to enable/disable this mode.
ideapad-cm
is available in the Arch User Repository
(AUR). The following command
installs ideapad-cm
using yay
AUR helper.
yay -S ideapad-cm
If you use Arch Linux, then you can use the bundled PKGBUILD file to build and install this script.
git clone https://github.com/tildehacker/ideapad-conservation-mode.git
cd "ideapad-conservation-mode"
makepkg
sudo pacman -U *.tar.xz
Clone this repository to a directory of your choice and add it to your PATH environment variable.
git clone https://github.com/tildehacker/ideapad-conservation-mode.git
Adjust .bashrc
according to your current shell.
echo "export PATH=\$PATH:$( pwd )" >> ~/.bashrc
Usage:
ideapad-cm enable|disable|status [acpi_call|ideapad_laptop]
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the GPL-3.0 License - see the LICENSE file for details.