Because a failure is sometimes more educational than a success, for previous editions of this book, we attempted to configure a USB scanner that wasn't supported: the Canon N650U. With the release of the version of SANE included with Ubuntu, the scanner is now supported, and it is automatically detected!
However, here are the manual steps we used for detecting and configuring this scanner in Linux when it did not work properly:
First, connect the scanner. For this USB scanner, look at the output of:
$ sudo cat /proc/bus/usb/devices/
(We have truncated the output here to show only the scanner. You can also use the lsusb command.)
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=04a9 ProdID=2206 Rev= 1.00 S: Manufacturer=Canon S: Product=CanoScan
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=ff Driver=(none) E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=16ms E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=03(0) Atr=02(Bulk) MxPS= 64 Ivl=0ms
Driver=(none) at the end of the seventh line tells us that the device was not found in the lookup table. Because we now have the "magic" vendor ID and device ID, we can attempt to load the driver manually with
$ sudo /sbin/modprobe scanner vendor=0x04a9 product=0x2206
Now the output of the catlsusb command from before tells us that the scanner device driver is associated with our scanner:
[View full width]I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=ff Driver=usbscanner and the Kooka and Xsane applications now recognize the scanner.
Was this article helpful?