[sane-devel] FreeBSD and a Epson Perfection 1260

Michael Lestinsky michael at lestinsky.de
Wed Jan 15 21:01:19 GMT 2003


Hi,

I obtained a Epson Perfection 1260 scanner and am trying now to convice my
FreeBSD (4.7, RELENG_4 from yesterday evening) to support that scanner.
I'm using the sane-backends-1.0.10-pre1 sources.

First I tried it via libusb(0.1.7)/ugen driver:

$ sane-find-scanner
[...]
found USB scanner (vendor=0x04b8, product=0x011d) at libusb:/dev/usb1:/dev/ugen0
[...]

that looks fine, so far. But scanimage can't find a scanner:

$ export SANE_DEBUG_SANEI_USB=255
$ scanimage -L
[...]
usb_set_debug: Setting debugging level to 255 (on)
[sanei_usb] sanei_usb_find_devices: vendor=0x04b8, product=0x011d, attach=0x282226fc
[sanei_usb] sanei_usb_open: trying to open device `/dev/uscanner'
[sanei_usb] sanei_usb_open: open of `/dev/uscanner' failed: No such file or directory [...]
[sanei_usb] sanei_usb_find_devices: found matching libusb device (bus=/dev/usb1, device=/dev/ugen0, +vendor=0x04b8, product=0x011d)
[sanei_usb] sanei_usb_open: trying to open device `libusb:/dev/usb1:/dev/ugen0'
[sanei_usb] sanei_usb_open: chosing first altsetting (0) without checking
USB error: could not set alt intf 0/0: Invalid argument
[sanei_usb] sanei_usb_open: libusb complained: could not set alt intf 0/0:
Invalid argument
[...]
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
$

I've started digging into this, but I don't understand enough of USB to do
fix that. As far as I can see, the USB_SET_ALTINTERFACE ioctl fails.

After that I patched the product id of the scanner into the uscanner
driver of FreeBSD and enabled that module. The scanner is recognised by
the module on load. But it doesn't scan either:

$ scanimage -L
[...]
[sanei_debug] Setting debug level of sanei_usb to 255.
usb_set_debug: Setting debugging level to 255 (on)
[sanei_usb] sanei_usb_find_devices: vendor=0x04b8, product=0x011d, attach=0x282206fc
[sanei_usb] sanei_usb_open: trying to open device `/dev/uscanner'
[sanei_usb] sanei_usb_open: open of `/dev/uscanner' failed: No such file or directory
[sanei_usb] sanei_usb_open: trying to open device `/dev/uscanner0'
[sanei_usb] sanei_usb_open: opened usb device `/dev/uscanner0' (*dn=0)
[sanei_usb] sanei_usb_get_vendor_product: device 0: Your OS doesn't seem to support detection of vendor+product ids
[sanei_usb] sanei_usb_close: closing device 0
[...]
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
$

Any Ideas?

Thanks so far,
Michael

PS: 
$ usbdevs -v
Controller /dev/usb0:
addr 1: self powered, config 1, OHCI root hub(0x0000), AMD(0x0000), rev 1.00
 port 1 addr 2: low speed, power 98 mA, config 1, USB-PS/2 Optical Mouse(0xc012), Logitech(0x046d), rev 13.00
 port 2 addr 3: self powered, config 1, EPSON Scanner(0x011d), EPSON(0x04b8), rev 1.00
 port 3 powered
 port 4 powered

-- 
As in certain cults it is possible to
kill a process if you know its true name.
    -- Ken Thompson and Dennis M. Ritchie



More information about the sane-devel mailing list