[sane-devel] HP 7450C USB scanner failure with ADF

Henning Meier-Geinitz henning at meier-geinitz.de
Fri Jun 27 22:11:10 BST 2003


Hi,

On Fri, Jun 27, 2003 at 12:45:37PM -0700, Thomas Frayne wrote:
> I snipped what now seems taken care of.  Here is a summary of the
> current state:
> 
> [root at localhost root]# sane-find-scanner
> found USB scanner (vendor=0x03f0, product=0x0801) at /dev/usb/scanner0
> found USB scanner (vendor=0x03f0 [hp], product=0x0801 [hp scanjet 7400c]) at libusb:004:002

So it's detected by the USB scanner driver and libusb. That's ok but
you can also try without the USB scanner driver (rmmod scanner).

> [root at localhost root]# scanimage -L
> No scanners were identified.

Try "SANE_DEBUG_AVISION=255 scanimage -L" to find out why it isn't
found. Also unplug/replug your scanner to make sure it isn't confused
by earlier tests.

> Hardware Browser found no scanners.

I don't know what you mean by "hardware browser" but as
sane-find-scanner finds the scanner twice, I think that "harware
browser" program is broken :-)

> Modified /usr/local/etc/sane.d/avision.conf to add usb  0x03f0 0x0801

Ok. Shouldn't be necessary, but shouldn't harm either.

> This made scanimage -L work after rebooting,

Rebooting shouldn't be ever necessary. But if your scanner hangs,
unplugging it may help.

> both in root mode and user mode:
> 
> device `avision:libusb:004:002' is a Hewlett-Packard ScanJet 7400c
> flatbed scanner 

Ok.

> I shutdown, powered off the scanner, rebooted, ran xsane,

Make sure that when you run xsane you use the "/dev/usb/scanner0" or
the "libusb:something" device and not the "/dev/sg0" device. Just to
be sure that xsane doesn't do anything bad.

> and started a scan.

Try scanning with scanimage and debugging enabled, e.g.
SANE_DEBUG_AVISION=255 scanimage >image.pnm 2>log

> The scanner hung as before, and the following appeared in
> messages.
> Jun 26 12:18:37 localhost kernel: usb_control/bulk_msg: timeout
> Jun 26 12:18:37 localhost kernel: usbdevfs: USBDEVFS_BULK failed dev 2 ep 0x82 len 1 ret -110

This time you don't have loaded the scanner driver. Did you try with
the scanner driver instead?

> I tried to change all occurrences of usbdevfs in my /etc (fstab,

That's just the name, it doesn't matter (for now).

> hotplug/usb.rc, mtab, rc.d/rc.sysinit, rc.sysinit) to usbfs, but
> something went wrong, and my system became unbootable.  I restored my /
> and /var partitions.  

I think you only need to change /etc/fstab.
 
> Now I am pretty sure that my problem is in usbdevfs, but I don't know
> how to fix it.  

I don't think so. The timeouts occur because the scanner doesn't
understand something the backend sends. That may be a backend broblem
or something odd in the USB system.

> What can I try next?

Try the scanner driver. If it shows the same behaviour, you are sure
that it's not usbfs.

Otherwise, well, wait until the avision maintainer shows up again :-)

Bye,
  Henning



More information about the sane-devel mailing list