sane-project-website/old-archive/2001-04/0267.html

224 wiersze
7.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: Microtek scanner not working anymore</TITLE>
<META NAME="Author" CONTENT="Marcel Pol (mpol@gmx.net)">
<META NAME="Subject" CONTENT="Re: Microtek scanner not working anymore">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Microtek scanner not working anymore</H1>
<!-- received="Wed Apr 25 14:02:04 2001" -->
<!-- isoreceived="20010425210204" -->
<!-- sent="Wed, 25 Apr 2001 23:04:45 +0200 (CEST)" -->
<!-- isosent="20010425210445" -->
<!-- name="Marcel Pol" -->
<!-- email="mpol@gmx.net" -->
<!-- subject="Re: Microtek scanner not working anymore" -->
<!-- id="XFMail.010425230445.mpol@gmx.net" -->
<!-- inreplyto="3AE7375B.5132E2C1@t-online.de" -->
<STRONG>From:</STRONG> Marcel Pol (<A HREF="mailto:mpol@gmx.net?Subject=Re:%20Microtek%20scanner%20not%20working%20anymore&In-Reply-To=&lt;XFMail.010425230445.mpol@gmx.net&gt;"><EM>mpol@gmx.net</EM></A>)<BR>
<STRONG>Date:</STRONG> Wed Apr 25 2001 - 14:04:45 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0268.html">Karl Heinz Kremer: "Re: EPSON 640U"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0266.html">Oliver Rauch: "xsane-0.76 released"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0265.html">Karsten Festag: "Re: Microtek scanner not working anymore"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0271.html">karsten.festag@t-online.de: "Re: Microtek scanner not working anymore"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#267">[ date ]</A>
<A HREF="index.html#267">[ thread ]</A>
<A HREF="subject.html#267">[ subject ]</A>
<A HREF="author.html#267">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
On 25-Apr-01 Karsten Festag wrote:
<BR>
<EM>&gt; I don't know if it's related, but I a few days ago I read here about
</EM><BR>
<EM>&gt; timeout problems whith SANE-1.0.4. Did you try to apply this patch?
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; --- sane-backends-1.0.4/sanei/sanei_scsi.c.orig Wed Jan 10 01:41:09
</EM><BR>
<EM>&gt; 2001
</EM><BR>
<EM>&gt; +++ sane-backends-1.0.4/sanei/sanei_scsi.c Wed Jan 10 01:41:13 2001
</EM><BR>
<EM>&gt; @@ -1890,7 +1890,7 @@
</EM><BR>
<EM>&gt; (const void*) req-&gt;sgdata.sg3.hdr.cmdp = cmd;
</EM><BR>
<EM>&gt; req-&gt;sgdata.sg3.hdr.sbp = &amp;(req-&gt;sgdata.sg3.sense_buffer[0]);
</EM><BR>
<EM>&gt; /* 10 seconds should be ok even for slow scanners */
</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; req-&gt;sgdata.sg3.hdr.flags = SG_FLAG_DIRECT_IO;
</EM><BR>
<EM>&gt; req-&gt;sgdata.sg3.hdr.pack_id = pack_id++;
</EM><BR>
<EM>&gt; req-&gt;sgdata.sg3.hdr.usr_ptr = 0;
</EM><BR>
<P>Yes, it is applied.
<BR>
Seems that didn't help for me.
<BR>
<P>I have a few options I could try.
<BR>
1. Use an old kernel, and an older version of Sane, see how that works
<BR>
out.
<BR>
2. I could Freebsd here, and see if I can get it going then.
<BR>
Maybe i can then get wiser about if it is sane or the kernel.
<BR>
<P>The stupid thing is, when moving it to another machine it stopped
<BR>
working, and moving it back didn't help. So there wasn't a real excuse
<BR>
for the scanner to stop working.
<BR>
<P>Reading your answer, I assume you don't have an idea how to deal with it
<BR>
:-)
<BR>
Then I guess I'm gonna have to try some of the options to see if that
<BR>
gives anything.
<BR>
<P>Greetings,
<BR>
Marcel Pol
<BR>
<P><P><EM>&gt; Marcel Pol wrote:
</EM><BR>
<EM>&gt;&gt; I'm using a Microtek scanner with Sane, but for some time now it's not
</EM><BR>
<EM>&gt;&gt; working.
</EM><BR>
<EM>&gt;&gt; The change happened when I attached the (working) scanner to another
</EM><BR>
<EM>&gt;&gt; computer. There it didn't work, and when I put it back it still
</EM><BR>
<EM>&gt;&gt; doesn't work.
</EM><BR>
<EM>&gt;&gt; The kernel recognizes it (cdrecord -scanbus).
</EM><BR>
<EM>&gt;&gt; 1,6,0 106) ' ' 'Scanner 600A4 ' '2.21' Scanner
</EM><BR>
<EM>&gt;&gt;
</EM><BR>
<EM>&gt;&gt; When I turn on debugging for the Microtek2 backend it spits out the
</EM><BR>
<EM>&gt;&gt; right messages.
</EM><BR>
<EM>&gt;&gt; After that, the scanner just hangs.
</EM><BR>
<EM>&gt;&gt; Well, it sounds like it tries to scan, while it seems in desperate
</EM><BR>
<EM>&gt;&gt; need of a few drops of oil.
</EM><BR>
<EM>&gt;&gt; When I Ctrl-C sane, and check the scanner with cdrecord -scanbus, I
</EM><BR>
<EM>&gt;&gt; get this back:
</EM><BR>
<EM>&gt;&gt; 1,6,0 106) '' '' '' NON CCS Disk
</EM><BR>
<EM>&gt;&gt; When I turn it off and on, I get the original kernel message, but
</EM><BR>
<EM>&gt;&gt; further there's no change.
</EM><BR>
<EM>&gt;&gt;
</EM><BR>
<EM>&gt;&gt; Some time ago, with maybe a 2.4.0 linux kernel (now 2.4.3) it quit
</EM><BR>
<EM>&gt;&gt; after some time, while saying &quot;device busy&quot;.
</EM><BR>
<EM>&gt;&gt; If I turned of the scanner while it was hanging I did get the same
</EM><BR>
<EM>&gt;&gt; error.
</EM><BR>
<EM>&gt;&gt;
</EM><BR>
<EM>&gt;&gt; I'm using a Microtek2 scanner with a BusLogic BT930 scsi card.
</EM><BR>
<EM>&gt;&gt; I'm using Sane 1.0.4 with linux 2.4.3
</EM><BR>
<EM>&gt;&gt; I installed Windows, and it functions there without a problem.
</EM><BR>
<EM>&gt;&gt;
</EM><BR>
<EM>&gt;&gt; I suspect the backend of Sane, or the BusLogic driver.
</EM><BR>
<EM>&gt;&gt; I heard some people about data corruption on a BusLogic scsi card, but
</EM><BR>
<EM>&gt;&gt; I wouldn't know if that relates to my problem.
</EM><BR>
<EM>&gt;&gt;
</EM><BR>
<EM>&gt;&gt; I hope this is enough information provided, and that there is a fix
</EM><BR>
<EM>&gt;&gt; for this.
</EM><BR>
<EM>&gt;&gt;
</EM><BR>
<EM>&gt;&gt; Debug Messages:
</EM><BR>
<EM>&gt;&gt; export SANE_DEBUG_MICROTEK2=128
</EM><BR>
<EM>&gt;&gt; xsane
</EM><BR>
<EM>&gt; .....
</EM><BR>
<EM>&gt;&gt; [microtek2] scsi_wait_for_image: ms=0x81283c0
</EM><BR>
<EM>&gt;&gt; [microtek2] scsi_read_image_status: ms=0x81283c0
</EM><BR>
<EM>&gt;&gt;
</EM><BR>
<EM>&gt;&gt; And here it hangs.
</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:%20Microtek%20scanner%20not%20working%20anymore&In-Reply-To=&lt;XFMail.010425230445.mpol@gmx.net&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0268.html">Karl Heinz Kremer: "Re: EPSON 640U"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0266.html">Oliver Rauch: "xsane-0.76 released"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0265.html">Karsten Festag: "Re: Microtek scanner not working anymore"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0271.html">karsten.festag@t-online.de: "Re: Microtek scanner not working anymore"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#267">[ date ]</A>
<A HREF="index.html#267">[ thread ]</A>
<A HREF="subject.html#267">[ subject ]</A>
<A HREF="author.html#267">[ 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>Wed Apr 25 2001 - 14:04:48 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>