Skip to contentSkip to conversation

timeout error with USB scanner, udev and hotplug

DISCUSSION Christian Becke 1 participant 1 message Mar 24, 2004

lore
Share & tools
lore
#0 lore raw

Hi all,

I tried to set up my epson scanner with udev, hotplug and libusb, so no device node in /dev needs to be created as the scanner is accessed via the entry in /proc/bus/usb/. I set up an entry in /etc/hotplug/usb.usermap to execute a script in /etc/hotplug/usb/ that changed the permissions of the node in /proc/bus/usb/ to give users access to the scanner. For debugging purposes the script logged execution via syslog.
Hotplugging the scanner worked just fine, node got created, hotplug changed the permissions and I saw the log message. But when I try to access the scanner with sane-scanimage or iscan the command fails and I get the following errors in my syslog:

usb 1-2: bulk timeout on ep1in
usbfs: USBDEVFS_BULK failed dev 2 ep 0x81 len 1 ret -110

And before these errors I get 6 log lines of my hotplug-script.

So in my understanding somehow hotplug treats it as a hotplug event when the scanner is accessed?

When I disable hotplug and let udev handle hotplug events, the scanner works just fine (have to change permissions in /proc/bus/usb/ manually, though), so I think this is hotplug related.

Any hints on how to fix or to more deeply debug this?

TIA

Signature · 27 lines
Christian Becke <[email protected]>


system setup:

VIA KT 600 chipset (w/ USB 2.0)

gentoo-linux-2.6.4
hotplug-2004_03_11
udev-021
libusb-0.1.8
iscan-1.6.1
sane-frontends-1.0.11
sane-backends-1.0.13




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel