mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-29 20:28:19 +02:00
Add CHARGE_LIMIT support for systems only providing charge_control_end_threshold. This allows UPower to configure charge thresholds when the specific sysfs property is present. Related: https://gitlab.freedesktop.org/upower/upower/-/merge_requests/308 Resolves: https://gitlab.freedesktop.org/upower/upower/-/issues/342 Signed-off-by: Kate Hsuan <hpa@redhat.com>
11 lines
418 B
Text
11 lines
418 B
Text
ACTION=="remove", GOTO="battery_end"
|
|
|
|
SUBSYSTEM=="power_supply", ATTR{charge_control_start_threshold}!="", \
|
|
IMPORT{builtin}="hwdb 'battery:$kernel:$attr{model_name}:$attr{[dmi/id]modalias}'", \
|
|
GOTO="battery_end"
|
|
|
|
SUBSYSTEM=="power_supply", ATTR{charge_control_end_threshold}!="", \
|
|
IMPORT{builtin}="hwdb 'battery:$kernel:$attr{model_name}:$attr{[dmi/id]modalias}'", \
|
|
GOTO="battery_end"
|
|
|
|
LABEL="battery_end"
|