kopia lustrzana https://gitlab.com/sane-project/website
86 wiersze
3.7 KiB
HTML
86 wiersze
3.7 KiB
HTML
|
<!-- received="Thu Nov 25 20:05:04 1999 PST" -->
|
|||
|
<!-- sent="Thu, 25 Nov 1999 23:09:07 -0500" -->
|
|||
|
<!-- name="Douglas Gilbert" -->
|
|||
|
<!-- email="dgilbert@interlog.com" -->
|
|||
|
<!-- subject="Re: no SG__BIG_BUF in kernel 2.2.12" -->
|
|||
|
<!-- id="" -->
|
|||
|
<!-- inreplyto="no SG__BIG_BUF in kernel 2.2.12" -->
|
|||
|
<title>sane-devel: Re: no SG__BIG_BUF in kernel 2.2.12</title>
|
|||
|
<h1>Re: no SG__BIG_BUF in kernel 2.2.12</h1>
|
|||
|
<b>Douglas Gilbert</b> (<a href="mailto:dgilbert@interlog.com"><i>dgilbert@interlog.com</i></a>)<br>
|
|||
|
<i>Thu, 25 Nov 1999 23:09:07 -0500</i>
|
|||
|
<p>
|
|||
|
<ul>
|
|||
|
<li> <b>Messages sorted by:</b> <a href="date.html#254">[ date ]</a><a href="index.html#254">[ thread ]</a><a href="subject.html#254">[ subject ]</a><a href="author.html#254">[ author ]</a>
|
|||
|
<!-- next="start" -->
|
|||
|
<li> <b>Next message:</b> <a href="0255.html">Russ Burdick: "Re: Acer 310s?"</a>
|
|||
|
<li> <b>Previous message:</b> <a href="0253.html">Brian Beattie: "decoding image formats"</a>
|
|||
|
<li> <b>Maybe in reply to:</b> <a href="0245.html">joakim verona: "no SG__BIG_BUF in kernel 2.2.12"</a>
|
|||
|
<!-- nextthread="start" -->
|
|||
|
<li> <b>Next in thread:</b> <a href="0257.html">joakim verona: "Re: no SG__BIG_BUF in kernel 2.2.12"</a>
|
|||
|
<!-- reply="end" -->
|
|||
|
</ul>
|
|||
|
<!-- body="start" -->
|
|||
|
joakim verona wrote:<br>
|
|||
|
<i>> </i><br>
|
|||
|
<i>> I've been trying now and then for some time to get my snapscan 300 to</i><br>
|
|||
|
<i>> work.</i><br>
|
|||
|
<i>> with the latest developer snapshot i had partial success, i could at</i><br>
|
|||
|
<i>> least do a preview scan with xscanimage, but when i try to do a full</i><br>
|
|||
|
<i>> scan it hangs after scanning a fraction of the image.</i><br>
|
|||
|
<i>> </i><br>
|
|||
|
<i>> so i've read some of the advice on the list and was going to try to</i><br>
|
|||
|
<i>> increase the SG_BIG_BUF parameter in sg.h. But there seems to be no such</i><br>
|
|||
|
<i>> parameter in kernel 2.2.12!</i><br>
|
|||
|
<i>> </i><br>
|
|||
|
<i>> is SG_BIG_BUF still applicable, or what?</i><br>
|
|||
|
<p>
|
|||
|
According to the Linux Cross Reference (site lxr.linux.no) in<br>
|
|||
|
Linux kernel 2.2.12 in /usr/src/linux/include/scsi/sg.h<br>
|
|||
|
on line 231 is:<br>
|
|||
|
#define SG_BIG_BUFF SG_DEF_RESERVED_SIZE<br>
|
|||
|
<p>
|
|||
|
Note the different spelling. Backing up to line 226 is:<br>
|
|||
|
#define SG_DEF_RESERVED_SIZE SG_SCATTER_SZ<br>
|
|||
|
<p>
|
|||
|
Now assuming you have a reasonable SCSI controller then you<br>
|
|||
|
can try changing that to:<br>
|
|||
|
#define SG_DEF_RESERVED_SIZE (SG_SCATTER_SZ * 4)<br>
|
|||
|
<p>
|
|||
|
and then build the the sg driver into the kernel. This way<br>
|
|||
|
if SANE reads /proc/sys/kernel/sg-big-buff it will find<br>
|
|||
|
131072. [If you build sg as a module that file is not<br>
|
|||
|
there and I think SANE assumes a buffer size of 32768.]<br>
|
|||
|
<p>
|
|||
|
Next, if you haven't already, go to Kevin Charter's web<br>
|
|||
|
site (see recent newsgroup postings by him) and get a<br>
|
|||
|
new Snapscan backend.<br>
|
|||
|
<p>
|
|||
|
Before you rebuild SANE, try:<br>
|
|||
|
diff /usr/src/linux/include/scsi/sg.h /usr/include/scsi/sg.h<br>
|
|||
|
<p>
|
|||
|
If they are different then:<br>
|
|||
|
cp /usr/src/linux/include/scsi/sg.h /usr/include/scsi/sg.h<br>
|
|||
|
[This glitch is brought to you by glibc library maintainers.]<br>
|
|||
|
<p>
|
|||
|
See if that makes a difference.<br>
|
|||
|
<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="0255.html">Russ Burdick: "Re: Acer 310s?"</a>
|
|||
|
<li> <b>Previous message:</b> <a href="0253.html">Brian Beattie: "decoding image formats"</a>
|
|||
|
<li> <b>Maybe in reply to:</b> <a href="0245.html">joakim verona: "no SG__BIG_BUF in kernel 2.2.12"</a>
|
|||
|
<!-- nextthread="start" -->
|
|||
|
<li> <b>Next in thread:</b> <a href="0257.html">joakim verona: "Re: no SG__BIG_BUF in kernel 2.2.12"</a>
|
|||
|
<!-- reply="end" -->
|
|||
|
</ul>
|