Hello all,<div><br></div><div>I am running Debian Squeeze with a Canon LiDE20 scanner directly connected via USB. I initially install sane via aptitude, but I've now removed that and built sane-backends 1.0.22 from source. I hoped that building the latest version of SANE might solve the problems I was experiencing, but they remain.</div>
<div><br></div><div>I have added the udev rules tom tools/udev to my /etc/udev/rules.d folder.</div>
<div><br></div><div>I have added the USB vid/pid to the plustek.conf file:</div><div><br></div><div><div>[usb] 0x04a9 0x220d</div><div>device auto</div></div><div><br></div><div>After plugging in the scanner, the resulting dmesg output is:</div>

<div><br></div><div>[10997.384059] usb 4-1: new full speed USB device using ohci_hcd and address 11</div><div>[10997.551108] usb 4-1: New USB device found, idVendor=04a9, idProduct=220d</div><div>[10997.551118] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0</div>

<div>[10997.551125] usb 4-1: Product: CanoScan</div><div>[10997.551129] usb 4-1: Manufacturer: Canon</div><div>[10997.552853] usb 4-1: configuration #1 chosen from 1 choice</div><div><br></div><div>sane-find-scanner is always successful at finding the scanner:</div>

<div><br></div><div><div>james@jamespc:~$ sane-find-scanner </div><div>< snip text ></div><div>found USB scanner (vendor=0x04a9, product=0x220d, chip=LM983x?) at libusb:004:011</div><div>  # Your USB scanner was (probably) detected. It may or may not be supported by</div>

<div>  # SANE. Try scanimage -L and read the backend's manpage.</div></div><div><br></div><div>scanimage -L works once:</div><div><br></div><div><div>james@jamespc:~$ SANE_DEBUG_DLL=128 scanimage -L</div><div><div>[dll] sane_get_devices: found 1 devices</div>

<div>device `plustek:libusb:004:014' is a Canon CanoScan N670U/N676U/LiDE20 flatbed scanner</div><div>[dll] sane_exit: exiting</div></div></div><div><br></div><div>I should note that this operation takes about 30 seconds to find the scanner.</div>

<div><br></div><div>Subsequent attempts to use scanimage do not find the scanner:</div><div><br></div><div><div>james@jamespc:~$ scanimage -L</div><div><br></div><div><div>[dll] sane_get_devices: found 0 devices</div></div>

<div><br></div><div>No scanners were identified. If you were expecting something different,</div><div>check that the scanner is plugged in, turned on and detected by the</div><div>sane-find-scanner tool (if appropriate). Please read the documentation</div>

<div>which came with this software (README, FAQ, manpages).</div></div><div><br></div><div>I can repeat this process over again by unplugging/plugging in the scanner.</div><div><br></div><div>If I try scanimage > test.pnm on the first attempt (instead of -L), the output is:</div>

<div><br></div><div><div>[dll] sane_get_devices: found 1 devices</div><div>[dll] sane_open: trying to open `plustek:libusb:004:015'</div><div>[dll] sane_open: open successful</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=0)</div>

<div>[dll] sane_control_option(handle=0x9915678,option=0,action=0,value=0xbfc96160,info=(nil))</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=0)</div><div>[dll] sane_control_option(handle=0x9915678,option=0,action=0,value=0xbfc9408c,info=(nil))</div>

<div>[dll] sane_get_option_descriptor(handle=0x9915678,option=1)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=2)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=3)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=4)</div>

<div>[dll] sane_get_option_descriptor(handle=0x9915678,option=5)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=6)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=7)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=8)</div>

<div>[dll] sane_get_option_descriptor(handle=0x9915678,option=9)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=10)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=11)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=12)</div>

<div>[dll] sane_get_option_descriptor(handle=0x9915678,option=13)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=14)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=15)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=16)</div>

<div>[dll] sane_get_option_descriptor(handle=0x9915678,option=17)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=18)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=19)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=20)</div>

<div>[dll] sane_get_option_descriptor(handle=0x9915678,option=21)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=22)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=23)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=24)</div>

<div>[dll] sane_get_option_descriptor(handle=0x9915678,option=25)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=26)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=27)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=28)</div>

<div>[dll] sane_get_option_descriptor(handle=0x9915678,option=29)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=30)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=31)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=32)</div>

<div>[dll] sane_get_option_descriptor(handle=0x9915678,option=33)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=34)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=35)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=36)</div>

<div>[dll] sane_get_option_descriptor(handle=0x9915678,option=37)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=38)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=39)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=40)</div>

<div>[dll] sane_get_option_descriptor(handle=0x9915678,option=41)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=42)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=43)</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=44)</div>

<div>[dll] sane_control_option(handle=0x9915678,option=10,action=0,value=0x8052820,info=(nil))</div><div>[dll] sane_control_option(handle=0x9915678,option=8,action=0,value=0xbfc94088,info=(nil))</div><div>[dll] sane_control_option(handle=0x9915678,option=11,action=0,value=0x8052824,info=(nil))</div>

<div>[dll] sane_control_option(handle=0x9915678,option=9,action=0,value=0xbfc94088,info=(nil))</div><div>[dll] sane_control_option(handle=0x9915678,option=8,action=0,value=0xbfc96158,info=(nil))</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=10)</div>

<div>[dll] sane_control_option(handle=0x9915678,option=10,action=1,value=0xbfc96154,info=0xbfc9408c)</div><div>[dll] sane_control_option(handle=0x9915678,option=9,action=0,value=0xbfc96158,info=(nil))</div><div>[dll] sane_get_option_descriptor(handle=0x9915678,option=11)</div>

<div>[dll] sane_control_option(handle=0x9915678,option=11,action=1,value=0xbfc96154,info=0xbfc9408c)</div><div>[dll] sane_start(handle=0x9915678)</div><div>scanimage: sane_start: Error during device I/O</div><div>[dll] sane_cancel(handle=0x9915678)</div>

<div>[dll] sane_close(handle=0x9915678)</div><div>[dll] sane_exit: exiting</div></div><div><br></div><div>I have not found any reference to this particular problem with scanimage (only working once).</div><div><br></div>
<div>
I do not believe the scanner is physically damaged in any way. I don't have immediate access to another other PCs to try it on.</div><div><br></div><div>I appear to have two version of libusb:</div><div><br></div><div>
<div>james@jamespc:~$ dpkg -l | grep libusb</div><div>ii  libusb-0.1-4                             2:0.1.12-16                        userspace USB programming library</div><div>ii  libusb-1.0-0                             2:1.0.8-2                          userspace USB programming library</div>
</div><div><br></div><div>Not sure if this is an issue or not.</div><div><br></div><div>Thanks in advance for any help!</div>