mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-25 02:10:13 +01:00
rules: Split off HID++ rules
They should probably have been split off from the start.
This commit is contained in:
parent
8ead05234c
commit
fb10b80d44
3 changed files with 16 additions and 15 deletions
|
|
@ -19,17 +19,3 @@ ATTR{idVendor}=="046d", ATTR{idProduct}=="c512", ENV{UPOWER_PRODUCT}="Keyboard+M
|
||||||
ATTR{idVendor}=="046d", ATTR{idProduct}=="c702", ENV{UPOWER_PRODUCT}="Presenter", ENV{UPOWER_BATTERY_TYPE}="mouse"
|
ATTR{idVendor}=="046d", ATTR{idProduct}=="c702", ENV{UPOWER_PRODUCT}="Presenter", ENV{UPOWER_BATTERY_TYPE}="mouse"
|
||||||
|
|
||||||
LABEL="up_csr_end"
|
LABEL="up_csr_end"
|
||||||
|
|
||||||
# Unifying HID++ devices
|
|
||||||
SUBSYSTEM!="hid", GOTO="up_unifying_end"
|
|
||||||
# Kernel provides the battery information already
|
|
||||||
ATTRS{idVendor}=="046d", TEST=="builtin_power_supply", GOTO="up_unifying_end"
|
|
||||||
ATTRS{idVendor}=="046d", ENV{UPOWER_VENDOR}="Logitech, Inc."
|
|
||||||
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b", DRIVER=="logitech-djdevice", ENV{UPOWER_BATTERY_TYPE}="unifying"
|
|
||||||
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c532", DRIVER=="logitech-djdevice", ENV{UPOWER_BATTERY_TYPE}="unifying"
|
|
||||||
# These devices bind to the hid-logitech-hidpp module since Linux 3.19
|
|
||||||
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b", DRIVER=="logitech-hidpp-device", ENV{UPOWER_BATTERY_TYPE}="unifying"
|
|
||||||
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c532", DRIVER=="logitech-hidpp-device", ENV{UPOWER_BATTERY_TYPE}="unifying"
|
|
||||||
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52f", ENV{UPOWER_BATTERY_TYPE}="lg-wireless"
|
|
||||||
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c531", ENV{UPOWER_BATTERY_TYPE}="lg-wireless"
|
|
||||||
LABEL="up_unifying_end"
|
|
||||||
|
|
|
||||||
14
rules/95-upower-hidpp.rules
Normal file
14
rules/95-upower-hidpp.rules
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
##############################################################################################################
|
||||||
|
# Unifying HID++ devices
|
||||||
|
SUBSYSTEM!="hid", GOTO="up_unifying_end"
|
||||||
|
# Kernel provides the battery information already
|
||||||
|
ATTRS{idVendor}=="046d", TEST=="builtin_power_supply", GOTO="up_unifying_end"
|
||||||
|
ATTRS{idVendor}=="046d", ENV{UPOWER_VENDOR}="Logitech, Inc."
|
||||||
|
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b", DRIVER=="logitech-djdevice", ENV{UPOWER_BATTERY_TYPE}="unifying"
|
||||||
|
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c532", DRIVER=="logitech-djdevice", ENV{UPOWER_BATTERY_TYPE}="unifying"
|
||||||
|
# These devices bind to the hid-logitech-hidpp module since Linux 3.19
|
||||||
|
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b", DRIVER=="logitech-hidpp-device", ENV{UPOWER_BATTERY_TYPE}="unifying"
|
||||||
|
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c532", DRIVER=="logitech-hidpp-device", ENV{UPOWER_BATTERY_TYPE}="unifying"
|
||||||
|
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52f", ENV{UPOWER_BATTERY_TYPE}="lg-wireless"
|
||||||
|
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c531", ENV{UPOWER_BATTERY_TYPE}="lg-wireless"
|
||||||
|
LABEL="up_unifying_end"
|
||||||
|
|
@ -3,7 +3,8 @@
|
||||||
udevrules_DATA = \
|
udevrules_DATA = \
|
||||||
95-upower-wup.rules \
|
95-upower-wup.rules \
|
||||||
95-upower-hid.rules \
|
95-upower-hid.rules \
|
||||||
95-upower-csr.rules
|
95-upower-csr.rules \
|
||||||
|
95-upower-hidpp.rules
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
$(udevrules_DATA)
|
$(udevrules_DATA)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue