sane-project-website/old-archive/2001-06/0252.html

154 wiersze
5.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: Kernel 2.4.X and HP Scanjet 6300C</TITLE>
<META NAME="Author" CONTENT="Douglas Gilbert (dgilbert@interlog.com)">
<META NAME="Subject" CONTENT="Re: Kernel 2.4.X and HP Scanjet 6300C">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Kernel 2.4.X and HP Scanjet 6300C</H1>
<!-- received="Sat Jun 23 21:28:59 2001" -->
<!-- isoreceived="20010624042859" -->
<!-- sent="Sun, 24 Jun 2001 00:28:19 -0400" -->
<!-- isosent="20010624042819" -->
<!-- name="Douglas Gilbert" -->
<!-- email="dgilbert@interlog.com" -->
<!-- subject="Re: Kernel 2.4.X and HP Scanjet 6300C" -->
<!-- id="3B356C63.CE181699@interlog.com" -->
<!-- inreplyto="01062116054400.04398@msp" -->
<STRONG>From:</STRONG> Douglas Gilbert (<A HREF="mailto:dgilbert@interlog.com?Subject=Re:%20Kernel%202.4.X%20and%20HP%20Scanjet%206300C&In-Reply-To=&lt;3B356C63.CE181699@interlog.com&gt;"><EM>dgilbert@interlog.com</EM></A>)<BR>
<STRONG>Date:</STRONG> Sat Jun 23 2001 - 21:28:19 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0253.html">DStevenson: "Re: Sane-Mandrake scsi timeout"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0251.html">Henning Meier-Geinitz: "Re: Is my Artec AT12 broken?"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0247.html">Mark Parrish: "Re: Kernel 2.4.X and HP Scanjet 6300C"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#252">[ date ]</A>
<A HREF="index.html#252">[ thread ]</A>
<A HREF="subject.html#252">[ subject ]</A>
<A HREF="author.html#252">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Mark Parrish wrote:
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Hi Tim,
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I applied the patch as directed in the mail message to:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; sane-backends-1.0.4/sanei/sanei_scsi.c
</EM><BR>
<EM>&gt; - req-&gt;sgdata.sg3.hdr.timeout = 10000;
</EM><BR>
<EM>&gt; + req-&gt;sgdata.sg3.hdr.timeout = 10 * 60 * 1000;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I did a make and make install. I shut off my scanner and turned it back on
</EM><BR>
<EM>&gt; again. I rebooted linux and tried it but the same problem happened.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; The scanner starts to make a pass, the light moves about quarter inch and
</EM><BR>
<EM>&gt; then chokes with the message &quot;Error during read. Error during device I/O&quot;.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Is there something I am missing in my procedure?
</EM><BR>
<P>Mark,
<BR>
Perhaps you could check that you are running the version
<BR>
that was recently rebuild. You can use &quot;which&quot; to find
<BR>
the location of an executable like scanimage then use
<BR>
&quot;ls -l&quot; to check it's timestamp.
<BR>
<P>There is also this patch fragment on the same file
<BR>
that should be applied:
<BR>
<P>@@ -2022,7 +2022,7 @@
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* check for errors, but let the sense_handler decide.... */
<BR>
- if ( (req-&gt;sgdata.sg3.hdr.info &amp;&amp; SG_INFO_CHECK != 0)
<BR>
+ if ( (req-&gt;sgdata.sg3.hdr.info &amp; SG_INFO_CHECK != 0)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|| (req-&gt;sgdata.sg3.hdr.sb_len_wr &gt; 0 &amp;&amp;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;((req-&gt;sgdata.sg3.sense_buffer[0] &amp; 0x7f) != 0)))
<BR>
<P>If the problem persists, you could turn on SANE's debug
<BR>
by setting the environment variables:
<BR>
&nbsp;&nbsp;export SANE_DEBUG_SANEI_SCSI=127
<BR>
&nbsp;&nbsp;export SANE_DEBUG_&lt;BACKEND_NAME&gt;=127
<BR>
<P>and you could send the output to me. Also if you know
<BR>
how to build a linux kernel module then you could try
<BR>
a new sg driver (version 3.1.19) found at:
<BR>
&nbsp;&nbsp;<A HREF="http://www.torque.net/sg">http://www.torque.net/sg</A>
<BR>
and tell me if that makes any difference.
<BR>
<P>Doug Gilbert
<BR>
<P><PRE>
--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20Kernel%202.4.X%20and%20HP%20Scanjet%206300C&In-Reply-To=&lt;3B356C63.CE181699@interlog.com&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0253.html">DStevenson: "Re: Sane-Mandrake scsi timeout"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0251.html">Henning Meier-Geinitz: "Re: Is my Artec AT12 broken?"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0247.html">Mark Parrish: "Re: Kernel 2.4.X and HP Scanjet 6300C"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#252">[ date ]</A>
<A HREF="index.html#252">[ thread ]</A>
<A HREF="subject.html#252">[ subject ]</A>
<A HREF="author.html#252">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Sat Jun 23 2001 - 21:30:35 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>