elementary / elementary/settings-power
Battery charge capacity protection
- Dominant language
- Vala
- Stars
- 21
- Forks
- 14
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 1
Description
### Problem
I have a Lenovo laptop (Yoga Slim 7 for that matter) and it supports a technology called Conservation Mode which basically locks the charge at 55-60% to extend the battery's health. This feature is fully supported by the Linux kernel and works on elementaryOS through the command line. But I miss being able to toggle it on and off through the GUI like I used to be able to on Gnome using [this](https://extensions.gnome.org/extension/4331/ideapad-mode/) and [this](https://extensions.gnome.org/extension/2992/ideapad/) extension. Other desktop environments also seem to lack a toggle for this and no one has a replacement as clean as Gnome's.
### Proposal
Now that there is a new `switchboard-plug-power` interface, a toggle could appear for supported laptops in their own section that would visualize the outputs of the following commands:
`sudo sh -c 'echo 1 | sudo tee /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode'` => Conservation Mode on
`sudo sh -c 'echo 0 | sudo tee /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode'` => Conservation Mode off
`cat /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode` => displays the current status of the mode
### Prior Art (Optional)
#### This is how I imagine it to look like:

Contributor guide
Assessment
This issue has not been assessed yet.