kopia lustrzana https://gitlab.com/sane-project/website
122 wiersze
4.8 KiB
HTML
122 wiersze
4.8 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: SANE and Linux kernel 2.4.0</TITLE>
|
|
<META NAME="Author" CONTENT="Tim Waugh (twaugh@redhat.com)">
|
|
<META NAME="Subject" CONTENT="Re: SANE and Linux kernel 2.4.0">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: SANE and Linux kernel 2.4.0</H1>
|
|
<!-- received="Tue Jan 9 17:25:55 2001" -->
|
|
<!-- isoreceived="20010110012555" -->
|
|
<!-- sent="Wed, 10 Jan 2001 01:49:16 +0000" -->
|
|
<!-- isosent="20010110014916" -->
|
|
<!-- name="Tim Waugh" -->
|
|
<!-- email="twaugh@redhat.com" -->
|
|
<!-- subject="Re: SANE and Linux kernel 2.4.0" -->
|
|
<!-- id="20010110014916.E1582@redhat.com" -->
|
|
<!-- inreplyto="3A5B7CA8.A01A21E8@interlog.com" -->
|
|
<STRONG>From:</STRONG> Tim Waugh (<A HREF="mailto:twaugh@redhat.com?Subject=Re:%20SANE%20and%20Linux%20kernel%202.4.0&In-Reply-To=<20010110014916.E1582@redhat.com>"><EM>twaugh@redhat.com</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Tue Jan 09 2001 - 17:49:16 PST
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0106.html">Andrew Williams: "Re: help - hp 5300c"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0104.html">edrusb@free.fr: "snapscan, problem in color mode : horizontal shift"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0103.html">Douglas Gilbert: "SANE and Linux kernel 2.4.0"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0117.html">abel deuring: "Re: SANE and Linux kernel 2.4.0"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#105">[ date ]</A>
|
|
<A HREF="index.html#105">[ thread ]</A>
|
|
<A HREF="subject.html#105">[ subject ]</A>
|
|
<A HREF="author.html#105">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
On Tue, Jan 09, 2001 at 04:03:36PM -0500, Douglas Gilbert wrote:
|
|
<BR>
|
|
<P><EM>> by timeouts ** resulting in scsi bus resets. Anyway the problem
|
|
</EM><BR>
|
|
<EM>> seems to disappear with the recently released SANE 1.0.4 .
|
|
</EM><BR>
|
|
<EM>> [The original report was based on SANE 1.0.3 and earlier.]
|
|
</EM><BR>
|
|
<P>In fact I was wrong when I said this. :-(
|
|
<BR>
|
|
<P><EM>> ** SANE's newer sg interface shortens the per command timeout
|
|
</EM><BR>
|
|
<EM>> from 10 minutes to 10 seconds. Most other OSes have a timeout
|
|
</EM><BR>
|
|
<EM>> value of 1 minute or more. I suspect 10 seconds may be too short.
|
|
</EM><BR>
|
|
<P>Using this patch the problem really did go away.
|
|
<BR>
|
|
<P>Tim.
|
|
<BR>
|
|
*/
|
|
<BR>
|
|
<P>--- 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>
|
|
(const void*) req->sgdata.sg3.hdr.cmdp = cmd;
|
|
<BR>
|
|
req->sgdata.sg3.hdr.sbp = &(req->sgdata.sg3.sense_buffer[0]);
|
|
<BR>
|
|
/* 10 seconds should be ok even for slow scanners */
|
|
<BR>
|
|
- req->sgdata.sg3.hdr.timeout = 10000;
|
|
<BR>
|
|
+ req->sgdata.sg3.hdr.timeout = 10 * 60 * 1000;
|
|
<BR>
|
|
req->sgdata.sg3.hdr.flags = SG_FLAG_DIRECT_IO;
|
|
<BR>
|
|
req->sgdata.sg3.hdr.pack_id = pack_id++;
|
|
<BR>
|
|
req->sgdata.sg3.hdr.usr_ptr = 0;
|
|
<BR>
|
|
<P>
|
|
<BR><HR NOSHADE>
|
|
<UL>
|
|
<LI>application/pgp-signature attachment: <A HREF="att-0105/01-part">stored</A>
|
|
</UL>
|
|
<!-- attachment="01-part" -->
|
|
<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:%20SANE%20and%20Linux%20kernel%202.4.0&In-Reply-To=<20010110014916.E1582@redhat.com>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0106.html">Andrew Williams: "Re: help - hp 5300c"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0104.html">edrusb@free.fr: "snapscan, problem in color mode : horizontal shift"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0103.html">Douglas Gilbert: "SANE and Linux kernel 2.4.0"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0117.html">abel deuring: "Re: SANE and Linux kernel 2.4.0"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#105">[ date ]</A>
|
|
<A HREF="index.html#105">[ thread ]</A>
|
|
<A HREF="subject.html#105">[ subject ]</A>
|
|
<A HREF="author.html#105">[ 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>Tue Jan 09 2001 - 17:27:27 PST</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|