sane-project-website/old-archive/1999-02/0066.html

88 wiersze
4.0 KiB
HTML
Czysty Wina Historia

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!-- received="Sat Feb 13 07:37:55 1999 PST" -->
<!-- sent="Sat, 13 Feb 1999 15:39:43 +0000" -->
<!-- name="John Richardson" -->
<!-- email="jrichard@zealand.mv.com" -->
<!-- subject="Re: Microtek x6el problems" -->
<!-- id="" -->
<!-- inreplyto="Microtek x6el problems" -->
<title>sane-devel: Re: Microtek x6el problems</title>
<h1>Re: Microtek x6el problems</h1>
<b>John Richardson</b> (<a href="mailto:jrichard@zealand.mv.com"><i>jrichard@zealand.mv.com</i></a>)<br>
<i>Sat, 13 Feb 1999 15:39:43 +0000</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#66">[ date ]</a><a href="index.html#66">[ thread ]</a><a href="subject.html#66">[ subject ]</a><a href="author.html#66">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0067.html">Joachim Kunze: "Re: Linux 2.0 with Mustek ScanExpress 12000 SP"</a>
<li> <b>Previous message:</b> <a href="0065.html">Peter Kirchgessner: "Re: A Question about the HP 5p"</a>
<li> <b>Maybe in reply to:</b> <a href="0059.html">John Richardson: "Microtek x6el problems"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
<i>&gt; &gt; I have a Microtek x6el scanner. When I scan with xscanimage</i><br>
<i>&gt; &gt; the first scan (or preview) comes up OK. All later scans look</i><br>
<i>&gt; &gt; dirty with strange colors. If I change to a greyscale scan and attempt</i><br>
<i>&gt;</i><br>
<i>&gt; This is a weird problem. If you are willing to figure it out,</i><br>
<i>&gt; look into the function do_dummy_scan() in microtek2.c. This function must</i><br>
<i>&gt; be executed in order to get all scans correctly executed. Maybe, that your</i><br>
<i>&gt; scanner has a firmware version, that is not caught by this function.</i><br>
<p>
It looks like you got it exactly right. I noticed when xscanimage starts<br>
it outputs a firmware of 1.20. I added this in do_dummy_scan and it looks<br>
like it works perfectly! Thanks!<br>
<p>
[Actually, it looks like do_dummy_scan returns SANE_STATUS_GOOD if<br>
it doesn't know about the scanner, I'm kinda curious why it doesn't at least<br>
return something to indicate that something is wrong. Is that an idea for<br>
a future improvement?]<br>
<p>
Here's the patch, which includes the x6el patch posted by Christian Grigis<br>
on 30-Nov-1998.<br>
<p>
----------------------------------------------------------<br>
--- microtek2.c.old Wed Nov 4 23:28:28 1998<br>
+++ microtek2.c Sat Feb 13 10:22:00 1999<br>
@@ -1984,12 +1984,15 @@<br>
Microtek2_Info *mi;<br>
SANE_Status status;<br>
<p>
<p>
md = ms-&gt;dev;<br>
mi = &amp;md-&gt;info[md-&gt;scan_source];<br>
if ( ! ( md-&gt;info[MD_SOURCE_FLATBED].model_code == 0x97<br>
- &amp;&amp; md-&gt;revision == 1.00 )<br>
- &amp;&amp; ! ( md-&gt;info[MD_SOURCE_FLATBED].model_code == 0x91<br>
- &amp;&amp; md-&gt;revision == 1.00 ) )<br>
+ &amp;&amp; md-&gt;revision == 1.00 )<br>
+ &amp;&amp; ! ( md-&gt;info[MD_SOURCE_FLATBED].model_code == 0x91<br>
+ &amp;&amp; md-&gt;revision == 1.00 )<br>
+ &amp;&amp; !(md-&gt;info[MD_SOURCE_FLATBED].model_code == 0x98<br>
+ &amp;&amp; (md-&gt;revision == 1.30 || md-&gt;revision == 1.20)))<br>
return SANE_STATUS_GOOD;<br>
<p>
DBG(30, "do_dummy_scan: ms=%p\n", ms);<br>
----------------------------------------------------------<br>
<p>
<p>
John<br>
<p>
<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="0067.html">Joachim Kunze: "Re: Linux 2.0 with Mustek ScanExpress 12000 SP"</a>
<li> <b>Previous message:</b> <a href="0065.html">Peter Kirchgessner: "Re: A Question about the HP 5p"</a>
<li> <b>Maybe in reply to:</b> <a href="0059.html">John Richardson: "Microtek x6el problems"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>