[sane-devel] CanoScan LIDE 20 on FreeBSD 5.1 Release

Gerhard Jaeger gerhard at gjaeger.de
Mon Dec 8 15:53:48 GMT 2003


Hi,

it seems, that this is a FreeBSD related problem, as the backend works fine
on x86-Linux & libusb!
A few days ago we also tried to make a CanoScan 660 work using FreeBSD and
we had the same problems there. I'Ve installed FreeBSD 4.9 on my box  now, but
had not the chance to check it so far...

Ciao,
  Gerhard

On Monday 08 December 2003 16:28, Marcus Schaffry wrote:
> Hi,
>
> on Friday I have bought a CanoScan Lide 20 and now I want to scan with
> FreeBSD 5.1 Release, but it doesn't work.
> First of all I've read all manpages and this mailingslist. But nobody seems
> to have the same problem.
>
> So I will very happy, if someone will help me.
>
> Here is what I've done:
>
> - changed the file dll.conf: Now plustek is the only backens without a # in
> front of it
>
> - the file plustek.conf only contains the following line:
> [usb] 0x04A9  0x220D
> device libusb:/dev/usb0:/dev/ugen0
>
> - compiled a new kernel with "device uscanner"  ->>>> after a reboot "/dev/
> uscanner" was not in the directory /dev. And I decided to use libusb so I
> compiled again a new kernel. This time without  "device uscanner".
>
> - "sane-find-scanner" output:
> found USB scanner (vendor=0x04a9, product=0x220d) at libusb:/dev/usb0:/dev/
> ugen0
>
> - changed the file "fstab"
> Neither the line: "none  /dev/ugen0  usbdevfs defaults 0 0"
> nor the line: "none  /dev/ugen0  usbfs defaults 0 0" works
>
> - "dmesg" output (only relaying on usb)
> uhci0: <VIA 83C572 USB controller> port 0xd000-0xd01f irq 5 at device 17.2
> on pci0
> usb0: <VIA 83C572 USB controller> on uhci0
> usb0: USB revision 1.0
> uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> ugen0: Canon CanoScan, rev 1.10/1.00, addr 2
>
> - In the bash (root) I did the following:
> "export SANE_DEBUG_SANEI_USB=255"
> "export SANE_DEBUG_PLUSTEK=255"
> "export SANE_DEBUG_DLL=255"
> "scanimage -L" Output:
> [sanei_debug] Setting debug level of dll to 255.
> [dll] sane_init: SANE dll backend version 1.0.10 from sane-backends 1.0.13
> [dll] sane_init: reading dll.conf
> [dll] add_backend: adding backend `plustek'
> [dll] sane_get_devices
> [dll] load: searching backend `plustek' in `/usr/local/lib/sane'
> [dll] load: trying to load `/usr/local/lib/sane/libsane-plustek.so.1'
> [dll] load: dlopen()ing `/usr/local/lib/sane/libsane-plustek.so.1'
> [dll] init: initializing backend `plustek'
> [sanei_debug] Setting debug level of plustek to 255.
> [sanei_debug] Setting debug level of sanei_usb to 255.
> usb_set_debug: Setting debugging level to 255 (on)
> usb_os_find_busses: Found /dev/usb0
> usb_os_find_devices: Found /dev/ugen0 on /dev/usb0
> usb_control_msg: 128 6 512 0 0xbfbfe330 8 1000
> usb_control_msg: 128 6 512 0 0x8054080 39 1000
> [sanei_usb] sanei_usb_init: found libusb device (0x04a9/0x220d) interface 0
> at libusb:/dev/usb0:/dev/ugen0
> [sanei_usb] sanei_usb_init: found 1 devices
> [plustek] Plustek backend V0.46-9, part of sane-backends 1.0.13
> [plustek] >[usb] 0x04A9  0x220D<
> [plustek] section contains no device name, ignored!
> [plustek] next device is a USB device (0x04A9-0x220D)
> [plustek] ... next device
> [plustek] >device libusb:/dev/usb0:/dev/ugen0<
> [plustek] Decoding device name >libusb:/dev/usb0:/dev/ugen0<
> [plustek] attach (libusb:/dev/usb0:/dev/ugen0, 0xbfbfe8d0, 0x0)
> [plustek] Device configuration:
> [plustek] device name  : >libusb:/dev/usb0:/dev/ugen0<
> [plustek] USB-ID       : >0x04A9-0x220D<
> [plustek] warmup       : -1s
> [plustek] lampOff      : -1
> [plustek] lampOffOnEnd : yes
> [plustek] cacheCalData : no
> [plustek] altCalibrate : no
> [plustek] skipCalibr.  : no
> [plustek] skipFine     : no
> [plustek] skipFineWhite: no
> [plustek] invertNegs.  : no
> [plustek] pos_x        : 0
> [plustek] pos_y        : 0
> [plustek] pos_shading_y: -1
> [plustek] neg_x        : 0
> [plustek] neg_y        : 0
> [plustek] neg_shading_y: -1
> [plustek] tpa_x        : 0
> [plustek] tpa_y        : 0
> [plustek] tpa_shading_y: -1
> [plustek] red gain     : -1
> [plustek] green gain   : -1
> [plustek] blue gain    : -1
> [plustek] red Gamma    : 1.00
> [plustek] green Gamma  : 1.00
> [plustek] blue Gamma   : 1.00
> [plustek] gray Gamma   : 1.00
> [plustek] ---------------------
> [plustek] drvopen()
> [plustek] usbDev_open(libusb:/dev/usb0:/dev/ugen0,0x04A9-0x220D)
> [sanei_usb] sanei_usb_open: trying to open device `libusb:/dev/usb0:/dev/
> ugen0'
> [sanei_usb] sanei_usb_open: found interupt-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: 0x04a9,
> productID: 0x220d
> [plustek] Vendor ID=0x04A9, Product ID=0x220D
> [plustek] usbio_DetectLM983x
> [sanei_usb] sanei_usb_write_bulk: trying to write 4 bytes
> [sanei_usb] 0000: 01 69 00
> 01                                     .i..............
> [sanei_usb] sanei_usb_write_bulk: wanted 4 bytes, wrote 4 bytes
> [sanei_usb] sanei_usb_read_bulk: trying to read 1 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
> USB error: usb_clear_halt called, unimplemented on BSD
> [plustek] UIO error
> [plustek] This is not a LM9831 or LM9832 chip based scanner.
> [sanei_usb] sanei_usb_close: closing device 0
> usb_os_close: closing endpoint 6
> usb_os_close: closing endpoint 5
> [plustek] open failed: -1
> [dll] init: backend `plustek' is version 1.0.0
> [plustek] sane_get_devices (0xbfbff1d8, 0)
> [dll] sane_get_devices: found 0 devices
>
> 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).
> [dll] sane_exit: exiting
> [dll] sane_exit: calling backend `plustek's exit function
> [plustek] sane_exit
> [dll] sane_exit: finished
>
>
> So that's all.
> Marcus





More information about the sane-devel mailing list