Magellan Linux

Diff of /tags/udev-166-r2/udev-hid2hci.rules.magellan

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/udev/udev-hid2hci.rules.magellan revision 888 by niro, Tue Oct 13 15:10:19 2009 UTC tags/udev-166-r1/udev-hid2hci.rules.magellan revision 1290 by niro, Mon Feb 28 20:11:39 2011 UTC
# Line 1  Line 1 
1  # /etc/udev/rules/70-hid2hci.rules:  device naming rules for udev  # /etc/udev/rules/70-hid2hci.rules:  device naming rules for udev
2  # $Header: /root/magellan-cvs/src/udev/udev-hid2hci.rules.magellan,v 1.1 2009-10-13 15:10:19 niro Exp $  # $Header: /root/magellan-cvs/src/udev/udev-hid2hci.rules.magellan,v 1.3 2010-08-18 02:24:12 niro Exp $
3  #  #
4  # There are a number of modifiers that are allowed to be used in some  # There are a number of modifiers that are allowed to be used in some
5  # of the different fields. They provide the following subsitutions:  # of the different fields. They provide the following subsitutions:
# Line 18  Line 18 
18  # file that can be run before this one.  # file that can be run before this one.
19  #  #
20    
21  ACTION!="add|change", GOTO="hid2hci_end"  ACTION=="remove", GOTO="hid2hci_end"
22  SUBSYSTEM!="usb", GOTO="hid2hci_end"  SUBSYSTEM!="usb", GOTO="hid2hci_end"
23    
24  # Variety of Dell Bluetooth devices - match on a mouse device that is  # Variety of Dell Bluetooth devices - match on a mouse device that is
# Line 28  ATTR{bInterfaceClass}=="03", ATTR{bInter Line 28  ATTR{bInterfaceClass}=="03", ATTR{bInter
28    ATTRS{bDeviceClass}=="00", ATTRS{idVendor}=="413c", ATTRS{bmAttributes}=="e0", \    ATTRS{bDeviceClass}=="00", ATTRS{idVendor}=="413c", ATTRS{bmAttributes}=="e0", \
29    RUN+="hid2hci --method=dell --devpath=%p", ENV{HID2HCI_SWITCH}="1"    RUN+="hid2hci --method=dell --devpath=%p", ENV{HID2HCI_SWITCH}="1"
30    
31  # Logitech devices (hidraw)  # Logitech devices
32  KERNEL=="hidraw*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c70[345abce]|c71[34bc]", \  KERNEL=="hiddev*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c70[35e]", \
33      RUN+="hid2hci --method=logitech-hid --devpath=%p"
34    KERNEL=="hidraw*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c70[4abc]|c71[34bc]", \
35    RUN+="hid2hci --method=logitech-hid --devpath=%p"    RUN+="hid2hci --method=logitech-hid --devpath=%p"
36    
37  ENV{DEVTYPE}!="usb_device", GOTO="hid2hci_end"  ENV{DEVTYPE}!="usb_device", GOTO="hid2hci_end"
# Line 37  ENV{DEVTYPE}!="usb_device", GOTO="hid2hc Line 39  ENV{DEVTYPE}!="usb_device", GOTO="hid2hc
39  # When a Dell device recovers from S3, the mouse child needs to be repoked  # When a Dell device recovers from S3, the mouse child needs to be repoked
40  # Unfortunately the only event seen is the BT device disappearing, so the mouse  # Unfortunately the only event seen is the BT device disappearing, so the mouse
41  # device needs to be chased down on the USB bus.  # device needs to be chased down on the USB bus.
42  ATTR{bDeviceClass}=="e0", ATTR{bDeviceSubClass}=="01", ATTR{bDeviceProtocol}=="01", \  ATTR{bDeviceClass}=="e0", ATTR{bDeviceSubClass}=="01", ATTR{bDeviceProtocol}=="01", ATTR{idVendor}=="413c", \
   ATTR{idVendor}=="413c", ATTR{bmAttributes}=="e0", \  
43    ENV{REMOVE_CMD}="/sbin/udevadm trigger --action=change --subsystem-match=usb --property-match=HID2HCI_SWITCH=1"    ENV{REMOVE_CMD}="/sbin/udevadm trigger --action=change --subsystem-match=usb --property-match=HID2HCI_SWITCH=1"
44    
45  # CSR devices  # CSR devices

Legend:
Removed from v.888  
changed lines
  Added in v.1290