From: Christian Becke <christianbecke@web.de>
To: linux-hotplug@vger.kernel.org
Subject: timeout error with USB scanner, udev and hotplug
Date: Wed, 24 Mar 2004 16:47:11 +0000 [thread overview]
Message-ID: <1080146831.7458.48.camel@localhost> (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
--
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
reply other threads:[~2004-03-24 16:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1080146831.7458.48.camel@localhost \
--to=christianbecke@web.de \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).