Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jan 2006 20:36:49 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Joe Altman <fj@panix.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: New Canon LiDE60; and it seems to need a reference(?) in source
Message-ID:  <20060127201248.T94974@wonkity.com>
In-Reply-To: <20060125040641.GA10059@panix.com>
References:  <20060125040641.GA10059@panix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 24 Jan 2006, Joe Altman wrote:

> I have this device:
>
> # usbdevs -v
> port 3 addr 2: high speed, power 500 mA, config 1, CanoScan(0x221c),
> Canon(0x04a9), rev 3.06
>
> #sane-find-scanner
> found USB scanner (vendor=0x04a9 [Canon], product=0x221c [CanoScan],
> chip=GL841) at libusb:/dev/usb4:/dev/ugen0
>
> #scanimage -L
> device `genesys:libusb:/dev/usb4:/dev/ugen0' is a Canon LiDE 60
> flatbed scanner
>
> #dmesg
> ugen0: Canon CanoScan, rev 2.00/3.06, addr 2

This seems to indicate that you could use

usb /dev/ugen0

in your SANE config file.

> I've read back to some archived questions, and it seems (I'm guessing)
> that this scanner lacks a reference in these two files:
>
> /usr/src/sys/dev/usb/uscanner.c
> /usr/src/sys/dev/usb/usbdevs
>
> I say this, because while the above queries turn up the correct
> info[1] for the scanner, there is no uscanner0 device created in /dev/
> on this system:
>
> 5.4-STABLE FreeBSD 5.4-STABLE #0: Sun Jan 22 21:00:53 EST 2006
> root@a nondescript blue box:/usr/obj/usr/src/sys/ANNA2  i386
>
> So my query: if my guess is correct, and who do I ask to patch the
> relevant source?

The normal procedure is to submit a bug report with send-pr, preferably 
with patches.  It should be enough to submit the information shown 
above.

> I did look at the code, but wasn't certain how to translate from the
> three outputs above into an appropriate syntax.

I have 6.0 (strongly suggest you upgrade) and don't have that scanner. 
You should be able to add a line to the Canon section of usbdevs:

product CANON LIDE60		0x221c  CanoScan LiDE60

and then add this line to the Canon section of uscanner.c:

{{ USB_VENDOR_CANON, USB_PRODUCT_CANON_LIDE60 }, 0 },

Then rebuild (make, make install).  Probably need to -HUP usbd, also.

-Warren Block * Rapid City, South Dakota USA



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060127201248.T94974>