Re: USB scanner issue (Was: Re: Beaver in Detox!)

From: Tom Rini
Date: Mon Dec 01 2003 - 15:53:42 EST

On Mon, Dec 01, 2003 at 11:21:58AM -0800, Greg KH wrote:
> On Fri, Nov 28, 2003 at 11:26:25AM -0700, Tom Rini wrote:
> > On Wed, Nov 26, 2003 at 12:55:00PM -0800, Linus Torvalds wrote:
> >
> > [snip]
> > > I give you "Beaver in Detox", aka linux-2.6.0-test11. This is mainly
> > > brought on by the fact that the old aic7xxx driver was broken in -test10,
> > > and Ingo found this really evil test program that showed an error case in
> > > do_fork() that we had never handled right. Well, duh!
> >
> > I've found an odd problem that's in at least 2.6.0-test11. I've
> > reproduced this twice now with an Epson 1240 USB scanner
> > (0x04b8/0x010b). What happens is if I run xsane from gimp, acquire a
> > preview, start to scan and then cancel, the scanner becomes
> > unresponsive. If I try and quit xsane, it gets stuck. Unplugging /
> > replugging and then trying to kill xsane locked the machine up hard.
> >
> > Here's ver_linux, dmesg and the versions of gimp/xsane I'm running (I've
> > used the scanner during this boot, without trying to lock it up):
> Can't you use xsane without the scanner kernel driver? I thought the
> latest versions used libusb/usbfs to talk directly to the hardware.
> Because of this, the USB scanner driver is marked to be removed from the
> kernel sometime in the near future.

After a bit of mucking around (and possibly finding a bug with debian's
libusb/xsane/hotplug interaction, nothing seems to run
/etc/hotplug/usb/libusbscanner and thus only root can scan, anyone whose
got this working please let me know), the problem does not exist if I
only use libusb xsane.

How about the following:
===== drivers/usb/image/Kconfig 1.5 vs edited =====
--- 1.5/drivers/usb/image/Kconfig Thu Sep 25 11:22:48 2003
+++ edited/drivers/usb/image/Kconfig Mon Dec 1 13:51:48 2003
@@ -18,12 +18,14 @@
module will be called mdc800.

- tristate "USB Scanner support"
+ tristate "USB Scanner support (OBSOLETE)"
depends on USB
Say Y here if you want to connect a USB scanner to your computer's
USB port. Please read <file:Documentation/usb/scanner.txt> for more
+ This driver has been obsoleted by support via libusb.

To compile this driver as a module, choose M here: the
module will be called scanner.

Tom Rini
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at