sane-project-website/old-archive/2001-02/0215.html

278 wiersze
8.6 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: HP 5100C and SANE</TITLE>
<META NAME="Author" CONTENT="Peter Kirchgessner (peter@kirchgessner.net)">
<META NAME="Subject" CONTENT="Re: HP 5100C and SANE">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: HP 5100C and SANE</H1>
<!-- received="Sun Feb 25 07:55:19 2001" -->
<!-- isoreceived="20010225155519" -->
<!-- sent="Sun, 25 Feb 2001 17:07:20 +0100" -->
<!-- isosent="20010225160720" -->
<!-- name="Peter Kirchgessner" -->
<!-- email="peter@kirchgessner.net" -->
<!-- subject="Re: HP 5100C and SANE" -->
<!-- id="3A992DB8.1BB8236E@kirchgessner.net" -->
<!-- inreplyto="200102250205.VAA02656@orion.dns-host.com" -->
<STRONG>From:</STRONG> Peter Kirchgessner (<A HREF="mailto:peter@kirchgessner.net?Subject=Re:%20HP%205100C%20and%20SANE&In-Reply-To=&lt;3A992DB8.1BB8236E@kirchgessner.net&gt;"><EM>peter@kirchgessner.net</EM></A>)<BR>
<STRONG>Date:</STRONG> Sun Feb 25 2001 - 08:07:20 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0216.html">Uwe Wagner: "Re: snapscan, problem in color mode : horizontal shift"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0214.html">abel deuring: "Re: always Segmentation Fault"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0222.html">Adam Warner: "Re: HP 5100C and SANE"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#215">[ date ]</A>
<A HREF="index.html#215">[ thread ]</A>
<A HREF="subject.html#215">[ subject ]</A>
<A HREF="author.html#215">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi Adam,
<BR>
<P>I have no experience with the ppscsi/epst modules. So I can only give
<BR>
you some hints about the hp-backend to see where the problems come from.
<BR>
The main communication with the scanner seems to work. Otherwise you
<BR>
wouldn't be able to scan a b/w image. Maybe the problems arise from the
<BR>
large amount of data that must be read back from the scanner for
<BR>
grey/color scans. To see if this is right you can try to do a grey scan
<BR>
with low resolution or just a small part of the scan area.
<BR>
If it is a problem with buffer overruns (scanner data not picked up fast
<BR>
enough), you can try to scan in the complete image into memory before
<BR>
passing to the scanimage frontend. You have to modify the hp.conf-file.
<BR>
First of all, remove the line &quot;scsi HP&quot;. If your scanner is
<BR>
/dev/scanner, hp.conf should have
<BR>
<P>/dev/scanner
<BR>
&nbsp;&nbsp;option enable-image-buffering
<BR>
<P>(If you would have the line &quot;scsi HP&quot; in the hp.conf, the additional
<BR>
options would not be recognized).
<BR>
You can also try to change the style how the image data is read back
<BR>
from the scanner:
<BR>
<P>/dev/scanner
<BR>
&nbsp;&nbsp;option enable-image-buffering
<BR>
&nbsp;&nbsp;option disable-scsi-request
<BR>
<P>The image data is read back directly from the scanner without some level
<BR>
of scsi-requests.
<BR>
You can also try to modify some buffer size for the SCSI-handling.
<BR>
<P>export SANE_SG_BUFFERSIZE=32768
<BR>
<P>will set that buffer to 32 KB. You can try some smaller and bigger
<BR>
values too.
<BR>
<P>I dont know if this could help to solve the problem, but you can try it.
<BR>
<P>--Peter
<BR>
<P>Adam Warner wrote:
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Hi Peter and all,
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; (Please note this message has been carbon copied to the sane-devel and
</EM><BR>
<EM>&gt; linux-parport mailing lists because of relevance. I think this is appropriate
</EM><BR>
<EM>&gt; given that this may be a ppscsi issue).
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Thanks for your informative site about the SANE HP backend:
</EM><BR>
<EM>&gt; <A HREF="http://www.kirchgessner.net/sane.html">http://www.kirchgessner.net/sane.html</A>
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I have discovered that the ppscsi driver is not SMP safe (with my ABit BP6).
</EM><BR>
<EM>&gt; But I've put that aside at the moment by recompiling the kernel in UP mode and
</EM><BR>
<EM>&gt; I am trying to get scanimage to work.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I am running sane 1.0.4 with a 2.4.2 kernel w/ppscsi 0.92 and epst modules
</EM><BR>
<EM>&gt; incorporated.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; scanimage indeed works in 1 bpp mode:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; &quot;scanimage -v &gt; test&quot; results in:
</EM><BR>
<EM>&gt; scanimage: scanning image of size 2550x3507 pixels at 1 bits/pixel
</EM><BR>
<EM>&gt; scanimage: acquiring gray frame
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; (I can, for example scan as a tiff image and view it in The GIMP)
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; However &quot;scanimage -v --mode gray &gt; test&quot; results in:
</EM><BR>
<EM>&gt; scanimage: scanning image of size 2550x3507 pixels at 8 bits/pixel
</EM><BR>
<EM>&gt; scanimage: acquiring gray frame
</EM><BR>
<EM>&gt; scanimage: min/max graylevel value = 255/0
</EM><BR>
<EM>&gt; scanimage: sane_read: Error during device I/O
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; The HP 5100C starts preliminary noises and scanning for a moment before halting
</EM><BR>
<EM>&gt; and giving up with this error. I don't think the scanner is faulty because it
</EM><BR>
<EM>&gt; passes all tests and does work in Windows 95 (I tested that out to make sure).
</EM><BR>
<EM>&gt; I receive the same responses as Dave Gilbert using hpinq.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Again if I try &quot;scanimage -v --mode color &gt; test&quot;:
</EM><BR>
<EM>&gt; scanimage: scanning image of size 2550x3507 pixels at 24 bits/pixel
</EM><BR>
<EM>&gt; scanimage: acquiring RGB frame
</EM><BR>
<EM>&gt; scanimage: min/max graylevel value = 255/0
</EM><BR>
<EM>&gt; scanimage: sane_read: Error during device I/O
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; This is the resulting output in &quot;test&quot;:
</EM><BR>
<EM>&gt; P6
</EM><BR>
<EM>&gt; # SANE data follows
</EM><BR>
<EM>&gt; 2550 3507
</EM><BR>
<EM>&gt; 255
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Every time I get the I/O error this is what turns up in dmesg:
</EM><BR>
<EM>&gt; epst.1: Command abort not supported
</EM><BR>
<EM>&gt; epst.1: Bus reset
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; These messages are issued by ppscsi. They only appear to result because of the
</EM><BR>
<EM>&gt; I/O error.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I am new to C programming so I am just trying to obtain so preliminary
</EM><BR>
<EM>&gt; understanding about what is going on and am happy to provide further
</EM><BR>
<EM>&gt; information/testing that is necessary to flush out these bugs.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; How do I turn on verbose logging for ppscsi? If I add:
</EM><BR>
<EM>&gt; options ppscsi verbose=4
</EM><BR>
<EM>&gt; to /etc/modules.conf
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I then can't install the module but am told:
</EM><BR>
<EM>&gt; /lib/modules/2.4.2/kernel/drivers/scsi/ppscsi.o: invalid parameter parm_verbose
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I did hear from Tim Waugh at Redhat that ppscsi is low priority right now
</EM><BR>
<EM>&gt; (which I can understand).
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Regards,
</EM><BR>
<EM>&gt; Adam
</EM><BR>
<P><PRE>
--
Peter Kirchgessner
<A HREF="http://www.kirchgessner.net">http://www.kirchgessner.net</A>
mailto:<A HREF="mailto:peter@kirchgessner.net?Subject=Re:%20HP%205100C%20and%20SANE&In-Reply-To=&lt;3A992DB8.1BB8236E@kirchgessner.net&gt;">peter@kirchgessner.net</A>
<P><P>--
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:%20HP%205100C%20and%20SANE&In-Reply-To=&lt;3A992DB8.1BB8236E@kirchgessner.net&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0216.html">Uwe Wagner: "Re: snapscan, problem in color mode : horizontal shift"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0214.html">abel deuring: "Re: always Segmentation Fault"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0222.html">Adam Warner: "Re: HP 5100C and SANE"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#215">[ date ]</A>
<A HREF="index.html#215">[ thread ]</A>
<A HREF="subject.html#215">[ subject ]</A>
<A HREF="author.html#215">[ 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>Sun Feb 25 2001 - 07:58:38 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>