From owner-freebsd-ports@FreeBSD.ORG Sun May 23 21:00:47 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2D351065670 for ; Sun, 23 May 2010 21:00:46 +0000 (UTC) (envelope-from materribile@yahoo.com) Received: from web110302.mail.gq1.yahoo.com (web110302.mail.gq1.yahoo.com [67.195.8.202]) by mx1.freebsd.org (Postfix) with SMTP id CAC618FC1A for ; Sun, 23 May 2010 21:00:46 +0000 (UTC) Received: (qmail 11210 invoked by uid 60001); 23 May 2010 21:00:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1274648446; bh=LSlVqepMeAHXLkqhhXX+fi980Hi8v2FCIs1e6Zkdaow=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=MZ2TQKIkQVObxtBbQF2jV/JdY/ULjffLXPRHb8w/qU/MkUo49s3LIMsLWvbBrqrgJzmGsb6Cp5qgSF2pSgoDmlJQU10lCG1fMEmLl8FMKsb0GI+I1eRmzUMPblA4HLa0wWNVZyPqeQ+5SVD/Wba8fcKTMQy2dQ82lAe0Y+sOMBw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=AZzayHwL7aOy7V0phSEuzNlymLBpeZpiGCf1U9pWMFgyB0Aeh9lJfWUW5U6PGRNsmB2qmC8nwxz6IMeBF2gpfSFQNHR9TIo2K3jWmtTmaT6gusjAlqFTpsTT0dWCrqVTaJzScDXpCZXM74mPDO2cojtj3AUSfia3Yk7i2WvqGJw=; Message-ID: <473151.10305.qm@web110302.mail.gq1.yahoo.com> X-YMail-OSG: XHj0HJQVM1kmHrrhsek.PYgoATSl3btI_sg4BfyRirVeGa9 isIGPxCV.KSRGKCw.J2CA8oxns1MunLDbV4JFxmWyjW8LJXQBemytGbIUvJW Bnq.ZobWsJri26NoFNTJE5BYk4lKcCNhF8YnH_r3fx2c5VVdToBt2g7UNSaE Oot1n5OM73ICh4pLoud3_BZQfuWW1vnl.t2L4JaiV9AMySw8p3FKFeMtJ0Ud EcEZVwMZ3IaMDneVA7c1ZBrJZuqge_H4rQUQcAU.X7CnwuxvNvKd2A7k6UIO 22qO2w10Fyie6I7c_BCAZLzhmV437jGWV.4QzFKy89kMTRAZS0epCPk4- Received: from [24.228.57.153] by web110302.mail.gq1.yahoo.com via HTTP; Sun, 23 May 2010 14:00:46 PDT X-Mailer: YahooMailClassic/11.0.8 YahooMailWebService/0.8.103.269680 Date: Sun, 23 May 2010 14:00:46 -0700 (PDT) From: Mark Terribile To: freebsd-ports@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Porting SANE backend 1.0.21 to FreeBSD 7.2 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 May 2010 21:00:47 -0000 Thanks to help from Warren Block and Lowell Gilbert, I now have the offical ported version of sane-backends-1.0.21 running. Unfortunately, it's behaving the same way as before, apparently not properly recognizing the USB device. It Does anyone have experience using this? Or better yet, some sense of what it needs from the USB side? A clue on enabling the internal debugging would also be welcome. Mark Terribile ============================================= I have added product CANON CS8800F 0x1901 CanoScan 8800F to /usr/src/sys/dev/usb/usbdevs. I have also added {{ USB_VENDOR_CANON, USB_PRODUCT_CANON_CS8800F }, 0 }, to /usr/src/sys/dev/usb/uscanner.c When I run scanimage -L I get --------- device `pixma:04A91901' is a CANON Canoscan 8800F multi-function peripheral ------- When I run scanimage -d pixma:04A9101 I get -------- scanimage: sane_read: Invalid argument -------- Which I have traced to a defaulted fill routine in a table. scanimage --help gives me a message ending with ------- Options specific to device `pixma:04A91901': Scan mode: --resolution auto||75|150|300|600|1200|2400|4800dpi [75] Sets the resolution of the scanned image. --mode auto|Color|Gray [Color] Selects the scan mode (e.g., lineart, monochrome, or color). --source Flatbed|Transparency Unit [Flatbed] Selects the scan source (such as a document-feeder). --button-controlled[=(yes|no)] [no] When enabled, scan process will not start immediately. To proceed, press "SCAN" button (for MP150) or "COLOR" button (for other models). To cancel, press "GRAY" button. Gamma: --custom-gamma[=(auto|yes|no)] [yes] Determines whether a builtin or a custom gamma-table should be used. --gamma-table auto|0..255,... Gamma-correction table. In color mode this option equally affects the red, green, and blue channels simultaneously (i.e., it is an intensity gamma table). Geometry: -l auto|0..216.069mm [0] Top-left x position of scan area. -t auto|0..297.011mm [0] Top-left y position of scan area. -x auto|0..216.069mm [216.069] Width of scan-area. -y auto|0..297.011mm [297.011] Height of scan-area. Buttons: --button-update Update button state --button-1 [0] Button 1 --button-2 [0] Button 2 Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE. List of available devices: ---------------------------- There is a /dev/usb/uscanner . I haven't figured out how to turn on the internal debugging system, so my first question to someone who may have ported an earlier version is how to do that. My second question is whether I have the USB entries right, and whether I need to do anything else to make this work. And finally, I ask for any general wisdom or hints in dealing with SANE and SANE with USB devices.