Eelke Klein wrote: > --- Cory Foy <[email protected]> wrote: > >>Hello, >> >>I have been working to get my Canon LIDE 30 scanner working >>under Gentoo >>with a 2.6 kernel. I've installed Sane (and Xsane). My >>dll.conf has only >>"plustek" not commented out, and my plustek.conf file looks >>like: >> >>[usb] 0x04a9 0x220e >>device /dev/usbscanner >> >>However, when I do a sane-find-scanner it shows no scanners >>available >>(tried as both a user and as root). >> >>Another interesting point on my system is that >>/dev/usbscanner, >>/dev/scanner, /dev/usb/scanner0, etc are all not in /dev. >>/dev/usb is >>available and only contains an empty hid directory. >> >>I began to think that USB wasn't enabled. But looking at >>/proc/bus/usb/devices I get: > > [snip] > >>T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 3 Spd=12 >>MxCh= 0 >>D: Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=ff 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=(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(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms >> > > The nodes in /dev or not needed with a 2.6.x kernel. sane uses > libusb which communicates with the hardware through > /proc/bus/usb. > >>(The Canon is what I am working with. Haven't gotten the >>VideoCAM to >>work either). >> >>Running modprobe scanner with the version and product, or >>insmod scanner >>both fail because they can't find the module scanner. (Same >>goes for >>modprobe usbscanner). > > That's ok the scanner module doesn't exist in the 2.6 series and > is not needed. > > [snip] > >> >>I am at a complete loss of where to head from there. By all >>accounts >>this should have been a fairly straightforward process, but >>hasn't been. >> The closest thing I've found is this thread: >> >> > > http://www.epkowa.co.jp/cgi-bin/lx/bbs/en/scanner-bbs/hyperbbs.cgi?mode=view;Code=30 > >>But it didn't seem to fit because I can see my device in >>/proc. >> >>Any thoughts? Thanks in advance for your advice. > > Make sure usb is listed in your USE flags. If not put it there. > unmerge sane-backends, emerge libusb emerge sane-backends. > > If usb was in the use flags you still should check if libusb is > installed. You can check if sane is really using it by doing > > ldd `which sane-find-scanner` > > The output should be something like this: > > linux-gate.so.1 => (0xffffe000) > libusb-0.1.so.4 => /usr/lib/libusb-0.1.so.4 (0x4002a000) > libnsl.so.1 => /lib/libnsl.so.1 (0x40031000) > libm.so.6 => /lib/libm.so.6 (0x40046000) > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4d63a000) > libieee1284.so.3 => /usr/lib/libieee1284.so.3 > (0x4e7f2000) > libc.so.6 => /lib/libc.so.6 (0x40069000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > > Notice libusb on the second line > > > Eelke
Indeed. I had installed libusb, but after I had installed sanes-backends. I unmerged both of them, checked my USE flags (which I had to add usb) and then emerged both of them. That did the trick, sane-find-scanner now uses libusb and finds my scanner. It wasn't found yet by scanimage, but I'll work through the troubleshooting steps a little later. Thanks everyone for your help! Cory
