sane-project-website/old-archive/2001-01/0197.html

152 wiersze
6.1 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: Failed to open device `coolscan:/dev/scanner':</TITLE>
<META NAME="Author" CONTENT="Douglas Gilbert (dgilbert@interlog.com)">
<META NAME="Subject" CONTENT="Re: Failed to open device `coolscan:/dev/scanner': Device busy.">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Failed to open device `coolscan:/dev/scanner': Device busy.</H1>
<!-- received="Thu Jan 18 19:38:41 2001" -->
<!-- isoreceived="20010119033841" -->
<!-- sent="Thu, 18 Jan 2001 22:34:03 -0500" -->
<!-- isosent="20010119033403" -->
<!-- name="Douglas Gilbert" -->
<!-- email="dgilbert@interlog.com" -->
<!-- subject="Re: Failed to open device `coolscan:/dev/scanner': Device busy." -->
<!-- id="3A67B5AB.4E9C1C0F@interlog.com" -->
<!-- inreplyto="ygen1co2u4x.fsf_-_@bfnet.com" -->
<STRONG>From:</STRONG> Douglas Gilbert (<A HREF="mailto:dgilbert@interlog.com?Subject=Re:%20Failed%20to%20open%20device%20`coolscan:/dev/scanner':%20Device%20busy.&In-Reply-To=&lt;3A67B5AB.4E9C1C0F@interlog.com&gt;"><EM>dgilbert@interlog.com</EM></A>)<BR>
<STRONG>Date:</STRONG> Thu Jan 18 2001 - 19:34:03 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0198.html">Hendrik Sattler: "Re: False Colors with Microtek Scanmaker X6 SCSI"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0196.html">dave-mlist@bfnet.com: "Failed to open device `coolscan:/dev/scanner': Device busy."</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0196.html">dave-mlist@bfnet.com: "Failed to open device `coolscan:/dev/scanner': Device busy."</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0202.html">Henning Meier-Geinitz: "Re: Failed to open device `coolscan:/dev/scanner': Device busy."</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#197">[ date ]</A>
<A HREF="index.html#197">[ thread ]</A>
<A HREF="subject.html#197">[ subject ]</A>
<A HREF="author.html#197">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
<A HREF="mailto:dave-mlist@bfnet.com?Subject=Re:%20Failed%20to%20open%20device%20`coolscan:/dev/scanner':%20Device%20busy.&In-Reply-To=&lt;3A67B5AB.4E9C1C0F@interlog.com&gt;">dave-mlist@bfnet.com</A> wrote:
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I've searched for some kind of explanation for this in the man pages,
</EM><BR>
<EM>&gt; to no avail. Can anyone suggest why scanimage thinks my scanner is
</EM><BR>
<EM>&gt; busy?
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; [root@home /root]# scanimage -V
</EM><BR>
<EM>&gt; scanimage (sane-backends) 1.0.4
</EM><BR>
<EM>&gt; [root@home /root]# scanimage -d coolscan:/dev/scanner
</EM><BR>
<EM>&gt; scanimage: open of device coolscan:/dev/scanner failed: Device busy
</EM><BR>
<EM>&gt; [root@home /root]# cat /proc/scsi/scsi
</EM><BR>
<EM>&gt; Attached devices:
</EM><BR>
<EM>&gt; Host: scsi0 Channel: 00 Id: 02 Lun: 00
</EM><BR>
<EM>&gt; Vendor: Nikon Model: LS-2000 Rev: 1.31
</EM><BR>
<EM>&gt; Type: Scanner ANSI SCSI revision: 02
</EM><BR>
<EM>&gt; [root@home /root]# ./sane-backends-1.0.4/tools/find-scanner
</EM><BR>
<EM>&gt; # Note that find-scanner will find any scanner that is connected
</EM><BR>
<EM>&gt; # to a SCSI bus. It will even find scanners that are not supported
</EM><BR>
<EM>&gt; # at all by SANE. It won't find a scanner that is connected to a
</EM><BR>
<EM>&gt; # parallel, USB or other non-SCSI port.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; find-scanner: found scanner &quot;Nikon LS-2000 1.31&quot; at device /dev/scanner
</EM><BR>
<EM>&gt; find-scanner: found scanner &quot;Nikon LS-2000 1.31&quot; at device /dev/sg0
</EM><BR>
<EM>&gt; find-scanner: found scanner &quot;Nikon LS-2000 1.31&quot; at device /dev/sga
</EM><BR>
<EM>&gt; [root@home /root]#
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; And here is the output of strace. I have no idea why it is looking
</EM><BR>
<EM>&gt; for the v4linux devices.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; [root@home /root]# strace scanimage -d coolscan:/dev/scanner
</EM><BR>
<EM>&gt; [snip]
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; open(&quot;coolscan:/dev/scanner&quot;, O_RDWR) = -1 ENOENT (No such file or directory)
</EM><BR>
<P>Strange, this open() took the &quot;-d&quot; argument too literally.
<BR>
It should be trying to open(&quot;/dev/scanner&quot;, ...).
<BR>
<P><EM>&gt; write(2, &quot;scanimage: open of device coolsc&quot;..., 68scanimage:
</EM><BR>
<EM>&gt; open of device coolscan:/dev/scanner failed: Device busy
</EM><BR>
<P>This &quot;Device busy&quot; is confusing since ENOENT means
<BR>
exactly what strace says: &quot;no such file or directory&quot;.
<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?Subject=Re:%20Failed%20to%20open%20device%20`coolscan:/dev/scanner':%20Device%20busy.&In-Reply-To=&lt;3A67B5AB.4E9C1C0F@interlog.com&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0198.html">Hendrik Sattler: "Re: False Colors with Microtek Scanmaker X6 SCSI"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0196.html">dave-mlist@bfnet.com: "Failed to open device `coolscan:/dev/scanner': Device busy."</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0196.html">dave-mlist@bfnet.com: "Failed to open device `coolscan:/dev/scanner': Device busy."</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0202.html">Henning Meier-Geinitz: "Re: Failed to open device `coolscan:/dev/scanner': Device busy."</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#197">[ date ]</A>
<A HREF="index.html#197">[ thread ]</A>
<A HREF="subject.html#197">[ subject ]</A>
<A HREF="author.html#197">[ 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>Thu Jan 18 2001 - 19:42:42 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>