a simple bash file which lets you control your battery conservation mode in your linux driven lenovo ideapad gaming 3i
modern laptops have a special battery mode name “Conservation mode” which tends to extends the laptop battery life by charging it only to a specific percentage (usually 55-60%)
this project provides a simple command line solution for lenovo laptops which works with Linux to change battery state easily without the use of “lenovo vantage” software
Oversimplified , it simply go through you linux system files and searches for a file called “conservation_mode” and changes the value stored in it depends on the command you pass as a command line argument
as the previous questions mention , the project is only for lenovo idapad gaming 3i laptops .
sudo mv CM_switch.sh /path/to/your/foldersudo chmod +x path/to/CM_switch.shadding this line to you shell configuration file (.bashrc or .zshrc)
alias cmode="sudo path/to/where/CM_switch.sh"source <path-to-shell-configuration>to check the state of you conservation_mode:
0 : conservation mode is disabled
1 : conservation mode is enabled
cmode statusto activate conservation mode:
cmode on to disable conservation mode:
cmode off