Re: Microtek x6el problems

John Richardson (jrichard@zealand.mv.com)
Sat, 13 Feb 1999 15:39:43 +0000

> > I have a Microtek x6el scanner. When I scan with xscanimage
> > the first scan (or preview) comes up OK. All later scans look
> > dirty with strange colors. If I change to a greyscale scan and attempt
>
> This is a weird problem. If you are willing to figure it out,
> look into the function do_dummy_scan() in microtek2.c. This function must
> be executed in order to get all scans correctly executed. Maybe, that your
> scanner has a firmware version, that is not caught by this function.

It looks like you got it exactly right. I noticed when xscanimage starts
it outputs a firmware of 1.20. I added this in do_dummy_scan and it looks
like it works perfectly! Thanks!

[Actually, it looks like do_dummy_scan returns SANE_STATUS_GOOD if
it doesn't know about the scanner, I'm kinda curious why it doesn't at least
return something to indicate that something is wrong. Is that an idea for
a future improvement?]

Here's the patch, which includes the x6el patch posted by Christian Grigis
on 30-Nov-1998.

----------------------------------------------------------
--- microtek2.c.old Wed Nov 4 23:28:28 1998
+++ microtek2.c Sat Feb 13 10:22:00 1999
@@ -1984,12 +1984,15 @@
Microtek2_Info *mi;
SANE_Status status;

md = ms->dev;
mi = &md->info[md->scan_source];
if ( ! ( md->info[MD_SOURCE_FLATBED].model_code == 0x97
- && md->revision == 1.00 )
- && ! ( md->info[MD_SOURCE_FLATBED].model_code == 0x91
- && md->revision == 1.00 ) )
+ && md->revision == 1.00 )
+ && ! ( md->info[MD_SOURCE_FLATBED].model_code == 0x91
+ && md->revision == 1.00 )
+ && !(md->info[MD_SOURCE_FLATBED].model_code == 0x98
+ && (md->revision == 1.30 || md->revision == 1.20)))
return SANE_STATUS_GOOD;

DBG(30, "do_dummy_scan: ms=%p\n", ms);
----------------------------------------------------------

John

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