On Saturday 22 December 2007 3:57:17 pm Jeffrey Ratcliffe wrote:
> On 22/12/2007, John Goerzen <[EMAIL PROTECTED]> wrote:
> > When I go to the Scan Options tab, and set the source to ADF Duplex, I
> > don't always get duplex scans.  Sometimes I do, sometimes not.  This
> > happens regardless of any settings on the Page Options tab.  I don't
> > know enough to tell if this is a gscan2pdf bug or a sane bug.  Is
> > there any particular info I could supply that would help track it down?
>
> I should read the bug report better before replying.
>
> To eliminate gscan2pdf from the equation, use the --debug option to
> see the options that gscan2pdf supplies to scanimage and try scanimage
> on its own.

Sigh.  It's being a Heisenbug.  It is working while I run it under --debug.

> If you think that the scanimage is producing images for both side, but
> that gscan2pdf is simply not picking them up, give me
> a. the --debug output for the scan
> b. the command line output from scanimage for the same scan.

And it produced 4 pnm files as output, as expected.

For the record, I'm attaching the --debug output and the scanimage output.  
I'll keep an eye on it and continue to try to make it fail.
gscan2pdf 0.9.19
Using en_US locale
:Receipts:
:US Legal:
:US Letter:
:A4:
:Misc:
Gtk2-Perl version 1.161
Built for 2.12.0
Running with 2.12.1
$VAR1 = {
          'ocr panel' => '886',
          'frontend' => 'scanimage',
          'Paper' => {
                       'Receipts' => {
                                       'l' => '57',
                                       'y' => '203',
                                       'x' => '101',
                                       't' => '0'
                                     },
                       'US Legal' => {
                                       'l' => '0',
                                       'y' => '356',
                                       'x' => '216',
                                       't' => '0'
                                     },
                       'US Letter' => {
                                        'l' => '0',
                                        'y' => '279',
                                        'x' => '216',
                                        't' => '0'
                                      },
                       'A4' => {
                                 'l' => '0',
                                 'y' => '297',
                                 'x' => '210',
                                 't' => '0'
                               },
                       'Misc' => {
                                   'l' => '0',
                                   'y' => '600',
                                   'x' => '216',
                                   't' => '0'
                                 }
                     },
          'mode' => 'Lineart',
          'window_maximize' => '',
          'ocr engine' => 'gocr',
          'y' => '279',
          'keywords' => '',
          'layout' => 'single',
          'cwd' => '/home/jgoerzen/archive/records/2008',
          'day' => '31',
          't' => '0',
          'OCR on scan' => '',
          'image type' => 'png',
          'Paper size' => 'US Letter',
          'Page range' => 'all',
          'subject' => '',
          'window_height' => '1050',
          'startup warning' => '1',
          'brightness' => '0',
          'pages to scan' => 'all',
          'resolution' => '300',
          'title' => '',
          'unpaper on scan' => '',
          'wait-for-button' => 'no',
          'source' => 'ADF Duplex',
          'threshold' => '153',
          'month' => '1',
          'x' => '215.9',
          'author' => '',
          'compression' => 'None',
          'downsample dpi' => '150',
          'window_width' => '1067',
          'speed' => 'no',
          'threshold tool' => '50',
          'window_x' => '438',
          'window_y' => '58',
          'quality' => '90',
          'date offset' => '0',
          'tiff compression' => 'lzw',
          'thumb panel' => '180',
          'enable options' => '1',
          'version' => '0.9.19',
          'contrast' => '0',
          'device' => 'fujitsu:libusb:007:005',
          'l' => '0',
          'downsample' => '',
          'restore window' => '1',
          'pdf compression' => 'png',
          'year' => '2007'
        };
Found PDF::API2
Found Image::Magick
Found ImageMagick
Found scanadf
Found xdg-email
Found gocr
Found tesseract
Found cjb2 (djvu)
Found unpaper
Found libtiff
scanimage --formatted-device-list="'%i','%d','%v %m'
" 2>/dev/null
Forked PID 5309
Waiting to reap process at /usr/bin/gscan2pdf line 3360.
Reaped PID -1
scanimage --help --device-name='fujitsu:libusb:007:005' --mode='Lineart'
'0','fujitsu:libusb:007:005','FUJITSU ScanSnap S510'
Forked PID 5319
Waiting to reap process at /usr/bin/gscan2pdf line 4252.
Reaped PID -1
Usage: scanimage [OPTION]...

Start image acquisition on a scanner device and write PNM image data to
standard output.

