All of lore.kernel.org
 help / color / mirror / Atom feed
* timeout error with USB scanner, udev and hotplug
@ 2004-03-24 16:47 Christian Becke
  0 siblings, 0 replies; only message in thread
From: Christian Becke @ 2004-03-24 16:47 UTC (permalink / raw)
  To: linux-hotplug

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
-- 
Christian Becke <christianbecke@web.de>


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_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-03-24 16:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-24 16:47 timeout error with USB scanner, udev and hotplug Christian Becke

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.