Canon USB Scanner w/ Linux
I have a Canon N1240U scanner that hooked up to my workstation. I'm running Gentoo, which makes it easy. First, I start a compile of the kernel. Here is a copy of the .config file for a 2.4.29 kernel. After I do the kernel shuffle, I start an emerge of xsane:
root@wrk-1 usr-1 # emerge xsane
Calculating dependencies ...done!
>>> emerge (1 of 3) sys-libs/libieee1284-0.2.1 to /
>>> Downloading http://distfiles.gentoo.org/distfiles/libieee1284-0.2.1.tar.bz2
--07:35:16-- http://distfiles.gentoo.org/distfiles/libieee1284-0.2.1.tar.bz2
=> `/usr/portage/distfiles/libieee1284-0.2.1.tar.bz2'
Resolving distfiles.gentoo.org... 156.56.247.195,
140.211.166.134, 216.165.129.135
Connecting to distfiles.gentoo.org[156.56.247.195]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 182,411 [application/x-tar]
.
.
.
|
Gentoo just keeps working better and better.
Let's see what the Canon scanner comes up as:
root@wrk-1 usr-1 # cat /proc/bus/usb/devices
.
.
.
T: Bus=04 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 3 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=04a9 ProdID=220e Rev= 1.00
S: Manufacturer=Canon
S: Product=CanoScan
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=ff Driver=usbscanner
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(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
.
.
.
|
From the documentation on this page,
the Vendor ID matches (04a9).
If I run xsane, all is now detected. I din't have to configure anything, it just worked. Now, I do have the support compiled into the kernel, rather than as a module with hot-plug stuff. This is both good and bad, but mostly good. In this case it made things very easy. Here is a screenshot:
|
|