Bug#433499: does not scan anymore
On 18/07/2007, martin f krafft [EMAIL PROTECTED] wrote: also sprach Jeffrey Ratcliffe [EMAIL PROTECTED] [2007.07.18.1604 +0200]: So if I understand you correctly, you *can* make it work. It just isn't as intuitive or quick as you would like. Yes, though it requires more brain activity on my side than it should. And resources these days are scarce... :) Do you mind, therefore, if I close the bug? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#433499: does not scan anymore
let's keep the bug report in the loop, that was my fault... also sprach Jeffrey Ratcliffe [EMAIL PROTECTED] [2007.07.18.0937 +0200]: Now I have an HPOfficeJet, also running under HPLIP with an ADF, and gscan2pdf works fine. I also don't understand why you would need the -b (or --batch) option and the redirect, as the point of the --batch option is to produce one file per page. I don't have a scanner on this machine to test it. Do you still get out%d.pnm, or are all pages somehow concatenated in output.pnm? I should be more specific: ADF works. It does not seem to work if I use the flatbed. Anyway, despite the error, using batch-scan=no or not using batch-scan does actually produce out1.pnm, which it should. I was just put off by the error message. -- .''`. martin f. krafft [EMAIL PROTECTED] : :' : proud Debian developer, author, administrator, and user `. `'` http://people.debian.org/~madduck - http://debiansystem.info `- Debian - when you have better things to do than fixing systems writing a book about debian is like hitting a moving target with a champagne bottle cork. -- arky signature.asc Description: Digital signature (GPG/PGP)
Bug#433499: does not scan anymore
Does it work if you set batch-scan=no and scan from the flatbed? Yes, then it works, sort of: piper:~ scanimage --device-name='net:sane:hpaio:/net/HP_LaserJet_3052?ip=192.168.14.31' --mode='Grayscale' --contrast='50' -x 210 -y 297 -l 0 --compression='JPEG' --resolution='200' -t 0 --source=Auto --batch --batch-scan=no | /tmp/scan.pnm Scanning -1 pages, incrementing by 1, numbering from 1 Scanning page 1 Scanned page 1. (scanner status = 5) Scanning page 2 scanimage: sane_start: Error during device I/O It occurs to me that here, you should be specifying that you only want 1 scan: scanimage --device-name='net:sane:hpaio:/net/HP_LaserJet_3052?ip=192.168.14.31' --mode='Grayscale' --contrast='50' -x 210 -y 297 -l 0 --compression='JPEG' --resolution='200' -t 0 --source=Auto --batch --batch-scan=no --batch-count=1 Assuming this works, perhaps I should add a check to gscan2pdf that forces number of pages to scan to be 1 if batch-scan=no. Anyway, despite the error, using batch-scan=no or not using batch-scan does actually produce out1.pnm, which it should. I was just put off by the error message. I'd rather not suppress the error message, because the same message can be produced by a real problem. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#433499: does not scan anymore
also sprach Jeffrey Ratcliffe [EMAIL PROTECTED] [2007.07.18.1344 +0200]: It occurs to me that here, you should be specifying that you only want 1 scan: scanimage --device-name='net:sane:hpaio:/net/HP_LaserJet_3052?ip=192.168.14.31' --mode='Grayscale' --contrast='50' -x 210 -y 297 -l 0 --compression='JPEG' --resolution='200' -t 0 --source=Auto --batch --batch-scan=no --batch-count=1 I want to scan *all* pages. If the ADF is not in use, that's the same as 1. I don't see why I should have to specify this explicitly. Assuming this works, perhaps I should add a check to gscan2pdf that forces number of pages to scan to be 1 if batch-scan=no. If I scan with batch-scan=no and all batch-count=all, then it works but simply takes ages processing page two before closing the dialog. Can't gscan2pdf determine whether ADF is in use, and if not set batch-scan=off and batch-count=1? Anyway, despite the error, using batch-scan=no or not using batch-scan does actually produce out1.pnm, which it should. I was just put off by the error message. I'd rather not suppress the error message, because the same message can be produced by a real problem. gscan2pdf does not produce an error message; only scanimage does. -- .''`. martin f. krafft [EMAIL PROTECTED] : :' : proud Debian developer, author, administrator, and user `. `'` http://people.debian.org/~madduck - http://debiansystem.info `- Debian - when you have better things to do than fixing systems signature.asc Description: Digital signature (GPG/PGP)
Bug#433499: does not scan anymore
On 18/07/07, martin f krafft [EMAIL PROTECTED] wrote: also sprach Jeffrey Ratcliffe [EMAIL PROTECTED] [2007.07.18.1344 +0200]: It occurs to me that here, you should be specifying that you only want 1 scan: scanimage --device-name='net:sane:hpaio:/net/HP_LaserJet_3052?ip=192.168.14.31' --mode='Grayscale' --contrast='50' -x 210 -y 297 -l 0 --compression='JPEG' --resolution='200' -t 0 --source=Auto --batch --batch-scan=no --batch-count=1 I want to scan *all* pages. If the ADF is not in use, that's the same as 1. I don't see why I should have to specify this explicitly. For --source, you only have options Auto or ADF, so the only way to know whether the ADF is in use is to assume it isn't if --batch-scan=no. Some scanners don't have a --source option if there is only one possibility, or have wildly varying names for ADF, flatbed, etc. Only HP uses the --batch-scan option. Unfortunately, this isn't straightforward. If I scan with batch-scan=no and all batch-count=all, then it works but simply takes ages processing page two before closing the dialog. So if I understand you correctly, you *can* make it work. It just isn't as intuitive or quick as you would like. Regards Jeff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#433499: does not scan anymore
also sprach Jeffrey Ratcliffe [EMAIL PROTECTED] [2007.07.18.1604 +0200]: So if I understand you correctly, you *can* make it work. It just isn't as intuitive or quick as you would like. Yes, though it requires more brain activity on my side than it should. And resources these days are scarce... :) -- .''`. martin f. krafft [EMAIL PROTECTED] : :' : proud Debian developer, author, administrator, and user `. `'` http://people.debian.org/~madduck - http://debiansystem.info `- Debian - when you have better things to do than fixing systems signature.asc Description: Digital signature (GPG/PGP)
Bug#433499: does not scan anymore
On 17/07/07, martin f krafft [EMAIL PROTECTED] wrote: Since 0.9.10-1, gscan2pdf does not scan here anymore. I can still scan with scanimage, but gscan2pdf just says Scanning..., then Scanning page 1..., then closes the popup dialog, but nothing is being done. strace is attached. Please try the latest version. v0.9.14 is available on Sourceforge, v0.9.13 is in Ubuntu Gutsy. If the problem persists, start gscan2pdf with gscan2pdf --debug and post the command line output after trying to scan. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#433499: does not scan anymore
also sprach Jeffrey Ratcliffe [EMAIL PROTECTED] [2007.07.17.1808 +0200]: Please try the latest version. v0.9.14 is available on Sourceforge, v0.9.13 is in Ubuntu Gutsy. If the problem persists, start gscan2pdf with gscan2pdf --debug With 0.9.14, I can reproduce the problem, which seems to relate to the --batch* options passed to scanimage. See below. piper:..1666/gscan2pdf-0.9.14 gscan2pdf --debug gscan2pdf 0.9.14 Using en_GB.UTF-8 locale Gtk2-Perl version 1.140 Built for 2.8.20 Running with 2.10.13 $VAR1 = { 'ocr panel' = '749', 'frontend' = 'scanimage', 'mode' = 'Grayscale', 'window_maximize' = '', 'y' = '297', 'keywords' = '', 'layout' = 'single', 'cwd' = '/home/madduck/life/insurance', 'day' = '4', 'OCR on scan' = '', 't' = '0', 'Paper size' = 'A4', 'Page range' = 'selected', 'subject' = '', 'window_height' = '999', 'startup warning' = '1', 'pages to scan' = 'all', 'resolution' = '200', 'title' = '', 'unpaper on scan' = '', 'source' = 'Auto', 'month' = '4', 'x' = '210', 'author' = '', 'compression' = 'JPEG', 'window_width' = '1278', 'window_x' = '1318', 'window_y' = '10', 'thumb panel' = '160', 'enable options' = '1', 'version' = '0.9.14', 'contrast' = '50', 'device' = 'net:sane:hpaio:/net/HP_LaserJet_3052?ip=192.168.14.31', 'l' = '0', 'batch-scan' = 'yes', 'year' = '2007' }; Found PDF::API2 Found Image::Magick Found ImageMagick Found scanadf Found xdg-email Found gocr Found tesseract Found cjb2 (djvu) Found unpaper Forked PID 13330 Waiting to reap process at /usr/bin/gscan2pdf line 2243. Reaped PID -1 scanimage --help --device-name='net:sane:hpaio:/net/HP_LaserJet_3052?ip=192.168.14.31' --mode=Grayscale Forked PID 13332 Waiting to reap process at /usr/bin/gscan2pdf line 3185. 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-scanonly 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 `net:sane:hpaio:/net/HP_LaserJet_3052?ip=192.168.14.31': Scan mode: --mode Lineart|Grayscale|Color [Grayscale] Selects the scan mode (e.g., lineart, monochrome, or color). --resolution 75|100|150|200|300|600|1200dpi [75] Sets the resolution of the scanned image. Advanced: --contrast 0..100 [50] Controls the contrast of the acquired image. --compression None|JPEG [JPEG] Selects the scanner compression method for faster scans, possibly at the expense of image quality. --jpeg-compression-factor 0..100 [10] Sets the scanner JPEG compression factor. Larger numbers mean better compression, and smaller numbers mean better image quality. --batch-scan[=(yes|no)] [no] Guarantees that a no documents condition will be returned after the last scanned page, to prevent endless flatbed scans after a batch scan. For some models, option changes in the middle of a batch scan don't take effect until after the last page. --source Auto|ADF [Auto] Selects