[sane-devel] Linux-update: scanner no more recognized

Stef stef.dev at free.fr
Fri Jul 27 19:46:23 UTC 2012


On 27/07/2012 21:41, M.B. Schiekel wrote:
> Am 27.07.2012 21:18, schrieb Stef:
>
>>      Well, I am puzzled. why don't you get the traces you got the first
>> time:
>>
>> [umax1220u] attach_scanner: libusb:003:002
> Hallo Stef,
>
> oops, sorry - it's very hot, so I had unpowered the scanner :-(
> Now, this time with 'power on' and I get a sanei_usb_open error ...
>
> Kind regards,
> bernhard
>
> -----------------------------------------------------------------
>
> export SANE_DEBUG_UMAX1220U=128
> export SANE_DEBUG_SANEI_USB=128
> scanimage -L
>
> [sanei_debug] Setting debug level of umax1220u to 128.
> [umax1220u] sane_init: version_code != 0, authorize != 0
> [umax1220u] sane_init: SANE umax1220u backend version 1.0.2 from
> sane-backends 1.0.22
> [sanei_debug] Setting debug level of sanei_usb to 128.
> [sanei_usb] sanei_usb_init: marking existing devices
> [sanei_usb] sanei_usb_init: Looking for kernel scanner devices
> [sanei_usb] sanei_usb_init: can't stat /dev/usb/: No such file or directory
> [sanei_usb] sanei_usb_init: Looking for libusb devices
> [sanei_usb] sanei_usb_init: device 0x1d6b/0x0002, interface 0 doesn't
> look like a scanner (9/9)
> [sanei_usb] sanei_usb_init: device 0x1d6b/0x0002: no suitable interfaces
> [sanei_usb] sanei_usb_init: device 0x1d6b/0x0001, interface 0 doesn't
> look like a scanner (9/9)
> [sanei_usb] sanei_usb_init: device 0x1d6b/0x0001: no suitable interfaces
> [sanei_usb] sanei_usb_init: device 0x093a/0x2510, interface 0 doesn't
> look like a scanner (0/3)
> [sanei_usb] sanei_usb_init: device 0x093a/0x2510: no suitable interfaces
> [sanei_usb] sanei_usb_init: device 0x1d6b/0x0001, interface 0 doesn't
> look like a scanner (9/9)
> [sanei_usb] sanei_usb_init: device 0x1d6b/0x0001: no suitable interfaces
> [sanei_usb] sanei_usb_init: found libusb device (0x1606/0x0010)
> interface 0  at libusb:003:002
> [sanei_usb] store_device: add dn 0 with libusb:003:002
> [sanei_usb] sanei_usb_init: device 0x1d6b/0x0001, interface 0 doesn't
> look like a scanner (9/9)
> [sanei_usb] sanei_usb_init: device 0x1d6b/0x0001: no suitable interfaces
> [sanei_usb] sanei_usb_init: found 1 devices
> [sanei_usb] sanei_usb_init: device 00 is libusb:003:002
> [umax1220u] reading configure file umax1220u.conf
> [umax1220u] attach_matching_devices(usb 0x1606 0x0010)
> [sanei_usb] sanei_usb_find_devices: vendor=0x1606, product=0x0010
> [umax1220u] attach_scanner: libusb:003:002
> [umax1220u] attach_scanner: opening libusb:003:002
> [umax1220u] UMAX_open_device: `libusb:003:002'
> [sanei_usb] sanei_usb_open: trying to open device `libusb:003:002'
> libusb:error [op_set_configuration] failed, error -1 errno 110
> [sanei_usb] sanei_usb_open: libusb complained: Numerical result out of range
> [umax1220u] UMAX_open_device: couldn't open device `libusb:003:002':
> Invalid argument
> [umax1220u] ERROR: attach_scanner: opening libusb:003:002 failed
> [umax1220u] attach_matching_devices(usb 0x1606 0x0030)
> [sanei_usb] sanei_usb_find_devices: vendor=0x1606, product=0x0030
> [umax1220u] attach_matching_devices(usb 0x1606 0x0130)
> [sanei_usb] sanei_usb_find_devices: vendor=0x1606, product=0x0130
> [umax1220u] finished reading configure file
> [umax1220u] sane_get_devices(local_only = 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).
> [umax1220u] sane_exit
>
>
     OK,

     the "libusb:error [op_set_configuration] failed, error -1 errno 
110" is what I expected. I suppose 'dmesg' will show some kernel 
messages about an usb error.
     I have met this error sometimes on my main machine. I remember I 
changing the libusb version used to compiled SANE to work around this 
problem. Currently, with a 3.4.4 kernel and libusb-1.0 (not the old 
libusb-0.12 and not the compat layer), things are working.
     What is your kernel version, and what are the library used by SANE 
on your system ?

Regards,
     Stef



More information about the sane-devel mailing list