Advertisement
Guest User

ryty

a guest
Aug 23rd, 2012
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. lsusb:
  2.  
  3. Bus 003 Device 045: ID 046d:0b02 Logitech, Inc. BT Mini-Receiver (HID proxy mode)
  4. Bus 003 Device 046: ID 046d:c70e Logitech, Inc. MX1000 Bluetooth Laser Mouse
  5. Bus 003 Device 048: ID 046d:c709 Logitech, Inc. BT Mini-Receiver (HCI mode)
  6.  
  7. /etc/udev/rules.d/62-bluez-hid2hci.rules:
  8.  
  9. # do not edit this file, it will be overwritten on update
  10.  
  11. ACTION=="remove", GOTO="hid2hci_end"
  12. SUBSYSTEM!="usb", GOTO="hid2hci_end"
  13.  
  14. # Variety of Dell Bluetooth devices - match on a mouse device that is
  15. # self powered and where a HID report needs to be sent to switch modes
  16. # Known supported devices: 413c:8154, 413c:8158, 413c:8162
  17. ATTR{bInterfaceClass}=="03", ATTR{bInterfaceSubClass}=="01", ATTR{bInterfaceProtocol}=="02", \
  18. ATTRS{bDeviceClass}=="00", ATTRS{idVendor}=="413c", ATTRS{bmAttributes}=="e0", \
  19. RUN+="hid2hci --method=dell --devpath=%p", ENV{HID2HCI_SWITCH}="1"
  20.  
  21. # Logitech devices
  22. KERNEL=="hiddev*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="0b02|c70[345abce]|c71[34bc]", \
  23. RUN+="hid2hci --method=logitech-hid --devpath=%p"
  24.  
  25. ENV{DEVTYPE}!="usb_device", GOTO="hid2hci_end"
  26.  
  27. # When a Dell device recovers from S3, the mouse child needs to be repoked
  28. # Unfortunately the only event seen is the BT device disappearing, so the mouse
  29. # device needs to be chased down on the USB bus.
  30. ATTR{bDeviceClass}=="e0", ATTR{bDeviceSubClass}=="01", ATTR{bDeviceProtocol}=="01", ATTR{idVendor}=="413c", \
  31. ENV{REMOVE_CMD}="/sbin/udevadm trigger --action=change --subsystem-match=usb --property-match=HID2HCI_SWITCH=1"
  32.  
  33. # CSR devices
  34. ATTR{idVendor}=="0a12|0458|05ac", ATTR{idProduct}=="1000", RUN+="hid2hci --method=csr --devpath=%p"
  35.  
  36. LABEL="hid2hci_end"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement