mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-04-06 04:50:43 +02:00
Set per battery-specific start/stop charge limits in udev as environment variable with the option to allow a user to override the default 60% start and 80% stop charge limit. Signed-off-by: Kate Hsuan <hpa@redhat.com>
7 lines
237 B
Text
7 lines
237 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"
|
|
|
|
LABEL="battery_end"
|