Re: Microtek scanner not working anymore

From: Marcel Pol (mpol@gmx.net)
Date: Wed Apr 25 2001 - 14:04:45 PDT

  • Next message: Karl Heinz Kremer: "Re: EPSON 640U"

    On 25-Apr-01 Karsten Festag wrote:
    > 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?
    >
    > --- 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;

    Yes, it is applied.
    Seems that didn't help for me.

    I have a few options I could try.
    1. Use an old kernel, and an older version of Sane, see how that works
    out.
    2. I could Freebsd here, and see if I can get it going then.
    Maybe i can then get wiser about if it is sane or the kernel.

    The stupid thing is, when moving it to another machine it stopped
    working, and moving it back didn't help. So there wasn't a real excuse
    for the scanner to stop working.

    Reading your answer, I assume you don't have an idea how to deal with it
    :-)
    Then I guess I'm gonna have to try some of the options to see if that
    gives anything.

    Greetings,
    Marcel Pol

    > Marcel Pol wrote:
    >> 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.
    >>
    >> 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
    



    This archive was generated by hypermail 2b29 : Wed Apr 25 2001 - 14:04:48 PDT