Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 May 2010 08:03:48 -0700 (PDT)
From:      Mark Terribile <materribile@yahoo.com>
To:        freebsd-ports@freebsd.org
Subject:   Porting SANE backend 1.0.21 to FreeBSD 7.2
Message-ID:  <530338.37945.qm@web110316.mail.gq1.yahoo.com>

next in thread | raw e-mail | index | archive | help
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 <int> [0]=0A        Button 1=0A    -=
-button-2 <int> [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      



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