[sane-devel] Epson DS-1630: Issue with ADF using `scanadf`, but not `scanimage`
Jan-Benedict Glaw
jbglaw at lug-owl.de
Wed Jul 17 02:05:04 BST 2024
Hi,
I was searching for an ADF-capable scanner and came across an Epson
DS-1630. I see that the `epsonds` backend is marked unmaintained, but
maybe somebody can give me a hint if it was ever successfully tested
to work in duplex mode. (That would give me some start for a `git
bisect` session...)
What _works_ is this:
scanadf -d 'epsonds:libusb:002:008' \
--source 'ADF Front' \
--mode Color \
--resolution 300dpi \
--output foo-scan.pbm \
-S /root/scan-script.sh \
--script-wait
That will scan the visible (up) side of of the inserted pages into
a 2544x4642 sized image. (The page picture is top-aligned, the overall
image will need a crop, cutting away everything below line ~ 3480, but
that's not much of an issue.)
What does _not_ work is using it in Duplex mode:
scanadf -d 'epsonds:libusb:002:008' \
--source 'ADF Duplex' \
--mode Color \
--resolution 300dpi \
--output foo-scan.pbm \
-S /root/scan-script.sh \
--script-wait
This time, it will generate three output files (for three inserted
sheets of paper), call the script six times (so three times there will
be no scanned image file). My impression is that it actually correctly
feeds the page (via duplexer) a second time through the scanner.
The generated files contain the non-visible (down) side of the pages,
in a "too long" page as above, though bottom-aligned. The top/up pages
are thus missing.
With this quite simple script:
$ cat scan-script.sh
#!/usr/bin/env bash
exec 2>&1
mkdir -p /root/scan.dir
echo .-.-.-.-.-.-.-.-.- Called at $(date) .-.-.-.-.-.-.-.-.
mv -v foo-scan.pbm "/root/scan.dir/$(date +%s).pbm"
echo
...the visible output looks like this:
Scanned document foo-scan.pbm
.-.-.-.-.-.-.-.-.- Called at Mi 17. Jul 02:30:54 CEST 2024 .-.-.-.-.-.-.-.-.
renamed 'foo-scan.pbm' -> '/root/scan.dir/1721176254.pbm'
Scanned document foo-scan.pbm
.-.-.-.-.-.-.-.-.- Called at Mi 17. Jul 02:30:54 CEST 2024 .-.-.-.-.-.-.-.-.
mv: cannot stat 'foo-scan.pbm': No such file or directory
Scanned document foo-scan.pbm
.-.-.-.-.-.-.-.-.- Called at Mi 17. Jul 02:31:04 CEST 2024 .-.-.-.-.-.-.-.-.
renamed 'foo-scan.pbm' -> '/root/scan.dir/1721176264.pbm'
Scanned document foo-scan.pbm
.-.-.-.-.-.-.-.-.- Called at Mi 17. Jul 02:31:04 CEST 2024 .-.-.-.-.-.-.-.-.
mv: cannot stat 'foo-scan.pbm': No such file or directory
Scanned document foo-scan.pbm
.-.-.-.-.-.-.-.-.- Called at Mi 17. Jul 02:31:14 CEST 2024 .-.-.-.-.-.-.-.-.
renamed 'foo-scan.pbm' -> '/root/scan.dir/1721176274.pbm'
Scanned document foo-scan.pbm
Scanned 6 pages
.-.-.-.-.-.-.-.-.- Called at Mi 17. Jul 02:31:14 CEST 2024 .-.-.-.-.-.-.-.-.
mv: cannot stat 'foo-scan.pbm': No such file or directory
Looking at the timestamps, the two script calls for the two pages of
each sheet are right after each other, with the first invocation
having a proper scanned images, and the second call is missing it.
**more testing**
OTOH, simply using `scanimage` does work, producing front- and
backside images for all pages (need crop as above):
scanimage -d epsonds:libusb:002:008
--format=tiff
--source 'ADF Duplex'
--depth 8
--resolution 300dpi
--batch=foo%d.tiff
So this looks more like an issue with `scanadf` and not with the
epsonds backend? Relevant installed software versions are:
root at charon:~# dpkg -l '*sane*'|grep '^ii'
ii libimage-sane-perl 5-2+b2 amd64 Perl extension for the SANE (Scanner Access Now Easy) Project
ii libksanecore1 23.08.1-2+b1 amd64 library providing logic to interface scanners
ii libsane-common 1.3.0-1 all API library for scanners -- documentation and support files
ii libsane1:amd64 1.3.0-1 amd64 API library for scanners
ii sane 1.0.14-18 amd64 scanner graphical frontends
ii sane-utils 1.3.0-1 amd64 API library for scanners -- utilities
ii xsane 0.999-12+b2 amd64 featureful graphical frontend for SANE (Scanner Access Now Easy)
ii xsane-common 0.999-12 all xsane architecture independent files
Thanks,
Jan-Benedict
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20240717/a5199856/attachment.sig>
More information about the sane-devel
mailing list