kopia lustrzana https://gitlab.com/sane-project/website
163 wiersze
6.4 KiB
HTML
163 wiersze
6.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: Epson 1200S: "[epson] ident failed"</TITLE>
|
|
<META NAME="Author" CONTENT="Dave Hill (dave@minnie.demon.co.uk)">
|
|
<META NAME="Subject" CONTENT="Re: Epson 1200S: "[epson] ident failed"">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: Epson 1200S: "[epson] ident failed"</H1>
|
|
<!-- received="Tue Jan 25 10:35:11 2000" -->
|
|
<!-- isoreceived="20000125183511" -->
|
|
<!-- sent="Tue, 25 Jan 2000 18:27:50 +0000" -->
|
|
<!-- isosent="20000125182750" -->
|
|
<!-- name="Dave Hill" -->
|
|
<!-- email="dave@minnie.demon.co.uk" -->
|
|
<!-- subject="Re: Epson 1200S: "[epson] ident failed"" -->
|
|
<!-- id="388DEB26.17569F02@minnie.demon.co.uk" -->
|
|
<!-- inreplyto="20000124210851.C10558@khk.net" -->
|
|
<STRONG>From:</STRONG> Dave Hill (<A HREF="mailto:dave@minnie.demon.co.uk?Subject=Re:%20Epson%201200S:%20"[epson]%20ident%20failed"&In-Reply-To=<388DEB26.17569F02@minnie.demon.co.uk>"><EM>dave@minnie.demon.co.uk</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Tue Jan 25 2000 - 10:27:50 PST
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0231.html">Dave Hill: "Re: Epson 1200S: "[epson] ident failed""</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0229.html">T. Tilton: "Relysis NB9624"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0212.html">Karl Heinz Kremer: "Re: Epson 1200S: "[epson] ident failed""</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0231.html">Dave Hill: "Re: Epson 1200S: "[epson] ident failed""</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0231.html">Dave Hill: "Re: Epson 1200S: "[epson] ident failed""</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0245.html">John Vickers: "Re: Epson 1200S: "[epson] ident failed""</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0248.html">Karl Heinz Kremer: "Re: Epson 1200S: "[epson] ident failed""</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#230">[ date ]</A>
|
|
<A HREF="index.html#230">[ thread ]</A>
|
|
<A HREF="subject.html#230">[ subject ]</A>
|
|
<A HREF="author.html#230">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Karl Heinz Kremer wrote:
|
|
<BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> On Mon, Jan 24, 2000 at 09:43:39AM +0000, John Vickers wrote:
|
|
</EM><BR>
|
|
<EM>> > If I then do:
|
|
</EM><BR>
|
|
<EM>> > /usr/local/bin/scanimage -v --device epson:/dev/scanner -T
|
|
</EM><BR>
|
|
<EM>> > that also PASSes (scanner whirrs, etc), but only the first time I try it.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> ... that's a known problem. You can only do this once and then you have to
|
|
</EM><BR>
|
|
<EM>> reset the scanner. I don't have an idea yet why, but this is on my list
|
|
</EM><BR>
|
|
<EM>> of things to work out. It's no real problem, because it only happens
|
|
</EM><BR>
|
|
<EM>> when you use the -T switch, the "normal" scanning works just fine (at
|
|
</EM><BR>
|
|
<EM>> least for me).
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<P>There are two problems here.
|
|
<BR>
|
|
<P>One is that scanimage -T somehow leaves the scanner in a state
|
|
<BR>
|
|
that it will not respond to the "inquiry" command. I noticed
|
|
<BR>
|
|
this with my GT7000 but everything else worked OK.
|
|
<BR>
|
|
<P>The second problem is the "segmentation fault". You will find
|
|
<BR>
|
|
that this will also happen if your scanner fails to identify
|
|
<BR>
|
|
itself for any reason (including being powered off 8-)).
|
|
<BR>
|
|
<P>The fix for this is as follows. Sorry I haven't downloaded the
|
|
<BR>
|
|
latest snapshot yet, but the attached diff is how I fixed
|
|
<BR>
|
|
Christian's 0.1.3 version.
|
|
<BR>
|
|
<P>The reason for moving the lines is that if the dev_name is
|
|
<BR>
|
|
filled in, the sane main code assumes that the driver init'ed
|
|
<BR>
|
|
OK and all fields are valid. By deferring filling in the name
|
|
<BR>
|
|
until the end, that is the case!!
|
|
<BR>
|
|
<P>Dave Hill
|
|
<BR>
|
|
<P><PRE>
|
|
--
|
|
Dave Hill, Kempston, Bedford UK <A HREF="mailto:dave@minnie.demon.co.uk?Subject=Re:%20Epson%201200S:%20"[epson]%20ident%20failed"&In-Reply-To=<388DEB26.17569F02@minnie.demon.co.uk>">dave@minnie.demon.co.uk</A>
|
|
Sicth munce ago, I cutn't evun spel enjuneer, and now I are one!
|
|
<P>
|
|
</PRE>
|
|
<P>
|
|
--- epson-0.1.3/epson.c Sat Oct 2 09:54:13 1999
|
|
+++ epson.c Tue Jan 25 18:23:09 2000
|
|
@@ -810,9 +810,6 @@
|
|
|
|
DBG (3, "attach: opening %s\n", dev_name);
|
|
|
|
- str = malloc( strlen( dev_name) + 1);
|
|
- dummy_dev.sane.name = strcpy( str, dev_name);
|
|
-
|
|
s->hw->last_res = s->hw->last_res_preview = 0;
|
|
|
|
/*
|
|
@@ -1181,6 +1178,9 @@
|
|
//
|
|
*/
|
|
|
|
+ str = malloc( strlen( dev_name) + 1);
|
|
+ dummy_dev.sane.name = strcpy( str, dev_name);
|
|
+
|
|
myclose( s);
|
|
|
|
return SANE_STATUS_GOOD;
|
|
<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:%20Epson%201200S:%20"[epson]%20ident%20failed"&In-Reply-To=<388DEB26.17569F02@minnie.demon.co.uk>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0231.html">Dave Hill: "Re: Epson 1200S: "[epson] ident failed""</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0229.html">T. Tilton: "Relysis NB9624"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0212.html">Karl Heinz Kremer: "Re: Epson 1200S: "[epson] ident failed""</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0231.html">Dave Hill: "Re: Epson 1200S: "[epson] ident failed""</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0231.html">Dave Hill: "Re: Epson 1200S: "[epson] ident failed""</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0245.html">John Vickers: "Re: Epson 1200S: "[epson] ident failed""</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0248.html">Karl Heinz Kremer: "Re: Epson 1200S: "[epson] ident failed""</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#230">[ date ]</A>
|
|
<A HREF="index.html#230">[ thread ]</A>
|
|
<A HREF="subject.html#230">[ subject ]</A>
|
|
<A HREF="author.html#230">[ 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 25 2000 - 10:36:56 PST</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|