[sane-devel] Epson2 TPU and TPU2 and infrared and a patch
Claus Boje
claus at egehuset.dk
Fri Dec 9 22:42:49 UTC 2011
With a little trial and study on what vuescan can I have find some improvement
for the epson2 driver for the epson 4990 (GX-T800) scanner and probably also
the GT-X900 and maybe other new epson scanners, but I don't have any to test
with.
To get the scanner scanning in infrared this patch is necessary.
It is made against the git version of epson2-opt.c from the 12. of December
2011
root at claus4:/disk5/sane2/patch# diff -cB git/epson2-ops.c mysane/epson2-ops.c
*** git/epson2-ops.c 2011-12-09 23:29:28.000000000 +0100
--- mysane/epson2-ops.c 2011-12-09 23:28:40.000000000 +0100
***************
*** 890,895 ****
--- 890,898 ----
if (s->hw->use_extension && s->hw->TPU2)
extensionCtrl = 5;
+ if (s->val[OPT_MODE].w == MODE_INFRARED)
+ extensionCtrl = 3;
+
/* ESC e */
buf[26] = extensionCtrl;
...but there is a problem more.
The scanner (4990) has 2 TPU and TPU2 with a different scansize and the scanner
can only use the TPU (not TPU2) size for infrared scan.
If the TPU2 is used for infrared scan, the image is a black and white image or
a NACK from the scanner with the FS W d[64] command.
The right solution would bee to have 2 transparent units with the --source
argument (flatbed | Transparent unit | Transparent unit 8"x10") witch is what
vuescan has. I have not made any patch for that !!!!!
xsane cannot scan in infrared, it make the scanner crash (need repower to work
again). I have used tiffscan for the tests, but scanimage should do it too
(maybe).
Claus Boje
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20111209/6510f922/attachment.html>
More information about the sane-devel
mailing list