From owner-freebsd-questions@FreeBSD.ORG Sat Jan 28 03:36:50 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D2D816A420 for ; Sat, 28 Jan 2006 03:36:50 +0000 (GMT) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0363743D46 for ; Sat, 28 Jan 2006 03:36:49 +0000 (GMT) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.13.3/8.13.3) with ESMTP id k0S3anE6096668; Fri, 27 Jan 2006 20:36:49 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.13.3/8.13.3/Submit) with ESMTP id k0S3anFJ096665; Fri, 27 Jan 2006 20:36:49 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Fri, 27 Jan 2006 20:36:49 -0700 (MST) From: Warren Block To: Joe Altman In-Reply-To: <20060125040641.GA10059@panix.com> Message-ID: <20060127201248.T94974@wonkity.com> References: <20060125040641.GA10059@panix.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (wonkity.com [127.0.0.1]); Fri, 27 Jan 2006 20:36:49 -0700 (MST) Cc: freebsd-questions@freebsd.org Subject: Re: New Canon LiDE60; and it seems to need a reference(?) in source X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jan 2006 03:36:50 -0000 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