> Please send the output of "lsusb" (with the pendant plugged in), to see
> if the product and vendor ids are as expected.
The rule was clearly seen since the owner was set to root:users (not root:root)
Excerpt from lsbusb -v:
Bus 007 Device 002: ID 10ce:eb70 Silicon Labs
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x10ce Silicon Labs
idProduct 0xeb70
bcdDevice 0.00
iManufacturer 1 KTURT.LTD
iProduct 0
iSerial 0
bNumConfigurations 1
> Also send the output of, um, "udevadm monitor" with all the right flags
> that i dont know, while plugging in the pendant, to see why the rule
> isn't getting run right.
-------------------------------------------------------
udevadm monitor transcript when plugging in xhc-hb04:
$ udevadm monitor --kernel --udev --property
output follows:
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[868.429373] add /devices/pci0000:00/0000:00:1d.1/usb7/7-1 (usb)
ACTION=add
BUSNUM=007
DEVICE=/proc/bus/usb/007/004
DEVNAME=bus/usb/007/004
DEVNUM=004
DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb7/7-1
DEVTYPE=usb_device
MAJOR=189
MINOR=771
PRODUCT=10ce/eb70/0
SEQNUM=1266
SUBSYSTEM=usb
TYPE=0/0/0
UDEV_LOG=3
KERNEL[868.432201] add /devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0
(usb)
ACTION=add
DEVICE=/proc/bus/usb/007/004
DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0
DEVTYPE=usb_interface
INTERFACE=3/0/0
MODALIAS=usb:v10CEpEB70d0000dc00dsc00dp00ic03isc00ip00
PRODUCT=10ce/eb70/0
SEQNUM=1267
SUBSYSTEM=usb
TYPE=0/0/0
UDEV_LOG=3
KERNEL[868.432310] add
/devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/0003:10CE:EB70.0003 (hid)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/0003:10CE:EB70.0003
HID_ID=0003:000010CE:0000EB70
HID_NAME=KTURT.LTD
HID_PHYS=usb-0000:00:1d.1-1/input0
MODALIAS=hid:b0003v000010CEp0000EB70
SEQNUM=1268
SUBSYSTEM=hid
UDEV_LOG=3
KERNEL[868.437154] add /class/usb (class)
ACTION=add
DEVPATH=/class/usb
SEQNUM=1269
SUBSYSTEM=class
UDEV_LOG=3
KERNEL[868.441274] add
/devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/usb/hiddev0 (usb)
ACTION=add
DEVNAME=usb/hiddev0
DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/usb/hiddev0
MAJOR=180
MINOR=0
SEQNUM=1270
SUBSYSTEM=usb
UDEV_LOG=3
UDEV [868.441297] add /class/usb (class)
ACTION=add
DEVPATH=/class/usb
SEQNUM=1269
SUBSYSTEM=class
UDEV_LOG=3
USEC_INITIALIZED=868437415
KERNEL[868.441318] add
/devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/0003:10CE:EB70.0003/hidraw/hidraw0
(hidraw)
ACTION=add
DEVNAME=hidraw0
DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/0003:10CE:EB70.0003/hidraw/hidraw0
MAJOR=252
MINOR=0
SEQNUM=1271
SUBSYSTEM=hidraw
UDEV_LOG=3
UDEV [868.442066] add /devices/pci0000:00/0000:00:1d.1/usb7/7-1 (usb)
ACTION=add
BUSNUM=007
DEVICE=/proc/bus/usb/007/004
DEVNAME=/dev/bus/usb/007/004
DEVNUM=004
DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb7/7-1
DEVTYPE=usb_device
ID_BUS=usb
ID_MODEL=eb70
ID_MODEL_ENC=eb70
ID_MODEL_ID=eb70
ID_REVISION=0000
ID_SERIAL=KTURT.LTD_eb70
ID_USB_INTERFACES=:030000:
ID_VENDOR=KTURT.LTD
ID_VENDOR_ENC=KTURT.LTD
ID_VENDOR_ID=10ce
MAJOR=189
MINOR=771
PRODUCT=10ce/eb70/0
SEQNUM=1266
SUBSYSTEM=usb
TYPE=0/0/0
UDEV_LOG=3
USEC_INITIALIZED=868441922
UDEV [868.455098] add /devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0
(usb)
ACTION=add
DEVICE=/proc/bus/usb/007/004
DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0
DEVTYPE=usb_interface
INTERFACE=3/0/0
MODALIAS=usb:v10CEpEB70d0000dc00dsc00dp00ic03isc00ip00
PRODUCT=10ce/eb70/0
SEQNUM=1267
SUBSYSTEM=usb
TYPE=0/0/0
UDEV_LOG=3
USEC_INITIALIZED=868453222
UDEV [868.456759] add
/devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/usb/hiddev0 (usb)
ACTION=add
DEVNAME=/dev/usb/hiddev0
DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/usb/hiddev0
MAJOR=180
MINOR=0
SEQNUM=1270
SUBSYSTEM=usb
UDEV_LOG=3
USEC_INITIALIZED=868456643
UDEV [868.460849] add
/devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/0003:10CE:EB70.0003 (hid)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/0003:10CE:EB70.0003
HID_ID=0003:000010CE:0000EB70
HID_NAME=KTURT.LTD
HID_PHYS=usb-0000:00:1d.1-1/input0
MODALIAS=hid:b0003v000010CEp0000EB70
SEQNUM=1268
SUBSYSTEM=hid
UDEV_LOG=3
USEC_INITIALIZED=868457063
UDEV [868.461759] add
/devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/0003:10CE:EB70.0003/hidraw/hidraw0
(hidraw)
ACTION=add
DEVNAME=/dev/hidraw0
DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/0003:10CE:EB70.0003/hidraw/hidraw0
MAJOR=252
MINOR=0
SEQNUM=1271
SUBSYSTEM=hidraw
UDEV_LOG=3
USEC_INITIALIZED=868461653
-------------------------------------------------------
result:
# ls -l /dev/bus/usb/007
total 0
crw-rw-r-T 1 root root 189, 768 Aug 6 08:32 001
crw-rw-r-T 1 root users 189, 771 Aug 6 08:47 004
^ ^^^^^
^
^ sticky bit
-------------------------------------------------------
using:
$ cat /etc/udev/rules.d/90-xhc.rules
# xhc-hb04 mpg pendant
ATTR{idProduct}=="eb70", ATTR{idVendor}=="10ce", MODE="666", OWNER="root",
GROUP="users"
--
Dewey Garrett
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers