Re: Kernel 2.4.X and HP Scanjet 6300C

From: Douglas Gilbert (dgilbert@interlog.com)
Date: Sat Jun 23 2001 - 21:28:19 PDT

  • Next message: DStevenson: "Re: Sane-Mandrake scsi timeout"

    Mark Parrish wrote:
    >
    > Hi Tim,
    >
    > I applied the patch as directed in the mail message to:
    >
    > sane-backends-1.0.4/sanei/sanei_scsi.c
    > - req->sgdata.sg3.hdr.timeout = 10000;
    > + req->sgdata.sg3.hdr.timeout = 10 * 60 * 1000;
    >
    > I did a make and make install. I shut off my scanner and turned it back on
    > again. I rebooted linux and tried it but the same problem happened.
    >
    > The scanner starts to make a pass, the light moves about quarter inch and
    > then chokes with the message "Error during read. Error during device I/O".
    >
    > Is there something I am missing in my procedure?

    Mark,
    Perhaps you could check that you are running the version
    that was recently rebuild. You can use "which" to find
    the location of an executable like scanimage then use
    "ls -l" to check it's timestamp.

    There is also this patch fragment on the same file
    that should be applied:

    @@ -2022,7 +2022,7 @@
               else
                 {
                  /* check for errors, but let the sense_handler decide.... */
    - if ( (req->sgdata.sg3.hdr.info && SG_INFO_CHECK != 0)
    + if ( (req->sgdata.sg3.hdr.info & SG_INFO_CHECK != 0)
                      || (req->sgdata.sg3.hdr.sb_len_wr > 0 &&
                      ((req->sgdata.sg3.sense_buffer[0] & 0x7f) != 0)))

    If the problem persists, you could turn on SANE's debug
    by setting the environment variables:
      export SANE_DEBUG_SANEI_SCSI=127
      export SANE_DEBUG_<BACKEND_NAME>=127

    and you could send the output to me. Also if you know
    how to build a linux kernel module then you could try
    a new sg driver (version 3.1.19) found at:
      http://www.torque.net/sg
    and tell me if that makes any difference.

    Doug Gilbert

    --
    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 : Sat Jun 23 2001 - 21:30:35 PDT