mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-20 02:00:03 +01: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>
22 lines
344 B
Meson
22 lines
344 B
Meson
rules = [
|
|
'60-upower-battery.rules',
|
|
'95-upower-wup.rules',
|
|
'95-upower-hid.rules',
|
|
]
|
|
|
|
hwdb = [
|
|
'95-upower-hid.hwdb',
|
|
'60-upower-battery.hwdb',
|
|
]
|
|
|
|
if os_backend == 'linux'
|
|
install_data(
|
|
rules,
|
|
install_dir: udevrulesdir,
|
|
)
|
|
|
|
install_data(
|
|
hwdb,
|
|
install_dir: udevhwdbdir,
|
|
)
|
|
endif
|