From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Becke Date: Wed, 24 Mar 2004 16:47:11 +0000 Subject: timeout error with USB scanner, udev and hotplug Message-Id: <1080146831.7458.48.camel@localhost> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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 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 Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel