sane-project-website/old-archive/2001-04/0183.html

229 wiersze
8.6 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: Q: xsane says &quot;device busy&quot;, scanimage wo</TITLE>
<META NAME="Author" CONTENT="Reece Hart (reece@in-machina.com)">
<META NAME="Subject" CONTENT="Q: xsane says &quot;device busy&quot;, scanimage works fine">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Q: xsane says &quot;device busy&quot;, scanimage works fine</H1>
<!-- received="Thu Apr 19 19:27:40 2001" -->
<!-- isoreceived="20010420022740" -->
<!-- sent="Thu, 19 Apr 2001 22:23:34 -0400 (EDT)" -->
<!-- isosent="20010420022334" -->
<!-- name="Reece Hart" -->
<!-- email="reece@in-machina.com" -->
<!-- subject="Q: xsane says &quot;device busy&quot;, scanimage works fine" -->
<!-- id="Pine.LNX.4.33.0104192158480.24958-100000@localhost.localdomain" -->
<STRONG>From:</STRONG> Reece Hart (<A HREF="mailto:reece@in-machina.com?Subject=Re:%20Q:%20xsane%20says%20&quot;device%20busy&quot;,%20scanimage%20works%20fine&In-Reply-To=&lt;Pine.LNX.4.33.0104192158480.24958-100000@localhost.localdomain&gt;"><EM>reece@in-machina.com</EM></A>)<BR>
<STRONG>Date:</STRONG> Thu Apr 19 2001 - 19:23:34 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0184.html">Ulrich Deiters: "Re: ./configure xsane is failing?"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0182.html">Marc Parrish: "./configure xsane is failing?"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0186.html">Oliver Rauch: "Re: Q: xsane says &quot;device busy&quot;, scanimage works fine"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0186.html">Oliver Rauch: "Re: Q: xsane says &quot;device busy&quot;, scanimage works fine"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0190.html">Henning Meier-Geinitz: "Re: Q: xsane says &quot;device busy&quot;, scanimage works fine"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#183">[ date ]</A>
<A HREF="index.html#183">[ thread ]</A>
<A HREF="subject.html#183">[ subject ]</A>
<A HREF="author.html#183">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Cheers. I'm a sane/xsane newbie with a problem. Any
<BR>
advice/solutions/things to try will be welcomed.
<BR>
<P>Thanks,
<BR>
Reece
<BR>
<P><P>The problem
<BR>
-----------
<BR>
scanimage works fine (great, in fact), but xscanimage and xsane both claim
<BR>
that the scanner is busy.
<BR>
<P><P>The environment
<BR>
---------------
<BR>
&nbsp;&nbsp;RedHat 7.1
<BR>
&nbsp;&nbsp;sane, xsane installed from sources, NOT rpms
<BR>
&nbsp;&nbsp;sane-backends &amp; -frontends 1.0.4
<BR>
&nbsp;&nbsp;xsane-0.75
<BR>
&nbsp;&nbsp;epson 1240U photo via usb
<BR>
<P><P>Sample invocations and output
<BR>
-----------------------------
<BR>
$ scanimage -L
<BR>
device `epson:/dev/usbscanner' is a Epson Perfection1240 flatbed scanner
<BR>
<P>$ scanimage --format=tiff &gt;image.tiff
<BR>
(no problems)
<BR>
<P>$ xscanimage
<BR>
[xscanimage] No scanners were identified...
<BR>
<P>$ xscanimage epson:/dev/usbscanner
<BR>
(dialog says &quot;Failed to open device `epson:/dev/usbscanner': Device busy.&quot;)
<BR>
<P>$ xsane
<BR>
(dialog says &quot;xsane: no devices available&quot;)
<BR>
<P>$ xsane epson:/dev/usbscanner
<BR>
(dialog says &quot;Failed to open device `epson:/dev/usbscanner': Device busy.&quot;
<BR>
just like xscan image)
<BR>
<P><P>What I've tried and other info
<BR>
------------------------------
<BR>
* I've verified that there are no other versions of sane or xsane around
<BR>
<P>* I've pored over READMEs, FAQs, etc.
<BR>
<P>* DEBUG flags:
<BR>
$ SANE_DEBUG_DLL=255 SANE_DEBUG_V4L=255 SANE_DEBUG_EPSON=255 \
<BR>
&nbsp;&nbsp;/usr/local/bin/xsane epson:/dev/usbscanner
<BR>
[sanei_debug] Setting debug level of v4l to 255.
<BR>
[v4l] sane_init: failed to open device `/dev/bttv0'
<BR>
[v4l] sane_init: failed to open device `/dev/video0'
<BR>
[v4l] sane_init: failed to open device `/dev/video1'
<BR>
[v4l] sane_init: failed to open device `/dev/video2'
<BR>
[v4l] sane_init: failed to open device `/dev/video3'
<BR>
[v4l] open(epson:/dev/usbscanner)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^^^^^^^^^^^^^^^^^^^^^
<BR>
Hmm, that's suspicious. Is that trying to open a filed called
<BR>
`epson:/dev/usbscanner'?
<BR>
<P><P>* strace:
<BR>
$ ( strace /usr/local/bin/xsane epson:/dev/usbscanner ) &gt;log 2&gt;&amp;1
<BR>
And log says:
<BR>
&nbsp;&nbsp;execve(&quot;/usr/local/bin/xsane&quot;, [&quot;/usr/local/bin/xsane&quot;, &quot;epson:/dev/usbscanner&quot;], [/* 72 vars */]) = 0
<BR>
&nbsp;&nbsp;[snip]
<BR>
&nbsp;&nbsp;open(&quot;epson:/dev/usbscanner&quot;, O_RDWR) = -1 ENOENT (No such file or directory)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^^^^^^^^^^^^^^^^^^^^^
<BR>
Indeed, it's trying to open this literally.
<BR>
(As a trick, I tried symlinking `./epson:usbscanner' to this, but no luck)
<BR>
<P>* libraries:
<BR>
$ ldd /usr/local/bin/xsane
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libsane.so.1 =&gt; /usr/local/lib/sane/libsane.so.1 (0x40024000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libnsl.so.1 =&gt; /lib/libnsl.so.1 (0x4002a000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libm.so.6 =&gt; /lib/i686/libm.so.6 (0x40041000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libjpeg.so.62 =&gt; /usr/lib/libjpeg.so.62 (0x40065000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libgimpui-1.2.so.0 =&gt; /usr/lib/libgimpui-1.2.so.0 (0x40084000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libgimp-1.2.so.0 =&gt; /usr/lib/libgimp-1.2.so.0 (0x400aa000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libgtk-1.2.so.0 =&gt; /usr/lib/libgtk-1.2.so.0 (0x400c9000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libgdk-1.2.so.0 =&gt; /usr/lib/libgdk-1.2.so.0 (0x401ff000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libgmodule-1.2.so.0 =&gt; /usr/lib/libgmodule-1.2.so.0 (0x40235000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libglib-1.2.so.0 =&gt; /usr/lib/libglib-1.2.so.0 (0x40238000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libdl.so.2 =&gt; /lib/libdl.so.2 (0x4025d000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libXi.so.6 =&gt; /usr/X11R6/lib/libXi.so.6 (0x40261000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libXext.so.6 =&gt; /usr/X11R6/lib/libXext.so.6 (0x40269000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libX11.so.6 =&gt; /usr/X11R6/lib/libX11.so.6 (0x40277000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libpng.so.2 =&gt; /usr/lib/libpng.so.2 (0x40357000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libtiff.so.3 =&gt; /usr/lib/libtiff.so.3 (0x40379000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libz.so.1 =&gt; /usr/lib/libz.so.1 (0x403bc000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libc.so.6 =&gt; /lib/i686/libc.so.6 (0x403ca000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/lib/ld-linux.so.2 =&gt; /lib/ld-linux.so.2 (0x40000000)
<BR>
<P><P><PRE>
--
Reece Hart, <A HREF="http://www.in-machina.com/~reece/">http://www.in-machina.com/~reece/</A>, PGP:0xD178AAF9
<P><P>--
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:%20Q:%20xsane%20says%20&quot;device%20busy&quot;,%20scanimage%20works%20fine&In-Reply-To=&lt;Pine.LNX.4.33.0104192158480.24958-100000@localhost.localdomain&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0184.html">Ulrich Deiters: "Re: ./configure xsane is failing?"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0182.html">Marc Parrish: "./configure xsane is failing?"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0186.html">Oliver Rauch: "Re: Q: xsane says &quot;device busy&quot;, scanimage works fine"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0186.html">Oliver Rauch: "Re: Q: xsane says &quot;device busy&quot;, scanimage works fine"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0190.html">Henning Meier-Geinitz: "Re: Q: xsane says &quot;device busy&quot;, scanimage works fine"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#183">[ date ]</A>
<A HREF="index.html#183">[ thread ]</A>
<A HREF="subject.html#183">[ subject ]</A>
<A HREF="author.html#183">[ 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 Apr 19 2001 - 19:28:52 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>