Opened 19 years ago
Last modified 19 years ago
#1680 closed defect
/proc/bus/usb is obsolete — at Initial Version
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | 6.2.0 |
Component: | BOOK | Version: | SVN |
Severity: | normal | Keywords: | |
Cc: |
Description ¶
While the instructions at the libusb page still work with linux-2.6.14, they describe the obsolete setup. The /proc/bus/usb mount should go away, and libusb should be patched to take advantage of real raw usb device nodes. Use this raw message as a patch for libusb:
http://marc.theaimsgroup.com/?l=linux-hotplug-devel&m=112447064921992&q=raw
The udev rule that is equivalent to the current setup WRT permissions is:
SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'X=%k X=$${X#usbdev} B=$${X%%%%.*} D=$${X#*.}; echo bus/usb/$$B/$$D'", SYMLINK+="%c", GROUP="usb"
(that is one long line)
Fine-tunuing of permissions is possible by creating extra rules, matching on something like this:
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="05d8", SYSFS{idProduct}=="4002", GROUP:="scanner"