summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2017-01-23 15:27:33 +0100
committerBastien Nocera <hadess@hadess.net>2017-01-23 15:27:33 +0100
commit937760f491fd6d9eecfaad0926943d1be1fb1350 (patch)
tree5b24edff732c783427a0e49f41275d27cf76cfe3 /rules
parent3e06274e0020ff14ef53e3dc68c171cd26148813 (diff)
downloadupower-937760f491fd6d9eecfaad0926943d1be1fb1350.tar.gz
linux: Don't talk to HID++ devices ourselves
If the kernel already extract the battery information out of them.
Diffstat (limited to 'rules')
-rw-r--r--rules/95-upower-csr.rules2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/95-upower-csr.rules b/rules/95-upower-csr.rules
index 3b83665..d7d0c3a 100644
--- a/rules/95-upower-csr.rules
+++ b/rules/95-upower-csr.rules
@@ -22,6 +22,8 @@ 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"