kopia lustrzana https://gitlab.com/sane-project/website
278 wiersze
8.6 KiB
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=<3A992DB8.1BB8236E@kirchgessner.net>"><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 "scsi HP". If your scanner is
|
|
<BR>
|
|
/dev/scanner, hp.conf should have
|
|
<BR>
|
|
<P>/dev/scanner
|
|
<BR>
|
|
option enable-image-buffering
|
|
<BR>
|
|
<P>(If you would have the line "scsi HP" 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>
|
|
option enable-image-buffering
|
|
<BR>
|
|
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>>
|
|
</EM><BR>
|
|
<EM>> Hi Peter and all,
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> (Please note this message has been carbon copied to the sane-devel and
|
|
</EM><BR>
|
|
<EM>> linux-parport mailing lists because of relevance. I think this is appropriate
|
|
</EM><BR>
|
|
<EM>> given that this may be a ppscsi issue).
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Thanks for your informative site about the SANE HP backend:
|
|
</EM><BR>
|
|
<EM>> <A HREF="http://www.kirchgessner.net/sane.html">http://www.kirchgessner.net/sane.html</A>
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> I have discovered that the ppscsi driver is not SMP safe (with my ABit BP6).
|
|
</EM><BR>
|
|
<EM>> But I've put that aside at the moment by recompiling the kernel in UP mode and
|
|
</EM><BR>
|
|
<EM>> I am trying to get scanimage to work.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> I am running sane 1.0.4 with a 2.4.2 kernel w/ppscsi 0.92 and epst modules
|
|
</EM><BR>
|
|
<EM>> incorporated.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> scanimage indeed works in 1 bpp mode:
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> "scanimage -v > test" results in:
|
|
</EM><BR>
|
|
<EM>> scanimage: scanning image of size 2550x3507 pixels at 1 bits/pixel
|
|
</EM><BR>
|
|
<EM>> scanimage: acquiring gray frame
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> (I can, for example scan as a tiff image and view it in The GIMP)
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> However "scanimage -v --mode gray > test" results in:
|
|
</EM><BR>
|
|
<EM>> scanimage: scanning image of size 2550x3507 pixels at 8 bits/pixel
|
|
</EM><BR>
|
|
<EM>> scanimage: acquiring gray frame
|
|
</EM><BR>
|
|
<EM>> scanimage: min/max graylevel value = 255/0
|
|
</EM><BR>
|
|
<EM>> scanimage: sane_read: Error during device I/O
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> The HP 5100C starts preliminary noises and scanning for a moment before halting
|
|
</EM><BR>
|
|
<EM>> and giving up with this error. I don't think the scanner is faulty because it
|
|
</EM><BR>
|
|
<EM>> passes all tests and does work in Windows 95 (I tested that out to make sure).
|
|
</EM><BR>
|
|
<EM>> I receive the same responses as Dave Gilbert using hpinq.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Again if I try "scanimage -v --mode color > test":
|
|
</EM><BR>
|
|
<EM>> scanimage: scanning image of size 2550x3507 pixels at 24 bits/pixel
|
|
</EM><BR>
|
|
<EM>> scanimage: acquiring RGB frame
|
|
</EM><BR>
|
|
<EM>> scanimage: min/max graylevel value = 255/0
|
|
</EM><BR>
|
|
<EM>> scanimage: sane_read: Error during device I/O
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> This is the resulting output in "test":
|
|
</EM><BR>
|
|
<EM>> P6
|
|
</EM><BR>
|
|
<EM>> # SANE data follows
|
|
</EM><BR>
|
|
<EM>> 2550 3507
|
|
</EM><BR>
|
|
<EM>> 255
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Every time I get the I/O error this is what turns up in dmesg:
|
|
</EM><BR>
|
|
<EM>> epst.1: Command abort not supported
|
|
</EM><BR>
|
|
<EM>> epst.1: Bus reset
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> These messages are issued by ppscsi. They only appear to result because of the
|
|
</EM><BR>
|
|
<EM>> I/O error.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> I am new to C programming so I am just trying to obtain so preliminary
|
|
</EM><BR>
|
|
<EM>> understanding about what is going on and am happy to provide further
|
|
</EM><BR>
|
|
<EM>> information/testing that is necessary to flush out these bugs.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> How do I turn on verbose logging for ppscsi? If I add:
|
|
</EM><BR>
|
|
<EM>> options ppscsi verbose=4
|
|
</EM><BR>
|
|
<EM>> to /etc/modules.conf
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> I then can't install the module but am told:
|
|
</EM><BR>
|
|
<EM>> /lib/modules/2.4.2/kernel/drivers/scsi/ppscsi.o: invalid parameter parm_verbose
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> I did hear from Tim Waugh at Redhat that ppscsi is low priority right now
|
|
</EM><BR>
|
|
<EM>> (which I can understand).
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Regards,
|
|
</EM><BR>
|
|
<EM>> 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=<3A992DB8.1BB8236E@kirchgessner.net>">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=<3A992DB8.1BB8236E@kirchgessner.net>">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>
|