sane-project-website/old-archive/1998-09/0059.html

134 wiersze
5.1 KiB
HTML

<!-- received="Tue Sep 8 00:44:31 1998 PDT" -->
<!-- sent="Tue, 8 Sep 1998 09:43:03 +0100 (MES)" -->
<!-- name="Markus Mertinat" -->
<!-- email="Markus.Mertinat@Physik.Uni-Augsburg.DE" -->
<!-- subject="Re: CanoScan 300 SCSI scanner setup problem" -->
<!-- id="199809080743.JAA14534@phibm20c.Physik.Uni-Augsburg.DE" -->
<!-- inreplyto="35F4312D.6E66AD84@direct.a2000.nl" -->
<title>sane-devel: Re: CanoScan 300 SCSI scanner setup problem</title>
<h1>Re: CanoScan 300 SCSI scanner setup problem</h1>
<b>Markus Mertinat</b> (<a href="mailto:Markus.Mertinat@Physik.Uni-Augsburg.DE"><i>Markus.Mertinat@Physik.Uni-Augsburg.DE</i></a>)<br>
<i>Tue, 8 Sep 1998 09:43:03 +0100 (MES)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#59">[ date ]</a><a href="index.html#59">[ thread ]</a><a href="subject.html#59">[ subject ]</a><a href="author.html#59">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0060.html">Bernd Schroeder: "Re: ADF for microtek2 backend"</a>
<li> <b>Previous message:</b> <a href="0058.html">Durk Talsma: "CanoScan 300 SCSI scanner setup problem"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Hello Durk,<br>
<p>
<i>&gt; Recently, I discovered the SANE project, and would very much like to use</i><br>
<i>&gt; it for running</i><br>
<i>&gt; a scanner on my l Linux box. I haven't been very succesful in getting my</i><br>
<i>&gt; scanner recognized though, using sane 0.74</i><br>
<p>
Just yesterday evening I managed to get a CanoScan600 running under<br>
our Linux-Server again, so you're lucky! :-)<br>
<p>
<i>&gt; I have a Canon Canoscan 300 flatbed scanner, configured for LUN 03 and a</i><br>
<i>&gt; ncr810 SCSI host adapter.</i><br>
<i>&gt; My kernel is configured with generic SCSI support, and have found the</i><br>
<i>&gt; generic SCSI devices /dev/sga</i><br>
<i>&gt; through /dev/sgh. No, I'm not much of a SCSI expert, but assuming that</i><br>
<i>&gt; /dev/sgd correspondes with LUN 03,</i><br>
<i>&gt; I set up a symbolic link from /dev/sgd to /dev/scanner.</i><br>
<p>
Not quite: The sequence of sg? is according to "cat /proc/scsi/scsi",<br>
there exists a skript (running as root) which manages the link and<br>
the scsi initialization:<br>
<p>
==================================================<br>
#! /bin/csh -f<br>
<p>
set host=0<br>
set channel=0<br>
set id=6<br>
set lun=0<br>
<p>
/sbin/modprobe -k scsi_hostadapter<br>
echo "scsi add-single-device $host $channel $id $lun" &gt; /proc/scsi/scsi<br>
<p>
set a=("`cat /proc/scsi/scsi`")<br>
set dev=0<br>
set x=0<br>
while($#a)<br>
if( "${a[1]}" =~ *Vendor* ) then<br>
@ x++<br>
endif<br>
if( "${a[1]}" =~ *CANON* ) then<br>
set dev = $x<br>
endif<br>
shift a<br>
end<br>
<p>
if($dev == 0) then<br>
echo "Did not find a CANON type scanner"<br>
exit 1<br>
endif<br>
<p>
set chars=(a b c d e f g h)<br>
set name = "sg${chars[$dev]}"<br>
<p>
rm -f /dev/scanner<br>
ln -s $name /dev/scanner<br>
exit 0<br>
==================================================<br>
<p>
You can type the "cat /proc/scsi/scsi" to learn more about it.<br>
I hope, you have the ganeric-scsi-support included in the<br>
kernel.<br>
If this all is correct, you can try the "find-scanner" in the<br>
sane.../tools directory. This should report the correct<br>
device now.<br>
Ok, then we can go on.<br>
Try "xscanimage canon:/dev/scanner". Should work. Ok? Ok!<br>
<p>
<i>&gt; Futhermore, in /etc/sane.d/dll.conf, I included a line that reads canon.</i><br>
<i>&gt; I found no cano.conf in /etc/sane.d/ so I made</i><br>
<i>&gt; one. This file simply states /dev/scanner.</i><br>
<p>
Hmmm, this directory should be created automatically. Are you sure, you<br>
installed in / ??? Look under /usr/local/etc/sane.d (default) !<br>
Try "make -n install" and look for the installation directory.<br>
(-n reports the actions w/o actually doing something)<br>
<p>
The documentation about the conf-Files is somewhat "related", that means,<br>
every doc relates to another manpage.... :-(<br>
<p>
dll.conf should contain the following lines (works for me):<br>
==================================================<br>
canon<br>
pnm<br>
==================================================<br>
<p>
canon.conf (with "n") should contain the following line (works for me):<br>
==================================================<br>
/dev/scanner<br>
==================================================<br>
<p>
I hope this helps and sorry to everybody for answering a beginners<br>
question in this advanced circle, but I had the same problems yesterday<br>
and thought this might be of some interest for more people.<br>
<p>
Have a nice day,<br>
Markus<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="0060.html">Bernd Schroeder: "Re: ADF for microtek2 backend"</a>
<li> <b>Previous message:</b> <a href="0058.html">Durk Talsma: "CanoScan 300 SCSI scanner setup problem"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>