Toggle Lenovo battery conservation mode from Linux Mint Power Manager #621
silviuchingaru
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I was trying to implement the Lenovo battery conservation mode from Power Manager but I have no experience with Linux Mint programming so I end up with the following script that I can enable and disable Lenovo battery conservation mode by running a command like
conservation_mode enable|disable
.The script is placed in
/usr/local/bin/conservation_mode
and has the following content:I tried to implement it to Power Manager GUI like this:
But I don't have experience with Linux Mint / GTK prgramming and I did not figgured out how to implement it also from GUI.
As far as I discovered, in
/usr/share/glib-2.0/schemas/org.cinnamon.settings-daemon.plugins.power.gschema.xml
needs to be added something like:after edit, we need to recompile using
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
and then change/usr/share/cinnamon/cinnamon-settings/modules/cs_power.py
inbut I did not figure it out how to add a listener and where to add it for "battery-conservation-mode" setting "on change" to actualy enable or disabling the conservation mode using something like:
I think this is a must have, at least for Lenovo laptops, because this setting is indeed protecting your battery and I have laptops of 6-8 years old and their batteries are still keeping current.
I'm willing to contribute but a little help would be appreciated.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions