sane-project-website/old-archive/1998-03/0201.html

88 wiersze
4.2 KiB
HTML

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!-- received="Sun Mar 29 15:37:22 1998 PST" -->
<!-- sent="Sun, 29 Mar 1998 16:36:45 -0700" -->
<!-- name="Sean Reifschneider" -->
<!-- email="jafo@tummy.com" -->
<!-- subject="Linux Sense buffer (was: sane 0.71 and microtek E3)" -->
<!-- id="" -->
<!-- inreplyto="" -->
<title>sane-devel: Linux Sense buffer (was: sane 0.71 and microtek E3)</title>
<h1>Linux Sense buffer (was: sane 0.71 and microtek E3)</h1>
<b>Sean Reifschneider</b> (<a href="mailto:jafo@tummy.com"><i>jafo@tummy.com</i></a>)<br>
<i>Sun, 29 Mar 1998 16:36:45 -0700</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#201">[ date ]</a><a href="index.html#201">[ thread ]</a><a href="subject.html#201">[ subject ]</a><a href="author.html#201">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0202.html">Didier Carlier: "Re: Linux Sense buffer (was: sane 0.71 and microtek E3)"</a>
<li> <b>Previous message:</b> <a href="0200.html">Hugo van der Kooij: "Re: When will SANE we gtk+-0.99.8 compliant?"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
I've finally gotten a chance to even LOOK at SANE. I ran into the<br>
discussion of the Microtek scanners not working with the latest<br>
versions of SANE. There was speculation that it was a problem with<br>
the AHA drivers. I loaded it and tried it here and found that my<br>
NCR 53c8xx and DPT controllers were doing the same thing.<br>
<p>
I sent a query to Leonard Zubkoff asking for his opinion, and he<br>
says that the code appears to work that way. I haven't had a chance<br>
to try it with the BusLogic drivers that he authors yet though. It<br>
looks like the:<br>
<p>
if (req-&gt;cdb.hdr.result == 0 &amp;&amp; (req-&gt;cdb.hdr.sense_buffer[0] &amp; 0x7f) == 0)<br>
<p>
needs to be changed to:<br>
<p>
if (req-&gt;cdb.hdr.result == 0)<br>
<p>
for SANE to work on NCR, DPT, and some AHA systems.<br>
<p>
Also, are most SANE folks working with the SG_BIG_BUFF increased from the<br>
stock size? I found that if I scan something in higher resolution that<br>
SANE core dumps. I tracked it down to a segement where it's reading from<br>
the device and it looks like the buffer is being over-blown. I hope to<br>
track this down and have a fix for it over the next couple of weeks.<br>
<p>
I did some testing a few years ago, and didn't really notice any performance<br>
improvement between the stock buffer and the max size. It didn't take too<br>
long before I realized that I was wasting more time with building new<br>
kernels and other dorking around, than I was *EVER* going to save in scan<br>
times. Also, since there's no real way to query the buffer size from the<br>
software (that I found at that time anyway), doing "production builds" with<br>
a bigger buffer just would mean that it would crash on most users systems.<br>
<p>
In the last 3 years and hundreds of copies of our software on Linux, I don't<br>
recall even ONE complaint about the scanning speed.<br>
<p>
An even less important consideration is our "status bar". We have one of<br>
those progress meters during scanning. Using the larger buffer resulted<br>
in a much less pretty (and useful :-) updating of the meter since I update<br>
it after each read.<br>
<p>
Anyway, that's my two cents worth...<br>
<p>
Enjoy,<br>
Sean<br>
<pre>
--
"Sometimes Omaha can't be avoided."
-- Howard Borden the navigator, Bob Newhart Show
Sean Reifschneider, Inimitably Superfluous &lt;<a href="mailto:jafo@tummy.com">jafo@tummy.com</a>&gt;
URL: &lt;<a href="http://www.tummy.com/xvscan">http://www.tummy.com/xvscan</a>&gt; HP-UX/Linux/FreeBSD/BSDOS scanning software.
<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">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0202.html">Didier Carlier: "Re: Linux Sense buffer (was: sane 0.71 and microtek E3)"</a>
<li> <b>Previous message:</b> <a href="0200.html">Hugo van der Kooij: "Re: When will SANE we gtk+-0.99.8 compliant?"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>