# [PATCH] Fix re: Mustek Scan Express 12000SP Problems

Daniel Deckers (fh5y076@public.uni-hamburg.de)
Sun, 31 May 1998 22:46:57 +0200 (MET DST)

- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: Thomas S Dorr: "RE: xscanimage and the gimp"
- Previous message: Hugo van der Kooij: "Re: sane & umac-astra 610s"
- Maybe in reply to: Ole Gerden: "Mustek Scan Express 12000SP Problems"

Ole Gerden wrote:

>I have got a Mustek Scanexpress 12000SP and have another problem:
>Scanning in gray- and colourmode only works correct in low resolution or
>if the scanwidth is reduced. In other modes the result contains
>some horizontal stripes in irregular distances. It seems so that the
>imagedata in these stripes is shifted to the left or right. In these
>memory-hungry modes the scanner also sometimes pauses while scanning
>(undependant of strip-height). But I do not know if this normal.

I have been experiencing the same problem with a Mustek MFS-12000SP
(firmware v1.02) and found this was caused by sending the gamma correction
values to the scanner twice. The following patch completely cured this
problem for me (it also removes two superfluous lines of code):

>>>>>>>>
--- sane-0.73/backend/mustek.c Sat May 16 08:23:51 1998
+++ sane-0.73/backend/mustek.c Sun May 31 22:18:00 1998
@@ -2703,18 +2703,11 @@
s->scanning = SANE_TRUE;
- status = send_gamma_table (s);
- if (status != SANE_STATUS_GOOD)
- goto stop_scanner_and_return;
-
status = start_scan (s);
if (status != SANE_STATUS_GOOD)
goto stop_scanner_and_return;
status = send_gamma_table (s);
- if (status != SANE_STATUS_GOOD)
- goto stop_scanner_and_return;
-
if (status != SANE_STATUS_GOOD)
goto stop_scanner_and_return;
>>>>>>>>

NB. The scanner works fine unless "option linedistance-fix" is set; so try
without this option first. Please report back whether this patch works for
your Scanexpress (which firmware version?).

Could people with other Mustek scanners please check if this patch has any
adverse effects for them?

Hope this helps (without triggering new problems :-/),
Dan

    --
    Daniel_Deckers@public.uni-hamburg.de

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

     Next message: Thomas S Dorr: "RE: xscanimage and the gimp"
     Previous message: Hugo van der Kooij: "Re: sane & umac-astra 610s"
     Maybe in reply to: Ole Gerden: "Mustek Scan Express 12000SP Problems"