[sane-devel] FreeBSD and a Epson Perfection 1260

Henning Meier-Geinitz henning@meier-geinitz.de
Thu, 16 Jan 2003 23:16:35 +0100


Hi,

On Thu, Jan 16, 2003 at 05:15:33PM +0100, Michael Lestinsky wrote:
> Am 16.01.'03 schrieb Henning Meier-Geinitz:
> > Edit sanei/sanei_usb.c, search for the call to usb_set_altinterface
> > and comment it out (including the if (result < 0) test after the call).
> 
> Hmm, ok:
> 
> [sanei_usb] sanei_usb_find_devices: found matching libusb device (bus=/dev/usb0, device=/dev/ugen0, vendor=0x04b8, product=0x011d)
> [sanei_usb] sanei_usb_open: trying to open device `libusb:/dev/usb0:/dev/ugen0'
> [sanei_usb] sanei_usb_open: chosing first altsetting (0) without checking
> [sanei_usb] sanei_usb_open: ignoring interrupt-in endpoint (address: 1)
> [sanei_usb] sanei_usb_open: found bulk-in endpoint (address 2)
> [sanei_usb] sanei_usb_open: found bulk-out endpoint (address 3)
> [sanei_usb] sanei_usb_open: opened usb device `libusb:/dev/usb0:/dev/ugen0' (*dn=0)
> [sanei_usb] sanei_usb_get_vendor_product: device 0: vendorID: 0x04b8, productID: 0x011d
> [sanei_usb] sanei_usb_write_bulk: wanted 5 bytes, wrote 5 bytes
> [sanei_usb] sanei_usb_write_bulk: wanted 5 bytes, wrote 5 bytes
> [sanei_usb] sanei_usb_write_bulk: wanted 4 bytes, wrote 4 bytes
> USB error: error reading from bulk endpoint /dev/ugen0.2: Operation timed out
> [sanei_usb] sanei_usb_read_bulk: read failed: Operation timed out

Check sanei_usb.c, sanei_usb_close and comment out the call to
usb_clear_halt and usb_resetep. Replug the scanner.

I'm not sure if this is the reason.

> > You can give the ids in plustek.conf as far as I know.
> 
> I've done this already, it doesn't help.
> 
> michael@zaphod:~> cat /usr/local/etc/sane.d/plustek.conf
> [usb] 0x04b8 0x011d
> device auto

That can't work. Now it tries all devices /dev/uscanner? and searches
for the vendor id. But FreeBSD can't report the ids...

I'm not sure if that works, but you could try "/dev/uscanner0" instead
of "auto".

Bye,
  Henning