Cheers. I'm a sane/xsane newbie with a problem. Any
advice/solutions/things to try will be welcomed.
Thanks,
Reece
The problem
-----------
scanimage works fine (great, in fact), but xscanimage and xsane both claim
that the scanner is busy.
The environment
---------------
RedHat 7.1
sane, xsane installed from sources, NOT rpms
sane-backends & -frontends 1.0.4
xsane-0.75
epson 1240U photo via usb
Sample invocations and output
-----------------------------
$ scanimage -L
device `epson:/dev/usbscanner' is a Epson Perfection1240 flatbed scanner
$ scanimage --format=tiff >image.tiff
(no problems)
$ xscanimage
[xscanimage] No scanners were identified...
$ xscanimage epson:/dev/usbscanner
(dialog says "Failed to open device `epson:/dev/usbscanner': Device busy.")
$ xsane
(dialog says "xsane: no devices available")
$ xsane epson:/dev/usbscanner
(dialog says "Failed to open device `epson:/dev/usbscanner': Device busy."
just like xscan image)
What I've tried and other info
------------------------------
* I've verified that there are no other versions of sane or xsane around
* I've pored over READMEs, FAQs, etc.
* DEBUG flags:
$ SANE_DEBUG_DLL=255 SANE_DEBUG_V4L=255 SANE_DEBUG_EPSON=255 \
/usr/local/bin/xsane epson:/dev/usbscanner
[sanei_debug] Setting debug level of v4l to 255.
[v4l] sane_init: failed to open device `/dev/bttv0'
[v4l] sane_init: failed to open device `/dev/video0'
[v4l] sane_init: failed to open device `/dev/video1'
[v4l] sane_init: failed to open device `/dev/video2'
[v4l] sane_init: failed to open device `/dev/video3'
[v4l] open(epson:/dev/usbscanner)
^^^^^^^^^^^^^^^^^^^^^
Hmm, that's suspicious. Is that trying to open a filed called
`epson:/dev/usbscanner'?
* strace:
$ ( strace /usr/local/bin/xsane epson:/dev/usbscanner ) >log 2>&1
And log says:
execve("/usr/local/bin/xsane", ["/usr/local/bin/xsane", "epson:/dev/usbscanner"], [/* 72 vars */]) = 0
[snip]
open("epson:/dev/usbscanner", O_RDWR) = -1 ENOENT (No such file or directory)
^^^^^^^^^^^^^^^^^^^^^
Indeed, it's trying to open this literally.
(As a trick, I tried symlinking `./epson:usbscanner' to this, but no luck)
* libraries:
$ ldd /usr/local/bin/xsane
libsane.so.1 => /usr/local/lib/sane/libsane.so.1 (0x40024000)
libnsl.so.1 => /lib/libnsl.so.1 (0x4002a000)
libm.so.6 => /lib/i686/libm.so.6 (0x40041000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40065000)
libgimpui-1.2.so.0 => /usr/lib/libgimpui-1.2.so.0 (0x40084000)
libgimp-1.2.so.0 => /usr/lib/libgimp-1.2.so.0 (0x400aa000)
libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x400c9000)
libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x401ff000)
libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x40235000)
libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x40238000)
libdl.so.2 => /lib/libdl.so.2 (0x4025d000)
libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x40261000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40269000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40277000)
libpng.so.2 => /usr/lib/libpng.so.2 (0x40357000)
libtiff.so.3 => /usr/lib/libtiff.so.3 (0x40379000)
libz.so.1 => /usr/lib/libz.so.1 (0x403bc000)
libc.so.6 => /lib/i686/libc.so.6 (0x403ca000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
-- Reece Hart, http://www.in-machina.com/~reece/, PGP:0xD178AAF9-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
This archive was generated by hypermail 2b29 : Thu Apr 19 2001 - 19:28:52 PDT