Skip to content

Conversation

@dingbat32
Copy link

Adds the CHARGE_MODE setting that can be set to different options depending on your system.

On my Lenovo Legion, I can set it to Long_Life in order to limit the battery to 80% maximum charge. This uses the new charge_types property of the sysfs power supply class. This is equivalent to the old conservation_mode property, but has support for other hardware as well, such as with Dell or HP, although options may be different.

Not sure if I did everything correctly, but I think this a useful setting that I would like to see in TLP. I ran make checkall to check for any code issues, and did some testing on my system.

Will try and set the charge type for all batteries detected

Signed-off-by: Sven Willett <sven.willett@gmail.com>
Signed-off-by: Sven Willett <sven.willett@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant