From owner-freebsd-ports@FreeBSD.ORG Sat May 22 15:30:30 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 9FCB4106564A for ; Sat, 22 May 2010 15:30:30 +0000 (UTC) (envelope-from materribile@yahoo.com) Received: from web110316.mail.gq1.yahoo.com (web110316.mail.gq1.yahoo.com [67.195.8.216]) by mx1.freebsd.org (Postfix) with SMTP id 6F03B8FC18 for ; Sat, 22 May 2010 15:30:30 +0000 (UTC) Received: (qmail 42900 invoked by uid 60001); 22 May 2010 15:03:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1274540628; bh=V/PienyARtChxXSCDNiEHmcG9bWnFnJwZU7IX3Kkf/o=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=XDs1xF90zpqxXdyIgXQl3Q1zF09cdu6fI/L84K/duiE8mIeLqlbNMUd3VaMkjwgoG/6JWkRAJO1sxybG97AEj3uubh18JGo+iBWOYDa/GwwEi+QDvtwj+ZA4Lz+afz7UN4Sdc95PQ0KsR00oJj5fmGb/Wdi158hFFzDEneJEj40= 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:MIME-Version:Content-Type:Content-Transfer-Encoding; b=woBaYJ0K7VjzF8zkI4ZkjFV3J2j/pQI35h+z/sB7f4HManSlsqXIGgVnj/8U1noz+XPn9AORBjy5LeOiRahUVdiv5blV0/ADy5YOI1DHcYOB4SaSDDLAJVb1IDKog+8s/orqbto5SILsmC2qVJicN2Tpb9CEVeaOlMZkzLhsEPI=; Message-ID: <530338.37945.qm@web110316.mail.gq1.yahoo.com> X-YMail-OSG: KkhTovwVM1m3cj7kKgM6GjAin1lYGijj62_TnvkRR9iOaj_ 1wP1kvJ8TD0VpWG_1VM2nPWUTsr996ACYy9fCAjdbkljGBvGEGoWz.cSViOa zWdDoAPCu0KB6HHXpB12C98K59dh2lhliSK922Xkiz5_.fnPigpo6WfstSEe WKX8qnuGjVhtcKIPVV7RlgXo4QXbmuu3lHtIqUBwqRYvn3NnP8UhD5vkK3Bz vTv5JBYga6GGsvQJuJV2fj6.YUxRyzx_RhmSC0EgdWIiuN2LLgYhngOK8i_T i7Y_2JSSyHDqyxaQ6aljMz412fDsz.0uM5ovDqgg61qCKx4aZtAlJZjhk27r YpKrqNj5lgQDmLdcEY5Bul3kuh2Z_ Received: from [24.228.57.153] by web110316.mail.gq1.yahoo.com via HTTP; Sat, 22 May 2010 08:03:48 PDT X-Mailer: YahooMailClassic/11.0.8 YahooMailWebService/0.8.103.269680 Date: Sat, 22 May 2010 08:03:48 -0700 (PDT) From: Mark Terribile To: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: 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: Sat, 22 May 2010 15:30:30 -0000 If this is the wrong place, please be gentle!=A0 I need to get a Canon 8800= F scanner running on FreeBSD 7.2 . SANE's latest version is said to suppor= t this scanner.=0A=0AI have gotten a copy of it to build (and fed a few min= or problems back to the people at the SANE project: https://alioth.debian.o= rg/tracker/?func=3Ddetail&atid=3D410366&aid=3D312503&group_id=3D30186) and = I have added=0A=0Aproduct CANON CS8800F=09=090x1901=09CanoScan 8800F=0A=0At= o /usr/src/sys/dev/usb/usbdevs. I have also added=0A=0A {{ USB_VENDOR_CANO= N, USB_PRODUCT_CANON_CS8800F }, 0 },=0A=0Ato /usr/src/sys/dev/usb/uscanner.= c=0A=0AWhen I run scanimage -L I get=0A---------=0A=0Adevice `pixma:04A9190= 1' is a CANON Canoscan 8800F multi-function peripheral=0A-------=0A=0AWhen = I run scanimage -d pixma:04A9101 I get=0A--------=0Ascanimage: sane_read: I= nvalid argument=0A--------=0A=0AWhich I have traced to a defaulted fill rou= tine in a table.=0A=0Ascanimage --help gives me=0A-------=0A=0AUsage: scani= mage [OPTION]...=0A=0AStart image acquisition on a scanner device and write= image data to=0Astandard output.=0A=0AParameters are separated by a blank = from single-character options (e.g.=0A-d epson) and by a "=3D" from multi-c= haracter options (e.g. --device-name=3Depson).=0A-d, --device-name=3DDEVICE= use a given scanner device (e.g. hp:/dev/scanner)=0A --format=3Dpnm|t= iff file format of output file=0A-i, --icc-profile=3DPROFILE include = this ICC profile into TIFF file=0A-L, --list-devices show available= scanner devices=0A-f, --formatted-device-list=3DFORMAT similar to -L, but = the FORMAT of the output=0A can be specified: %d = (device name), %v (vendor),=0A %m (model), %t (ty= pe), %i (index number), and=0A %n (newline)=0A-b,= --batch[=3DFORMAT] working in batch mode, FORMAT is `out%d.pnm' or= =0A `out%d.tif' by default depending on --format= =0A --batch-start=3D# page number to start naming files with=0A = --batch-count=3D# how many pages to scan in batch mode=0A --bat= ch-increment=3D# increase page number in filename by #=0A --batch-dou= ble increment page number by two, same as=0A = --batch-increment=3D2=0A --batch-prompt ask for pressing a k= ey before scanning a page=0A --accept-md5-only only accept authoriz= ation requests using md5=0A-p, --progress print progress messag= es=0A-n, --dont-scan only set options, don't actually scan=0A-T,= --test test backend thoroughly=0A-h, --help = display this help message and exit=0A-v, --verbose give even= more status messages=0A-B, --buffer-size=3D# change input buffer si= ze (in kB, default 32)=0A-V, --version print version informati= on=0A=0AOptions specific to device `pixma:04A91901':=0A Scan mode:=0A -= -resolution auto||75|150|300|600|1200|2400|4800dpi [75]=0A Sets the = resolution of the scanned image.=0A --mode auto|Color|Gray [Color]=0A = Selects the scan mode (e.g., lineart, monochrome, or color).=0A --s= ource Flatbed|Transparency Unit [Flatbed]=0A Selects the scan source= (such as a document-feeder).=0A --button-controlled[=3D(yes|no)] [no]= =0A When enabled, scan process will not start immediately. To procee= d,=0A press "SCAN" button (for MP150) or "COLOR" button (for other m= odels).=0A To cancel, press "GRAY" button.=0A Gamma:=0A --custom= -gamma[=3D(auto|yes|no)] [yes]=0A Determines whether a builtin or a = custom gamma-table should be used.=0A --gamma-table auto|0..255,...=0A = Gamma-correction table. In color mode this option equally affects th= e=0A red, green, and blue channels simultaneously (i.e., it is an in= tensity=0A gamma table).=0A Geometry:=0A -l auto|0..216.069mm [0= ]=0A Top-left x position of scan area.=0A -t auto|0..297.011mm [0= ]=0A Top-left y position of scan area.=0A -x auto|0..216.069mm [2= 16.069]=0A Width of scan-area.=0A -y auto|0..297.011mm [297.011]= =0A Height of scan-area.=0A Buttons:=0A --button-update=0A = Update button state=0A --button-1 [0]=0A Button 1=0A -= -button-2 [0]=0A Button 2=0A=0AType ``scanimage --help -d DEVI= CE'' to get list of all options for DEVICE.=0A=0AList of available devices:= =0A=0A----------------------------=0AThere is a /dev/usb/uscanner .=0A=0AI = haven't figured out how to turn on the internal debugging system, so my fir= st question to someone who may have ported an earlier version is how to do = that.=0A=0AMy second question is whether I have the USB entries right, and = whether I need to do anything else to make this work.=0A=0AAnd finally, I a= sk for any general wisdom or hints in dealing with SANE and SANE with USB d= evices.=0A=0AWhen I am done, I will gladly turn my work over to anyone who = would like to incorporate it into the ports base. (And after this, I need = a new CUPS and an EPSON Sylus R1900).=0A=0AThank you for any help you may b= e able to offer.=0A=0A Mark Terribile=0A=0A=0A