Getting a Canon scanner to work

Petr Janda elekktretterr at exemail.com.au
Wed Jun 21 12:22:30 PDT 2006


Ok, Ive done more progress. I forgot to use Walt's patched 
sane-backends. Now I did it, and scanimage -L finally recognizes the 
scanner.

Now Ive got 2 questions:

1) It only works when Im logged in as root, non-root still cannot find 
scanner, what did you do to get yours working as non-root Walt?
2) How do I make a patch so I can send it to submit? I only have one 
source tree at /usr/src

Cheers,

Petr Janda wrote:
Ok, Ive done a bit of digging. 3 files needed to be edited.

/usr/src/sys/dev/usbmisc/uscanner/uscanner.c

{{ USB_VENDOR_CANON, USB_PRODUCT_CANON_D660U }, 0 },

/usr/src/sys/bus/usb/usbdevs

product CANON D660U             0x2208  CanoScan D660U

/usr/src/sys/bus/usb/usbdevs.h

#define USB_PRODUCT_CANON_D660U 0x2208          /* CanoScan D660U */

After this, dmesg shows this

uscanner0: Canon CanoScan, rev 1.10/1.00, addr 2

However, sane-find-scanner now shows:

# No USB scanners found. If you expected something different, make 
sure that
 # you have loaded a kernel driver for your USB host controller and 
have setup
 # the USB system correctly. See man sane-usb for details

and scanimage -L also says no scanner found also. :(

Can anyone have a look at this? Neither my printer nor my scanner 
works in DF :S

Petr Janda wrote:
Is this for walt's scanner, mine, or us both?

Cheers,

Steve O'Hara-Smith wrote:
On Wed, 21 Jun 2006 01:22:07 -0700
walt <wa1ter at xxxxxxxxxxxxx> wrote:
 
On Wed, 21 Jun 2006, Petr Janda wrote:

  
So what scanner have you got?
Can you show me what you get from running:
sane-find-scanner
      
found USB scanner (vendor=0x04a9 [Canon], product=0x220d 
[CanoScan]) at
libusb:/dev/usb1:/dev/ugen0
    
    The uscanner driver doesn't have this device listed. Try applying
the patch below in /usr/src/sys/dev/usbmisc/uscanner and building a new
kernel. It may be enough to get your scanner going - if it is then 
let us
know and hopefully someone will commit it.

Index: uscanner.c
===================================================================
RCS file: /home/dcvs/src/sys/dev/usbmisc/uscanner/uscanner.c,v
retrieving revision 1.10
diff -u -r1.10 uscanner.c
--- uscanner.c  2 Jun 2005 20:41:05 -0000       1.10
+++ uscanner.c  21 Jun 2006 15:52:13 -0000
@@ -123,6 +123,7 @@
 
   /* Canon */
  {{ USB_VENDOR_CANON, USB_PRODUCT_CANON_N656U }, 0 },
+ {{ USB_VENDOR_CANON, USB_PRODUCT_CANON_N676U }, 0 },
 
   /* Kye */
  {{ USB_VENDOR_KYE, USB_PRODUCT_KYE_VIVIDPRO }, 0 },

  














More information about the Users mailing list