summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2019-05-07 16:36:20 +0200
committerBastien Nocera <hadess@hadess.net>2019-05-07 16:56:09 +0200
commitfb10b80d44a81ba9421a38ba087b50d202fe896b (patch)
tree56bbb4cd01127af8f2af47e84383f5795e0eae35
parent8ead05234c70c7e2779d671f1d8f7e294e11cf5a (diff)
rules: Split off HID++ rules
They should probably have been split off from the start.
-rw-r--r--rules/95-upower-csr.rules14
-rw-r--r--rules/95-upower-hidpp.rules14
-rw-r--r--rules/Makefile.am3
3 files changed, 16 insertions, 15 deletions
diff --git a/rules/95-upower-csr.rules b/rules/95-upower-csr.rules
index d7d0c3a..7c5f560 100644
--- a/rules/95-upower-csr.rules
+++ b/rules/95-upower-csr.rules
@@ -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"
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"
diff --git a/rules/95-upower-hidpp.rules b/rules/95-upower-hidpp.rules
new file mode 100644
index 0000000..d7114b8
--- /dev/null
+++ b/rules/95-upower-hidpp.rules
@@ -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"
diff --git a/rules/Makefile.am b/rules/Makefile.am
index 754cd59..5262d9e 100644
--- a/rules/Makefile.am
+++ b/rules/Makefile.am
@@ -3,7 +3,8 @@
udevrules_DATA = \
95-upower-wup.rules \
95-upower-hid.rules \
- 95-upower-csr.rules
+ 95-upower-csr.rules \
+ 95-upower-hidpp.rules
EXTRA_DIST = \
$(udevrules_DATA)