sane-project-website/old-archive/1998-11/0175.html

107 wiersze
4.8 KiB
HTML

<!-- received="Thu Nov 19 20:51:33 1998 PST" -->
<!-- sent="Thu, 19 Nov 1998 23:57:34 -0500 (EST)" -->
<!-- name="Christian Grigis" -->
<!-- email="glove@earthling.net" -->
<!-- subject="Re: Patch for Microtek ScanMaker X6 (microtek2 backend)" -->
<!-- id="" -->
<!-- inreplyto="19981119233131.2879.qmail@aquila.muc.de" -->
<title>sane-devel: Re: Patch for Microtek ScanMaker X6 (microtek2 backend)</title>
<h1>Re: Patch for Microtek ScanMaker X6 (microtek2 backend)</h1>
<b>Christian Grigis</b> (<a href="mailto:glove@earthling.net"><i>glove@earthling.net</i></a>)<br>
<i>Thu, 19 Nov 1998 23:57:34 -0500 (EST)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#175">[ date ]</a><a href="index.html#175">[ thread ]</a><a href="subject.html#175">[ subject ]</a><a href="author.html#175">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0176.html">Sebastian Erdmann: "Re: Patch for Microtek ScanMaker X6 (microtek2 backend)"</a>
<li> <b>Previous message:</b> <a href="0174.html">becka@rz.uni-duesseldorf.de: "Re: forwarded message from Richard Stallman"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Hello,<br>
<p>
On Fri, 20 Nov 1998, Bernd Schroeder wrote:<br>
<p>
<i>&gt; On Thu, Nov 19, 1998 at 03:53:49PM +0100, Sebastian Erdmann wrote:</i><br>
<i>&gt; &gt; </i><br>
<i>&gt; &gt; my Microtek Scanmaker X6 exhibits some strange behavior: After</i><br>
<i>&gt; &gt; switching it on, colors (or greyscale tones) are "washed out" and</i><br>
<i>&gt; &gt; horizontally unbalanced across the image. This occurs when using</i><br>
<i>&gt; &gt; SANE 0.74 as well as SANE pre1.00. A simple workaround is to</i><br>
<i>&gt; &gt; power-cycle the scanner (while keeping the computer running).</i><br>
<i>&gt; </i><br>
<i>&gt; This sounds indeed strange. Normally the scanner should be in reset state </i><br>
<i>&gt; after it is switched on. Or are the colors wrong if the scanner is switched</i><br>
<i>&gt; on before the system is booted (or the SCSI driver is loaded) ? Then</i><br>
<i>&gt; the SCSI driver sends one or more commands to the device, but these</i><br>
<i>&gt; commands should not affect the results of a scan.</i><br>
<p>
I just acquired a ScanMaker X6EL, and I noticed the same strange<br>
behavior: the scanned image is OK after a powercycle, but the following<br>
scans result in "weird" colors. <br>
I have not had time to investigate the problem so far, but here is<br>
some additional info: <br>
<p>
The problem seems to happen for 24-bit Color and 8-bit Gray modes.<br>
36-bit Color and 12-bit Gray never result in a correct image (is that<br>
because Gimp does not interpret those color schemes correctly?), and<br>
LineArt is always correct. <br>
By the way, 36-bit Color and 12-bit Gray modes seem to be handled<br>
differently by scanimage and xscanimage: xscanimage does not complain, but<br>
scanimage gives the following messages, apparently not understanding those<br>
modes: <br>
<p>
scanimage -vvvvvv -l 40 -t 40 -x 80 -y 80 --mode 36 bit Color -d<br>
microtek2:/dev/sg4 &gt; image.pnm<br>
<p>
scanimage: scanning image of size 226x226 pixels at 48 bits/pixel<br>
scanimage: acquiring RGB frame<br>
scanimage: scanimage.c:813: scan_it: Assertion `parm.depth == 8' failed.<br>
Abort<br>
<p>
<i>&gt; scanimage -vvvvvv -l 40 -t 40 -x 80 -y 80 --mode 12 bit Grey -d</i><br>
microtek2:/dev/sg4 &gt; image.pnm<br>
<p>
scanimage: scanning image of size 226x226 pixels at 16 bits/pixel<br>
scanimage: acquiring gray frame<br>
scanimage: scanimage.c:815: scan_it: Assertion `parm.depth == 1 ||<br>
parm.depth == 8' failed.<br>
<p>
<p>
Finally, here is a mini-patch to have the scanner attributes<br>
display correctly the X6EL model name:<br>
<p>
--- microtek2.c.back Thu Nov 19 22:36:26 1998<br>
+++ microtek2.c Thu Nov 19 22:05:53 1998<br>
@@ -2235,6 +2235,7 @@<br>
case 0x92: fprintf(stderr, "E3+ or Vobis Highscan"); break;<br>
case 0x93: fprintf(stderr, "ScanMaker 330"); break;<br>
case 0x97: fprintf(stderr, "ScanMaker 636"); break;<br>
+ case 0x98: fprintf(stderr, "ScanMaker X6EL"); break;<br>
default: fprintf(stderr, "Unknown"); break;<br>
}<br>
fprintf(stderr, ")\n");<br>
<p>
<p>
<p>
Regards,<br>
<p>
-Christian<br>
<p>
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0176.html">Sebastian Erdmann: "Re: Patch for Microtek ScanMaker X6 (microtek2 backend)"</a>
<li> <b>Previous message:</b> <a href="0174.html">becka@rz.uni-duesseldorf.de: "Re: forwarded message from Richard Stallman"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>