2009-06-16 21:30:22 +04:00
# do not edit this file, it will be overwritten on update
2009-08-07 04:23:44 +04:00
ACTION!="add|change", GOTO="hid2hci_end"
2009-06-16 21:30:22 +04:00
SUBSYSTEM!="usb", GOTO="hid2hci_end"
2009-07-24 20:06:22 +04:00
# Variety of Dell Bluetooth devices - match on a mouse device that is
# self powered and where a HID report needs to be sent to switch modes
2009-06-16 21:30:22 +04:00
# Known supported devices: 413c:8154, 413c:8158, 413c:8162
2009-07-24 20:06:22 +04:00
ATTR{bInterfaceClass}=="03", ATTR{bInterfaceSubClass}=="01", ATTR{bInterfaceProtocol}=="02", \
ATTRS{bDeviceClass}=="00", ATTRS{idVendor}=="413c", ATTRS{bmAttributes}=="e0", \
2009-08-07 04:23:44 +04:00
RUN+="hid2hci --method=dell --devpath=%p", ENV{HID2HCI_SWITCH}="1"
2009-06-16 21:30:22 +04:00
2010-03-16 14:47:42 +03:00
# Logitech devices
KERNEL=="hiddev*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c70[345abce]|c71[34bc]", \
2009-07-24 20:06:22 +04:00
RUN+="hid2hci --method=logitech-hid --devpath=%p"
2009-07-22 02:33:27 +04:00
2009-06-16 21:30:22 +04:00
ENV{DEVTYPE}!="usb_device", GOTO="hid2hci_end"
2009-07-24 20:06:22 +04:00
# When a Dell device recovers from S3, the mouse child needs to be repoked
# Unfortunately the only event seen is the BT device disappearing, so the mouse
# device needs to be chased down on the USB bus.
2009-08-20 21:43:51 +04:00
ATTR{bDeviceClass}=="e0", ATTR{bDeviceSubClass}=="01", ATTR{bDeviceProtocol}=="01", ATTR{idVendor}=="413c", \
2009-08-07 04:23:44 +04:00
ENV{REMOVE_CMD}="/sbin/udevadm trigger --action=change --subsystem-match=usb --property-match=HID2HCI_SWITCH=1"
2009-06-16 21:30:22 +04:00
2009-07-24 20:06:22 +04:00
# CSR devices
ATTR{idVendor}=="0a12|0458|05ac", ATTR{idProduct}=="1000", RUN+="hid2hci --method=csr --devpath=%p"
2009-06-16 21:30:22 +04:00
LABEL="hid2hci_end"