Parameters are separated by a blank from single-character options (e.g.
-d epson) and by a "=" from multi-character options (e.g. --device-name=epson).
-d, --device-name=DEVICE   use a given scanner device (e.g. hp:/dev/scanner)
    --format=pnm|tiff      file format of output file
-i, --icc-profile=PROFILE  include this ICC profile into TIFF file
-L, --list-devices         show available scanner devices
-f, --formatted-device-list=FORMAT similar to -L, but the FORMAT of the output
                           can be specified: %d (device name), %v (vendor),
                           %m (model), %t (type), and %i (index number)
-b, --batch[=FORMAT]       working in batch mode, FORMAT is `out%d.pnm' or
                           `out%d.tif' by default depending on --format
    --batch-start=#        page number to start naming files with
    --batch-count=#        how many pages to scan in batch mode
    --batch-increment=#    increase number in filename by an amount of #
    --batch-double         increment page number by two for 2sided originals
                           being scanned in a single sided scanner
    --batch-prompt         ask for pressing a key before scanning a page
    --accept-md5-only      only accept authorization requests using md5
-p, --progress             print progress messages
-n, --dont-scan            only set options, don't actually scan
-T, --test                 test backend thoroughly
-h, --help                 display this help message and exit
-v, --verbose              give even more status messages
-B, --buffer-size          change default input buffersize
-V, --version              print version information

