~ubuntu-branches/ubuntu/raring/bluez/raring

« back to all changes in this revision

Viewing changes to .pc/dinovo_edge_keyboard.patch/scripts/bluetooth-hid2hci.rules

  • Committer: Package Import Robot
  • Author(s): Tommy
  • Date: 2012-07-27 15:15:48 UTC
  • Revision ID: package-import@ubuntu.com-20120727151548-qxkvh6euvchruqex
Tags: 4.101-0ubuntu3
debian/patches/dinovo_edge_keyboard.patch: support diNovo Edge
keyboard. (LP: #269851)

Show diffs side-by-side

added added

removed removed

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