Hi > [...] > > Assuming I have got this right, then now a days we have > a standard power_supply class sysfs attribute for this, > charge_start_threshold . > > Or maybe I got it wrong and the battery_care_limit means > never charge above that value? Then the new standard > power_supply class sysfs attribute would be > charge_stop_threshold. > [...] A small note, as per Documentation/ABI/testing/sysfs-class-power, the attributes are charge_control_{start,end}_threshold. The charge_{start,stop}_threshold attributes have only ever been used in the thinkpad_acpi driver (as far as I know). And it has been extended not so long ago to use the "new" attributes. > [...] > See thinkpad_acpi for an example how to do this. > [...] In addition, the asus-wmi and huawei-wmi drivers could also serve as examples. > [...] Regards, Barnabás Pőcze