Options specific to device `fujitsu:libusb:007:005':
  Scan Mode:
    --source ADF Front|ADF Back|ADF Duplex [ADF Front]
        Selects the scan source (such as a document-feeder).
    --mode Lineart|Halftone|Gray|Color [Lineart]
        Selects the scan mode (e.g., lineart, monochrome, or color).
    --resolution 50..600dpi (in steps of 1) [600]
        Sets the horizontal resolution of the scanned image.
    --y-resolution 50..600dpi (in steps of 1) [600]
        Sets the vertical resolution of the scanned image.
  Geometry:
    -l 0..215.872mm (in steps of 0.0211639) [0]
        Top-left x position of scan area.
    -t 0..279.364mm (in steps of 0.0211639) [0]
        Top-left y position of scan area.
    -x 0..215.872mm (in steps of 0.0211639) [215.872]
        Width of scan-area.
    -y 0..279.364mm (in steps of 0.0211639) [279.364]
        Height of scan-area.
    --pagewidth 0..221.121mm (in steps of 0.0211639) [215.872]
        Must be set properly to align scanning window
    --pageheight 0..863.489mm (in steps of 0.0211639) [279.364]
        Must be set properly to eject pages
  Enhancement:
    --brightness -127..127 (in steps of 1) [0]
        Controls the brightness of the acquired image.
    --contrast -127..127 (in steps of 1) [0]
        Controls the contrast of the acquired image.
    --threshold 0..255 (in steps of 1) [0]
        Select minimum-brightness to get a white point
    --rif[=(yes|no)] [no]
        Reverse image format
  Advanced:
    --compression None|JPEG [None]
        Enable compressed data. May crash your front-end program
    --compression-arg 0..7 (in steps of 1) [0]
        Level of JPEG compression. 1 is small file, 7 is large file. 0
        (default) is same as 4
    --dfdetect Default|None|Thickness|Length|Both [Default]
        Enable double feed sensors
    --dfdiff Default|10mm|15mm|20mm [Default]
        Difference in page length to trigger double feed sensor
    --dropoutcolor Default|Red|Green|Blue [Default]
        One-pass scanners use only one color during gray or binary scanning,
        useful for colored paper or ink
    --overscan Default|Off|On [Default]
        Collect a few mm of background on top side of scan, before paper
        enters ADF, and increase maximum scan area beyond paper size, to allow
        collection on remaining sides. May conflict with bgcolor option
    --sleeptimer 0..60 (in steps of 1) [0]
        Time in minutes until the internal power supply switches to sleep mode
  Sensors and Buttons:

Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE.

List of available devices:
    fujitsu:libusb:007:005
$VAR1 = {
          'source' => {
                        'tip' => 'Selects the scan source (such as a 
document-feeder).',
                        'default' => 'ADF Front',
                        'values' => 'ADF Front|ADF Back|ADF Duplex'
                      },
          'rif' => {
                     'tip' => 'Reverse image format',
                     'default' => 'no',
                     'values' => 'yes|no'
                   },
          'sleeptimer' => {
                            'tip' => 'Time in minutes until the internal power 
supply switches to sleep mode',
                            'default' => '0',
                            'values' => '0..60 (in steps of 1)'
                          },
          'overscan' => {
                          'tip' => 'Collect a few mm of background on top side 
of scan, before paper enters ADF, and increase maximum scan area beyond paper 
size, to allow collection on remaining sides. May conflict with bgcolor option',
                          'default' => 'Default',
                          'values' => 'Default|Off|On'
                        },
          'threshold' => {
                           'tip' => 'Select minimum-brightness to get a white 
point',
                           'default' => '0',
                           'values' => '0..255 (in steps of 1)'
                         },
          'mode' => {
                      'tip' => 'Selects the scan mode (e.g., lineart, 
monochrome, or color).',
                      'default' => 'Lineart',
                      'values' => 'Lineart|Halftone|Gray|Color'
                    },
          'dfdiff' => {
                        'tip' => 'Difference in page length to trigger double 
feed sensor',
                        'default' => 'Default',
                        'values' => 'Default|10mm|15mm|20mm'
                      },
          'contrast' => {
                          'tip' => 'Controls the contrast of the acquired 
image.',
                          'default' => '0',
                          'values' => '-127..127 (in steps of 1)'
                        },
          'pageheight' => {
                            'tip' => 'Must be set properly to eject pages',
                            'default' => '279.364',
                            'values' => '0..863.489mm (in steps of 0.0211639)'
                          },
          'compression' => {
                             'tip' => 'Enable compressed data. May crash your 
front-end program',
                             'default' => 'None',
                             'values' => 'None|JPEG'
                           },
          'pagewidth' => {
                           'tip' => 'Must be set properly to align scanning 
window',
                           'default' => '215.872',
                           'values' => '0..221.121mm (in steps of 0.0211639)'
                         },
          'dfdetect' => {
                          'tip' => 'Enable double feed sensors',
                          'default' => 'Default',
                          'values' => 'Default|None|Thickness|Length|Both'
                        },
          'compression-arg' => {
                                 'tip' => 'Level of JPEG compression. 1 is 
small file, 7 is large file. 0 (default) is same as 4',
                                 'default' => '0',
                                 'values' => '0..7 (in steps of 1)'
                               },
          'brightness' => {
                            'tip' => 'Controls the brightness of the acquired 
image.',
                            'default' => '0',
                            'values' => '-127..127 (in steps of 1)'
                          },
          'y-resolution' => {
                              'tip' => 'Sets the vertical resolution of the 
scanned image.',
                              'default' => '600',
                              'values' => '50..600dpi (in steps of 1)'
                            },
          'dropoutcolor' => {
                              'tip' => 'One-pass scanners use onl$VAR1 = [];
scanimage --device-name='fujitsu:libusb:007:005' --mode='Lineart' --source='ADF 
Duplex' --threshold='153' --contrast='0' -x 216 -y 279 -l 0 
--compression='None' --brightness='0' --resolution='300' -t 0 --batch 
--progress 
y one color during gray or binary scanning, useful for colored paper or ink',
                              'default' => 'Default',
                              'values' => 'Default|Red|Green|Blue'
                            },
          'resolution' => {
                            'tip' => 'Sets the horizontal resolution of the 
scanned image.',
                            'default' => '600',
                            'values' => '50..600dpi (in steps of 1)'
                          }
        };
$VAR1 = {
          'source' => 'ADF Duplex',
          'threshold' => '153',
          'mode' => 'Lineart',
          'contrast' => '0',
          'x' => 216,
          'y' => 279,
          'l' => 0,
          'compression' => 'None',
          'brightness' => '0',
          'resolution' => '300',
          't' => 0
        };
Forked PID 5336
scanimage: rounded value of threshold from 153 to 153
scanimage: rounded value of contrast from 0 to 0
scanimage: rounded value of tl-x from 0 to 0
scanimage: rounded value of brightness from 0 to 0
scanimage: rounded value of resolution from 300 to 300
scanimage: rounded value of tl-y from 0 to 0
scanimage: rounded value of br-x from 216 to 215.872
scanimage: rounded value of br-y from 279 to 279.004
Importing out1.pnm, format Portable anymap
Added /tmp/0qTdozes0T/EmbQwWe3Fq.pnm at page 1 with resolution 300
Importing out2.pnm, format Portable anymap
Added /tmp/0qTdozes0T/UUTMRhtKFV.pnm at page 2 with resolution 300
Importing out3.pnm, format Portable anymap
Added /tmp/0qTdozes0T/izMolLKU2O.pnm at page 3 with resolution 300
Importing out4.pnm, format Portable anymap
Added /tmp/0qTdozes0T/oI8dM4qFMh.pnm at page 4 with resolution 300
Waiting to reap process at /usr/bin/gscan2pdf line 3695.
Reaped PID 5336
scanimage: rounded value of threshold from 153 to 153
scanimage: rounded value of contrast from 0 to 0
scanimage: rounded value of tl-x from 0 to 0
scanimage: rounded value of brightness from 0 to 0
scanimage: rounded value of resolution from 300 to 300
scanimage: rounded value of tl-y from 0 to 0
scanimage: rounded value of br-x from 216 to 215.872
scanimage: rounded value of br-y from 279 to 279.004
Scanning -1 pages, incrementing by 1, numbering from 1
Scanning page 1
Progress: 3.1%
Progress: 6.2%
Progress: 9.4%
Progress: 12.5%
Progress: 15.6%
Progress: 18.7%
Progress: 21.8%
Progress: 24.9%
Progress: 28.1%
Progress: 31.2%
Progress: 34.3%
Progress: 37.4%
Progress: 40.5%
Progress: 43.6%
Progress: 46.8%
Progress: 49.9%
Progress: 53.0%
Progress: 56.1%
Progress: 59.2%
Progress: 62.3%
Progress: 65.5%
Progress: 68.6%
Progress: 71.7%
Progress: 74.8%
Progress: 77.9%
Progress: 81.1%
Progress: 84.2%
Progress: 87.3%
Progress: 90.4%
Progress: 93.5%
Progress: 96.6%
Progress: 99.8%
Progress: 100.0%
Progress: 100.0%
Scanned page 1. (scanner status = 5)
Scanning page 2
Progress: 3.1%
Progress: 6.2%
Progress: 9.4%
Progress: 12.5%
Progress: 15.6%
Progress: 18.7%
Progress: 21.8%
Progress: 24.9%
Progress: 28.1%
Progress: 31.2%
Progress: 34.3%
Progress: 37.4%
Progress: 40.5%
Progress: 43.6%
Progress: 46.8%
Progress: 49.9%
Progress: 53.0%
Progress: 56.1%
Progress: 59.2%
Progress: 62.3%
Progress: 65.5%
Progress: 68.6%
Progress: 71.7%
Progress: 74.8%
Progress: 77.9%
Progress: 81.1%
Progress: 84.2%
Progress: 87.3%
Progress: 90.4%
Progress: 93.5%
Progress: 96.6%
Progress: 99.8%
Progress: 100.0%
Progress: 100.0%
Scanned page 2. (scanner status = 5)
Scanning page 3
Progress: 3.1%
Progress: 6.2%
Progress: 9.4%
Progress: 12.5%
Progress: 15.6%
Progress: 18.7%
Progress: 21.8%
Progress: 24.9%
Progress: 28.1%
Progress: 31.2%
Progress: 34.3%
Progress: 37.4%
Progress: 40.5%
Progress: 43.6%
Progress: 46.8%
Progress: 49.9%
Progress: 53.0%
Progress: 56.1%
Progress: 59.2%
Progress: 62.3%
Progress: 65.5%
Progress: 68.6%
Progress: 71.7%
Progress: 74.8%
Progress: 77.9%
Progress: 81.1%
Progress: 84.2%
Progress: 87.3%
Progress: 90.4%
Progress: 93.5%
Progress: 96.6%
Progress: 99.8%
Progress: 100.0%
Progress: 100.0%
Scanned page 3. (scanner status = 5)
Scanning page 4
Progress: 3.1%
Progress: 6.2%
Progress: 9.4%
Progress: 12.5%
Progress: 15.6%
Progress: 18.7%
Progress: 21.8%
Progress: 24.9%
Progress: 28.1%
Progress: 31.2%
Progress: 34.3%
Progress: 37.4%
Progress: 40.5%
Progress: 43.6%
Progress: 46.8%
Progress: 49.9%
Progress: 53.0%
Progress: 56.1%
Progress: 59.2%
Progress: 62.3%
Progress: 65.5%
Progress: 68.6%
Progress: 71.7%
Progress: 74.8%
Progress: 77.9%
Progress: 81.1%
Progress: 84.2%
Progress: 87.3%
Progress: 90.4%
Progress: 93.5%
Progress: 96.6%
Progress: 99.8%
Progress: 100.0%
Progress: 100.0%
Scanned page 4. (scanner status = 5)
Scanning page 5
scanimage: sane_start: Document feeder out of documents

Reply via email to