[Feature] Getting/Setting Profiles for Charge Thresholds
As has been discussed somewhat on !49 (closed). In particular, @jwrdegoede proposed an approach in !49 (comment 642442)
If the aim is to have profiles matching those the vendor offers, it seems Asus, Huawei, and Lenovo Thinkpads all provide three profiles with somewhat different names and values but similar purposes. It appears the same values are used on all their models supporting the feature:
- https://www.asus.com/us/support/FAQ/1032726/#3
- https://consumer.huawei.com/en/support/content/en-us00688507
- https://support.lenovo.com/fi/en/solutions/ht078208
These appear to be the only vendors providing the feature that currently have drivers in the Linux kernel. At System76, we're working on adding this feature (but haven't quite released it yet).
Apparently ideapad_laptop
has a conservation_mode
, but not arbitrary thresholds (#120). That could probably be exposed as two profiles, based on whether it's on or off.
If the profile can be set through UPower, it will have to authenticate through Polkit.