I just picked up an Epson Perfection 2400 Photo scanner.  When I try to
use xsane to scan from it, however, the scanner module just blocks
forever.  Here's the end of the strace:


open("/dev/usb/scanner0", O_RDWR|O_EXCL) = 6
ioctl(6, 0x2201, 0xbfffdeb4)            = -1 ENOTTY (Inappropriate ioctl
for device)
ioctl(6, 0x2282, 0x406bd7f8)            = -1 ENOTTY (Inappropriate ioctl
for device)
old_mmap(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x4076e000
rt_sigprocmask(SIG_BLOCK, ~[], [RTMIN], 8) = 0
rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, ~[], [RTMIN], 8) = 0
write(6, ",\0\0\0$\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
44) = 44
rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0
select(7, [6], NULL, NULL, NULL)        = 1 (in [6])
rt_sigprocmask(SIG_BLOCK, ~[], [RTMIN], 8) = 0
read(6,


If I leave the scanner plugged in, the read just hangs there forever. 
If I unplug the scanner, however, the read returns immediately with a -1
EIO error.


I had to put the following line in /etc/modules.conf to get scanner.o to
recognize the 2400:

    options scanner vendor=0x04b8 product=0x011b

And, of course, I run "modprobe scanner" by hand because the 2400 is not
in the hotplug tables yet.


Is there any way to discover why read hangs?  I tried both on a UHCI and
an OHCI interface -- both have this exact behavior.

Nothing interesting appears in the logs.  I'm using Kernel 2.4.20-pre2. 
Thanks!

    - Scott





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to