sane-project-website/old-archive/2000-04/0011.html

248 wiersze
7.8 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: SYM22801 &amp; HP Scanjet 5P Sane problems...</TITLE>
<META NAME="Author" CONTENT="Rogier Stam (rogier@wight.penguinpowered.com)">
<META NAME="Subject" CONTENT="Re: SYM22801 &amp; HP Scanjet 5P Sane problems...">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: SYM22801 &amp; HP Scanjet 5P Sane problems...</H1>
<!-- received="Sun Apr 2 00:37:43 2000" -->
<!-- isoreceived="20000402083743" -->
<!-- sent="Sun, 02 Apr 2000 09:38:48 +0200" -->
<!-- isosent="20000402073848" -->
<!-- name="Rogier Stam" -->
<!-- email="rogier@wight.penguinpowered.com" -->
<!-- subject="Re: SYM22801 &amp; HP Scanjet 5P Sane problems..." -->
<!-- id="38E6F908.56C32AD5@wight.penguinpowered.com" -->
<!-- inreplyto="38E57464.3D02C8DE@interlog.com" -->
<STRONG>From:</STRONG> Rogier Stam (<A HREF="mailto:rogier@wight.penguinpowered.com?Subject=Re:%20SYM22801%20&amp;%20HP%20Scanjet%205P%20Sane%20problems...&In-Reply-To=&lt;38E6F908.56C32AD5@wight.penguinpowered.com&gt;"><EM>rogier@wight.penguinpowered.com</EM></A>)<BR>
<STRONG>Date:</STRONG> Sat Apr 01 2000 - 23:38:48 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0012.html">Henning Meier-Geinitz: "Re: xscanimage, xsane and 3-pass scanners"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0010.html">Rogier Stam: "Re: SYM22801 &amp; HP Scanjet 5P Sane problems..."</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#11">[ date ]</A>
<A HREF="index.html#11">[ thread ]</A>
<A HREF="subject.html#11">[ subject ]</A>
<A HREF="author.html#11">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
<EM>&gt; /dev/sg0 and /dev/sga are synonymous (with the former now preferred).
</EM><BR>
<EM>&gt; /dev/scanner, if present, should be a symbolic link to the preferred
</EM><BR>
<EM>&gt; scanner device.
</EM><BR>
Correct. It's just a symbolic link.
<BR>
<P><P><P><EM>&gt; In lk 2.4 the sg driver will announce seeing a
</EM><BR>
<EM>&gt; scanner device with a message like:
</EM><BR>
<EM>&gt; Detected scsi generic sg0 at scsi1, channel 0, id 5, lun 0, type 6
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; where as in lk 2.2 it will say:
</EM><BR>
<EM>&gt; Detected scsi generic sga at scsi1, channel 0, id 5, lun 0
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; [Note that HP use type 3 (&quot;Processor&quot;) for scanners.]
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; To further confuse things lk 2.4 optionally supports a device pseudo
</EM><BR>
<EM>&gt; file system in which the actual device will be found at:
</EM><BR>
<EM>&gt; /dev/scsi/host1/bus0/target5/lun0/generic
</EM><BR>
<EM>&gt; With luck most distros will set up the devfs daemon to make /dev/sg0 ,
</EM><BR>
<EM>&gt; /dev/sga be symbolic links to the appropriate generic device. Ide
</EM><BR>
<EM>&gt; devices (and perhaps usb devices, I haven't checked) use a similar
</EM><BR>
<EM>&gt; naming convention.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; &gt; Another odd thing I found (I don't know if it's related), is when I run
</EM><BR>
<EM>&gt; &gt; the scsi_info tool on /dev/sga. The result is the following :
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; SCSI_ID=&quot;0,3,0&quot;
</EM><BR>
<EM>&gt; &gt; MODEL=&quot;Direct-A &quot;
</EM><BR>
<EM>&gt; &gt; FW_REV=&quot;SCSI&quot;
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; That should say something like what can be found in the /proc/scsi/scsi
</EM><BR>
<EM>&gt; &gt; file as far as I know, which would make me expect that model would be
</EM><BR>
<EM>&gt; &gt; C5110A instead of Direct-A .....
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; This is confusing. Eric Youngdale has written a tool called
</EM><BR>
<EM>&gt; &quot;scsiinfo&quot; that outputs mode page information about scsi
</EM><BR>
<EM>&gt; devices (and I have a variant called &quot;sginfo&quot; which is
</EM><BR>
<EM>&gt; equivalent). &quot;scsiinfo -i /dev/sg0&quot; yields the correct
</EM><BR>
<EM>&gt; inquiry information.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; The &quot;scsi_info&quot; (1.12 1999/07/20 16:04:26) is an unrelated
</EM><BR>
<EM>&gt; program that tries to analyse the output of /proc/scsi/scsi.
</EM><BR>
<EM>&gt; On my system (running a 2.3.99-pre3 kernel):
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; $ cat /proc/scsi/scsi
</EM><BR>
<EM>&gt; Attached devices:
</EM><BR>
<EM>&gt; Host: scsi0 Channel: 00 Id: 06 Lun: 00
</EM><BR>
<EM>&gt; Vendor: YAMAHA Model: CRW4416S Rev: 1.0g
</EM><BR>
<EM>&gt; Type: CD-ROM ANSI SCSI revision: 02
</EM><BR>
<EM>&gt; Host: scsi1 Channel: 00 Id: 00 Lun: 00
</EM><BR>
<EM>&gt; Vendor: IBM Model: DCHS04U Rev: 2727
</EM><BR>
<EM>&gt; Type: Direct-Access ANSI SCSI revision: 02
</EM><BR>
<EM>&gt; Host: scsi1 Channel: 00 Id: 02 Lun: 00
</EM><BR>
<EM>&gt; Vendor: IBM Model: DCHS04U Rev: 2727
</EM><BR>
<EM>&gt; Type: Direct-Access ANSI SCSI revision: 02
</EM><BR>
<EM>&gt; Host: scsi3 Channel: 00 Id: 02 Lun: 00
</EM><BR>
<EM>&gt; Vendor: PIONEER Model: DVD-ROM DVD-303 Rev: 1.10
</EM><BR>
<EM>&gt; Type: CD-ROM ANSI SCSI revision: 02
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Now let's try scsi_info on the 4 scsi devices:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; $ ./scsi_info /dev/sg0
</EM><BR>
<EM>&gt; could not find SCSI host in /proc/scsi: Success
</EM><BR>
<EM>&gt; SCSI_ID=&quot;0,6,0&quot;
</EM><BR>
<EM>&gt; MODEL=&quot;CD-ROM &quot;
</EM><BR>
<EM>&gt; FW_REV=&quot;SCSI&quot;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; $ ./scsi_info /dev/sg1
</EM><BR>
<EM>&gt; SCSI_ID=&quot;0,0,0&quot;
</EM><BR>
<EM>&gt; MODEL=&quot;CD-ROM &quot;
</EM><BR>
<EM>&gt; FW_REV=&quot;SCSI&quot;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; $ ./scsi_info /dev/sg2
</EM><BR>
<EM>&gt; SCSI_ID=&quot;0,2,0&quot;
</EM><BR>
<EM>&gt; MODEL=&quot;CD-ROM &quot;
</EM><BR>
<EM>&gt; FW_REV=&quot;SCSI&quot;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; $ ./scsi_info /dev/sg3
</EM><BR>
<EM>&gt; could not find SCSI host in /proc/scsi: Success
</EM><BR>
<EM>&gt; SCSI_ID=&quot;0,2,0&quot;
</EM><BR>
<EM>&gt; MODEL=&quot;CD-ROM &quot;
</EM><BR>
<EM>&gt; FW_REV=&quot;SCSI&quot;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; The output is wrong and/or misleading in all 4 cases.
</EM><BR>
<EM>&gt; &quot;scsi_info&quot; needs to be retired or fixed. I'll take
</EM><BR>
<EM>&gt; the subject up with its author.
</EM><BR>
You seem to get similar results too. I'm glad it's not just my system.
<BR>
<P><P><EM>&gt; I don't think this has any bearing on your problem.
</EM><BR>
Correct. Thanks to a tip from peter the problem is now solved on my
<BR>
system.
<BR>
Thanks for your help.
<BR>
<P>Rogier
<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?Subject=Re:%20SYM22801%20&amp;%20HP%20Scanjet%205P%20Sane%20problems...&In-Reply-To=&lt;38E6F908.56C32AD5@wight.penguinpowered.com&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0012.html">Henning Meier-Geinitz: "Re: xscanimage, xsane and 3-pass scanners"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0010.html">Rogier Stam: "Re: SYM22801 &amp; HP Scanjet 5P Sane problems..."</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#11">[ date ]</A>
<A HREF="index.html#11">[ thread ]</A>
<A HREF="subject.html#11">[ subject ]</A>
<A HREF="author.html#11">[ 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 Apr 02 2000 - 00:38:33 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>