Hello, "m. allan noah" wrote at Tue, 10 Jul 2007 14:33:27 -0400 : > > > get a debug log at level 30 instead, and send that to me directly > > > instead of this mailing list. also please give the name of your OS. > > > > I attach the logs. To reduce data, I set x and y to 100 and > > resolution (x and y) to 50. > > > ok- the file /tmp/test-1-flatbed-0001.pnm was scanned successfully, > but then scanadf tried to grab a second page (cause that's what it is > for), and the scanner choked on the 'scan' command. i can see a few > ways to 'fix' this- > > 1. i send some sort of reset command after the scan when using the > flatbed. then a second call to scan should succeed. however, this will > cause scanadf to run forever, making repeated scans of the same paper. > > 2. i send a 'SANE_STATUS_NODOCS' on the second flatbed scan. this will > make scanadf stop trying, but i dont know what return value it sets. > > 3. you could send the -s and -e options to scanadf to only pull one > image when using flatbed
using the options -e and -s (setting each to one) works fine. Now the page is scanned and the return code is zero. markus at hydorn 1111 > /usr/local/packages/sane-cvs/bin/scanadf --source "Flatbed" --mode Color -o /tmp/test-1-flatbed-000%d.pnm -e 1 -s 1 ; echo $? [sanei_debug] Setting debug level of fujitsu to 5. [fujitsu] sane_init: fujitsu backend 1.0.49, from sane-backends 1.0.18-cvs Scanned document /tmp/test-1-flatbed-0001.pnm Scanned 1 pages 0 markus at hydorn 1112 > > > 4. use scanimage instead of scanadf when using the flatbed. > > allan > Thanks for your help. Markus -- ---------------------------------------------------------------------- Markus Haberkorn mail : Markus_Haberkorn at genua.de Gesellschaft f?r UNIX- und tel. : +49 (89) 991950-134 Netzwerkadministration mbH fax. : +49 (89) 991950-999 Domagkstrasse 7 www : http://www.genua.de D-85551 Kirchheim ----------------------------------------------------------------------