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

140 wiersze
5.4 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 5p Scanner</TITLE>
<META NAME="Author" CONTENT="Justin (justin@swalberg.com)">
<META NAME="Subject" CONTENT="Re: Kernel 2.4.X and HP 5p Scanner">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Kernel 2.4.X and HP 5p Scanner</H1>
<!-- received="Mon Jun 11 07:35:17 2001" -->
<!-- isoreceived="20010611143517" -->
<!-- sent="Mon, 11 Jun 2001 10:42:51 -0400" -->
<!-- isosent="20010611144251" -->
<!-- name="Justin" -->
<!-- email="justin@swalberg.com" -->
<!-- subject="Re: Kernel 2.4.X and HP 5p Scanner" -->
<!-- id="01061110425100.00298@AMD700" -->
<!-- inreplyto="20010611092507.I9946@redhat.com" -->
<STRONG>From:</STRONG> Justin (<A HREF="mailto:justin@swalberg.com?Subject=Re:%20Kernel%202.4.X%20and%20HP%205p%20Scanner&In-Reply-To=&lt;01061110425100.00298@AMD700&gt;"><EM>justin@swalberg.com</EM></A>)<BR>
<STRONG>Date:</STRONG> Mon Jun 11 2001 - 07:42:51 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0178.html">Tim Waugh: "Re: Kernel 2.4.X and HP 5p Scanner"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0176.html">Tim Waugh: "Re: another umax_pp nit-pick"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0172.html">Tim Waugh: "Re: Kernel 2.4.X and HP 5p Scanner"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0178.html">Tim Waugh: "Re: Kernel 2.4.X and HP 5p Scanner"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0178.html">Tim Waugh: "Re: Kernel 2.4.X and HP 5p Scanner"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0208.html">Mark Parrish: "Re: Kernel 2.4.X and HP 5p Scanner"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#177">[ date ]</A>
<A HREF="index.html#177">[ thread ]</A>
<A HREF="subject.html#177">[ subject ]</A>
<A HREF="author.html#177">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
I patched sane-backends-1.0.4/sanei/sanei_scsi.c with this patch:
<BR>
<P>*/
<BR>
--- sane-backends-1.0.4/sanei/sanei_scsi.c.orig Wed Jan 10 01:41:09 2001
<BR>
+++ sane-backends-1.0.4/sanei/sanei_scsi.c Wed Jan 10 01:41:13 2001
<BR>
@@ -1890,7 +1890,7 @@
<BR>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(const void*) req-&gt;sgdata.sg3.hdr.cmdp = cmd;
<BR>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>req-&gt;sgdata.sg3.hdr.sbp = &amp;(req-&gt;sgdata.sg3.sense_buffer[0]);
<BR>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/* 10 seconds should be ok even for slow scanners */
<BR>
- req-&gt;sgdata.sg3.hdr.timeout = 10000;
<BR>
+ req-&gt;sgdata.sg3.hdr.timeout = 10 * 60 * 1000;
<BR>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>req-&gt;sgdata.sg3.hdr.flags = SG_FLAG_DIRECT_IO;
<BR>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>req-&gt;sgdata.sg3.hdr.pack_id = pack_id++;
<BR>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>req-&gt;sgdata.sg3.hdr.usr_ptr = 0;
<BR>
<P>Is that the right patch? It was from this email:
<BR>
<A HREF="http://www.mostang.com/mail-archive/sane-devel/2001-01/0105.html">http://www.mostang.com/mail-archive/sane-devel/2001-01/0105.html</A>
<BR>
<P>It looks like all that patch changed was 10000 to 10 * 60 * 1000. I used
<BR>
that patch, issued make and make install, shut off my scanner and turned it
<BR>
back on again, rebooted linux, and tried it, but the same problem happened.
<BR>
Is there more that I have to do?
<BR>
<P>Justin
<BR>
<P><P>On Monday 11 June 2001 4:25, you wrote:
<BR>
<EM>&gt; On Mon, Jun 11, 2001 at 08:26:02AM +0100, Miroslav BENES wrote:
</EM><BR>
<EM>&gt; &gt; &gt; It worked perfectly with the 2.2 series, but all it does
</EM><BR>
<EM>&gt; &gt; &gt; is attempts to scan (starts making noises) and return an error code
</EM><BR>
<EM>&gt; &gt; &gt; with the 2.4 kernels.
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; It works with RedHat 7.1 with 2.4.2-5 kernel.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; (2.4.2-2.) Actually it's the Red Hat Linux 7.1 sane package that it
</EM><BR>
<EM>&gt; works with, since we picked up a CVS patch that fixes a kernel
</EM><BR>
<EM>&gt; incompatibility bug in SANE. Take a look at the archives of this list
</EM><BR>
<EM>&gt; for the patch.
</EM><BR>
<P><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%205p%20Scanner&In-Reply-To=&lt;01061110425100.00298@AMD700&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0178.html">Tim Waugh: "Re: Kernel 2.4.X and HP 5p Scanner"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0176.html">Tim Waugh: "Re: another umax_pp nit-pick"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0172.html">Tim Waugh: "Re: Kernel 2.4.X and HP 5p Scanner"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0178.html">Tim Waugh: "Re: Kernel 2.4.X and HP 5p Scanner"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0178.html">Tim Waugh: "Re: Kernel 2.4.X and HP 5p Scanner"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0208.html">Mark Parrish: "Re: Kernel 2.4.X and HP 5p Scanner"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#177">[ date ]</A>
<A HREF="index.html#177">[ thread ]</A>
<A HREF="subject.html#177">[ subject ]</A>
<A HREF="author.html#177">[ 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>Mon Jun 11 2001 - 07:38:07 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>