Re: Patch for Microtek ScanMaker X6 (microtek2 backend)

Christian Grigis (glove@earthling.net)
Thu, 19 Nov 1998 23:57:34 -0500 (EST)

Hello,

On Fri, 20 Nov 1998, Bernd Schroeder wrote:

> On Thu, Nov 19, 1998 at 03:53:49PM +0100, Sebastian Erdmann wrote:
> >
> > my Microtek Scanmaker X6 exhibits some strange behavior: After
> > switching it on, colors (or greyscale tones) are "washed out" and
> > horizontally unbalanced across the image. This occurs when using
> > SANE 0.74 as well as SANE pre1.00. A simple workaround is to
> > power-cycle the scanner (while keeping the computer running).
>
> This sounds indeed strange. Normally the scanner should be in reset state
> after it is switched on. Or are the colors wrong if the scanner is switched
> on before the system is booted (or the SCSI driver is loaded) ? Then
> the SCSI driver sends one or more commands to the device, but these
> commands should not affect the results of a scan.

I just acquired a ScanMaker X6EL, and I noticed the same strange
behavior: the scanned image is OK after a powercycle, but the following
scans result in "weird" colors.
I have not had time to investigate the problem so far, but here is
some additional info:

The problem seems to happen for 24-bit Color and 8-bit Gray modes.
36-bit Color and 12-bit Gray never result in a correct image (is that
because Gimp does not interpret those color schemes correctly?), and
LineArt is always correct.
By the way, 36-bit Color and 12-bit Gray modes seem to be handled
differently by scanimage and xscanimage: xscanimage does not complain, but
scanimage gives the following messages, apparently not understanding those
modes:

scanimage -vvvvvv -l 40 -t 40 -x 80 -y 80 --mode 36 bit Color -d
microtek2:/dev/sg4 > image.pnm

scanimage: scanning image of size 226x226 pixels at 48 bits/pixel
scanimage: acquiring RGB frame
scanimage: scanimage.c:813: scan_it: Assertion `parm.depth == 8' failed.
Abort

> scanimage -vvvvvv -l 40 -t 40 -x 80 -y 80 --mode 12 bit Grey -d
microtek2:/dev/sg4 > image.pnm

scanimage: scanning image of size 226x226 pixels at 16 bits/pixel
scanimage: acquiring gray frame
scanimage: scanimage.c:815: scan_it: Assertion `parm.depth == 1 ||
parm.depth == 8' failed.

Finally, here is a mini-patch to have the scanner attributes
display correctly the X6EL model name:

--- microtek2.c.back Thu Nov 19 22:36:26 1998
+++ microtek2.c Thu Nov 19 22:05:53 1998
@@ -2235,6 +2235,7 @@
case 0x92: fprintf(stderr, "E3+ or Vobis Highscan"); break;
case 0x93: fprintf(stderr, "ScanMaker 330"); break;
case 0x97: fprintf(stderr, "ScanMaker 636"); break;
+ case 0x98: fprintf(stderr, "ScanMaker X6EL"); break;
default: fprintf(stderr, "Unknown"); break;
}
fprintf(stderr, ")\n");

Regards,

-Christian

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com