sane-project-website/old-archive/1999-11/0239.html

80 wiersze
3.3 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="Wed Nov 24 19:34:53 1999 PST" -->
<!-- sent="Wed, 24 Nov 1999 22:04:47 -0500" -->
<!-- name="Douglas Gilbert" -->
<!-- email="dgilbert@interlog.com" -->
<!-- subject="Re: Umax 1220S problem fixed" -->
<!-- id="" -->
<!-- inreplyto="Umax 1220S problem fixed" -->
<title>sane-devel: Re: Umax 1220S problem fixed</title>
<h1>Re: Umax 1220S problem fixed</h1>
<b>Douglas Gilbert</b> (<a href="mailto:dgilbert@interlog.com"><i>dgilbert@interlog.com</i></a>)<br>
<i>Wed, 24 Nov 1999 22:04:47 -0500</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#239">[ date ]</a><a href="index.html#239">[ thread ]</a><a href="subject.html#239">[ subject ]</a><a href="author.html#239">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0240.html">Manuel Panea: "Re: Problem with SANE and SCSI scanner"</a>
<li> <b>Previous message:</b> <a href="0238.html">Laura DeWitt: "Re: Problem with SANE and SCSI scanner"</a>
<li> <b>Maybe in reply to:</b> <a href="0234.html">Cyril Y. Nickonorov: "Umax 1220S problem fixed"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0241.html">Cyril Y. Nickonorov: "Re: Umax 1220S problem fixed"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Oliver Rauch wrote:<br>
<i>&gt; </i><br>
<i>&gt; "Cyril Y. Nickonorov" wrote:</i><br>
<i>&gt; </i><br>
<i>&gt; &gt; Hello and thanks to all who answered me.</i><br>
<i>&gt; &gt;</i><br>
<i>&gt; &gt; I just found why my scanner refused to do it's job. The problem was buffer size</i><br>
<i>&gt; &gt; value in</i><br>
<i>&gt; &gt; /usr/include/scsi/sg.h file. I've put there incorrect value and it causes sane</i><br>
<i>&gt; &gt; to</i><br>
<i>&gt; &gt; print "out of memory" error in log file.</i><br>
<i>&gt; &gt;</i><br>
<i>&gt; &gt; Now everything works just ok. :)</i><br>
<i>&gt; &gt;</i><br>
<i>&gt; &gt;</i><br>
<i>&gt; </i><br>
<i>&gt; ;-)</i><br>
<i>&gt; </i><br>
<i>&gt; Fine.</i><br>
<p>
SG_BIG_BUFF strikes again! Hopefully sometime in the near<br>
future people will be able to write:<br>
<p>
echo 131072 &gt; /proc/scsi/sg/def_reserved_size<br>
<p>
and leave the !@#$%^&amp; sg driver alone. Apart from<br>
hinting that the sg driver reserve a buffer of that<br>
size on open(), it will make the same number appear<br>
in /proc/sys/kernel/sg-big-buff which will keep SANE<br>
happy. [Unfortunately the latter action only takes<br>
place when sg is built into the kernel, as has always<br>
been the case.]<br>
<p>
Cyril was using the original sg driver (assuming he was<br>
using a stock RH6.0 2.2.5-15 kernel). That driver is a<br>
lot more sensitive to miscues with SG_BIG_BUFF.<br>
<p>
<p>
Doug Gilbert<br>
<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="0240.html">Manuel Panea: "Re: Problem with SANE and SCSI scanner"</a>
<li> <b>Previous message:</b> <a href="0238.html">Laura DeWitt: "Re: Problem with SANE and SCSI scanner"</a>
<li> <b>Maybe in reply to:</b> <a href="0234.html">Cyril Y. Nickonorov: "Umax 1220S problem fixed"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0241.html">Cyril Y. Nickonorov: "Re: Umax 1220S problem fixed"</a>
<!-- reply="end" -->
</ul>