On Wed, Apr 23, 2008 at 10:53:48PM +0200, Rainer Dorsch wrote: > Am Mittwoch, 23. April 2008 schrieb Julien BLACHE: > > Johannes Meixner <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > >> umax1220u scripts are started in a sequence (i.e. not in parallel, when > > >> one is completed the next one starts). > > > > When troubleshooting udev rules, use udevmonitor to actually see > > what's happening in terms of udev events and their properties. > > > > That was a very good hint, thanks. A single scanimage -L causes these events: > > UEVENT[1208979136.171525] remove /class/usb_endpoint/usbdev1.5_ep01 > (usb_endpoint) > UEVENT[1208979136.171696] remove /class/usb_endpoint/usbdev1.5_ep82 > (usb_endpoint) > UEVENT[1208979136.171702] remove /class/usb_endpoint/usbdev1.5_ep83 > (usb_endpoint) > UEVENT[1208979136.171707] add /class/usb_endpoint/usbdev1.5_ep01 > (usb_endpoint) > UEVENT[1208979136.171712] add /class/usb_endpoint/usbdev1.5_ep82 > (usb_endpoint) > UEVENT[1208979136.171717] add /class/usb_endpoint/usbdev1.5_ep83 > (usb_endpoint) > UDEV [1208979136.172276] remove /class/usb_endpoint/usbdev1.5_ep01 > (usb_endpoint) > UDEV [1208979136.172803] remove /class/usb_endpoint/usbdev1.5_ep82 > (usb_endpoint) > UDEV [1208979136.173239] remove /class/usb_endpoint/usbdev1.5_ep83 > (usb_endpoint) > UDEV [1208979136.174020] add /class/usb_endpoint/usbdev1.5_ep01 > (usb_endpoint) > UDEV [1208979136.174831] add /class/usb_endpoint/usbdev1.5_ep82 > (usb_endpoint) > UDEV [1208979136.175619] add /class/usb_endpoint/usbdev1.5_ep83 > (usb_endpoint)
Our device's udev rules file uses: ##################################### ##################################### BUS!="usb", ACTION!="add", GOTO="xpp_usb_add_end" KERNEL=="*_ep*", GOTO="xpp_usb_add_end" KERNEL=="[0-9]*", GOTO="xpp_usb_add_end" # the actual rules go in here LABEL="xpp_usb_add_end" ##################################### ##################################### > > > > > > ACTION!="add", GOTO="end" > > > SYSFS{idVendor}=="04b8", SYSFS{idProduct}=="010b", RUN+="..." > > > LABEL="end" BTW: any idea when is Debian going to move from SYSFS to ATTR ? My Lenny box does not seem to support ATTR right now. -- Tzafrir Cohen | [EMAIL PROTECTED] | VIM is http://tzafrir.org.il | | a Mutt's [EMAIL PROTECTED] | | best ICQ# 16849754 | | friend -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]