Re: Microtek scanner not working anymore

From: Karsten Festag (karsten.festag@t-online.de)
Date: Wed Apr 25 2001 - 13:45:15 PDT

  • Next message: Oliver Rauch: "xsane-0.76 released"

    I don't know if it's related, but I a few days ago I read here about
    timeout problems whith SANE-1.0.4. Did you try to apply this patch?

    Karsten

    ---snip---
    > ** SANE's newer sg interface shortens the per command timeout
    > from 10 minutes to 10 seconds. Most other OSes have a timeout
    > value of 1 minute or more. I suspect 10 seconds may be too short.

    Using this patch the problem really did go away.

    Tim.
    */

    --- sane-backends-1.0.4/sanei/sanei_scsi.c.orig Wed Jan 10 01:41:09 2001
    +++ sane-backends-1.0.4/sanei/sanei_scsi.c Wed Jan 10 01:41:13 2001
    @@ -1890,7 +1890,7 @@
           (const void*) req->sgdata.sg3.hdr.cmdp = cmd;
           req->sgdata.sg3.hdr.sbp = &(req->sgdata.sg3.sense_buffer[0]);
           /* 10 seconds should be ok even for slow scanners */
    - req->sgdata.sg3.hdr.timeout = 10000;
    + req->sgdata.sg3.hdr.timeout = 10 * 60 * 1000;
           req->sgdata.sg3.hdr.flags = SG_FLAG_DIRECT_IO;
           req->sgdata.sg3.hdr.pack_id = pack_id++;
           req->sgdata.sg3.hdr.usr_ptr = 0;

    Marcel Pol wrote:
    >
    > Hello,
    >
    > I'm using a Microtek scanner with Sane, but for some time now it's not
    > working.
    > The change happened when I attached the (working) scanner to another
    > computer. There it didn't work, and when I put it back it still doesn't
    > work.
    > The kernel recognizes it (cdrecord -scanbus).
    > 1,6,0 106) ' ' 'Scanner 600A4 ' '2.21' Scanner
    >
    > When I turn on debugging for the Microtek2 backend it spits out the right
    > messages.
    > After that, the scanner just hangs.
    > Well, it sounds like it tries to scan, while it seems in desperate need
    > of a few drops of oil.
    > When I Ctrl-C sane, and check the scanner with cdrecord -scanbus, I get
    > this back:
    > 1,6,0 106) '' '' '' NON CCS Disk
    > When I turn it off and on, I get the original kernel message, but further
    > there's no change.
    >
    > Some time ago, with maybe a 2.4.0 linux kernel (now 2.4.3) it quit after
    > some time, while saying "device busy".
    > If I turned of the scanner while it was hanging I did get the same error.
    >
    > I'm using a Microtek2 scanner with a BusLogic BT930 scsi card.
    > I'm using Sane 1.0.4 with linux 2.4.3
    > I installed Windows, and it functions there without a problem.
    >
    > I suspect the backend of Sane, or the BusLogic driver.
    > I heard some people about data corruption on a BusLogic scsi card, but I
    > wouldn't know if that relates to my problem.
    >
    > I hope this is enough information provided, and that there is a fix for
    > this.
    >
    > Greetings,
    > --
    > Marcel Pol
    > mpol@gmx.net
    >
    > Debug Messages:
    > export SANE_DEBUG_MICROTEK2=128
    > xsane
    .....
    > [microtek2] scsi_wait_for_image: ms=0x81283c0
    > [microtek2] scsi_read_image_status: ms=0x81283c0
    >
    > And here it hangs.
    >
    > --
    > Source code, list archive, and docs: http://www.mostang.com/sane/
    > To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

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



    This archive was generated by hypermail 2b29 : Wed Apr 25 2001 - 13:43:06 PDT