chiark / gitweb /
hid2hci: support to hid2hci for recovering Dell BT devices after S3
[elogind.git] / extras / hid2hci / 70-hid2hci.rules
1 # do not edit this file, it will be overwritten on update
2
3 ACTION!="add", GOTO="hid2hci_end"
4 SUBSYSTEM!="usb", GOTO="hid2hci_end"
5
6 # Variety of Dell Bluetooth devices - it looks like a bit of an odd rule,
7 # because it is matching on a mouse device that is self powered, but that
8 # is where a HID report needs to be sent to switch modes.
9 #
10 # Known supported devices: 413c:8154, 413c:8158, 413c:8162
11 ATTR{bInterfaceClass}=="03", ATTR{bInterfaceSubClass}=="01", ATTR{bInterfaceProtocol}=="02", ATTRS{bDeviceClass}=="00", ATTRS{idVendor}=="413c", ATTRS{bmAttributes}=="e0", \
12     RUN+="hid2hci --method dell -v $attr{idVendor} -p $attr{idProduct} --mode hci"
13
14 # When a Dell device recovers from S3, the mouse child needs to be repoked
15 # Unfortunately the only event seen is the BT device disappearing, so the mouse
16 # device needs to be chased down on the USB bus.
17 ATTR{bDeviceClass}=="e0", ATTR{bDeviceSubClass}=="01", ATTR{bDeviceProtocol}=="01", ATTR{idVendor}=="413c", ATTR{bmAttributes}=="e0", IMPORT{parent}="ID_*", ENV{REMOVE_CMD}="hid2hci --method dell -v $env{ID_VENDOR_ID} -p $env{ID_MODEL_ID} --mode hci -s 02"
18
19 ENV{DEVTYPE}!="usb_device", GOTO="hid2hci_end"
20
21 # Logitech devices
22 ATTR{idVendor}=="046d", ATTR{idProduct}=="c70[345abce]", RUN+="hid2hci --method logitech -v $attr{idVendor} -p $attr{idProduct} --mode hci"
23 ATTR{idVendor}=="046d", ATTR{idProduct}=="c71[34bc]", RUN+="hid2hci --method logitech -v $attr{idVendor} -p $attr{idProduct} --mode hci"
24
25 # CSR devices (in HID mode)
26 ATTR{idVendor}=="0a12", ATTR{idProduct}=="1000", RUN+="hid2hci --method csr -v $attr{idVendor} -p $attr{idProduct} --mode hci"
27 ATTR{idVendor}=="0458", ATTR{idProduct}=="1000", RUN+="hid2hci --method csr -v $attr{idVendor} -p $attr{idProduct} --mode hci"
28 ATTR{idVendor}=="05ac", ATTR{idProduct}=="1000", RUN+="hid2hci --method csr -v $attr{idVendor} -p $attr{idProduct} --mode hci"
29
30 LABEL="hid2hci_end"