sane-project-website/old-archive/1998-05/0273.html

138 wiersze
5.7 KiB
HTML

<!-- received="Tue May 26 19:52:08 1998 PDT" -->
<!-- sent="Tue, 26 May 1998 21:54:24 +0100" -->
<!-- name="Derek Fountain" -->
<!-- email="derek@fortstar.demon.co.uk" -->
<!-- subject="(no subject)" -->
<!-- id="199805262054.VAA00650@fortstar.demon.co.uk" -->
<!-- inreplyto="" -->
<title>sane-devel: (no subject)</title>
<h1>(no subject)</h1>
<b>Derek Fountain</b> (<a href="mailto:derek@fortstar.demon.co.uk"><i>derek@fortstar.demon.co.uk</i></a>)<br>
<i>Tue, 26 May 1998 21:54:24 +0100</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#273">[ date ]</a><a href="index.html#273">[ thread ]</a><a href="subject.html#273">[ subject ]</a><a href="author.html#273">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0274.html">Oliver Neukum: "failure with microtek scanmaker 600gs"</a>
<li> <b>Previous message:</b> <a href="0272.html">Kjetil Torgrim Homme: "Agfa Arcus"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
I'm having severe trouble getting sane-0.73 to work with my Epson GT-5000<br>
scanner. I know the Epson code is still in alpha, but I reckon I should be<br>
getting more joy than I am.<br>
<p>
My system is an Intel Linux 2.0.33, with libc 5.3.12. I compiled the code<br>
with gcc 2.7.2. I have ensured my kernel has SCSI support, both for disks<br>
(I have a SCSI disk) and additional devices.<br>
<p>
I run with the default setup which gives libsane pointed at libsane-dll<br>
and, after a successful compile, the findscanner utility confirms my scanner<br>
is there:<br>
<p>
<i>&gt; tools/findscanner</i><br>
find-scanner: found processor "EPSON SCANNER GT-5000 1.07" at device /dev/scanner<br>
find-scanner: found processor "EPSON SCANNER GT-5000 1.07" at device /dev/sga<br>
<p>
I commented all the lines out of the dll.conf file except the "epson" line, so<br>
there should be no confusion there, and epson.conf just has a single<br>
"/dev/scanner" line.<br>
<p>
All this looks reasonable but when I try to list the devices, bad things happen:<br>
<p>
<i>&gt; scanimage --list-devices</i><br>
Segmentation fault (core dumped)<br>
<p>
Actually, a core dump is not the guaranteed result of this. Sometimes it comes<br>
back immediately after turning the scanner error light on, sometimes the scanner<br>
error light comes on after a few seconds, sometimes the error light flashes<br>
instead of remaining steady. Sometimes the error light doesn't come on at all.<br>
<p>
xscanimage doesn't do much better:<br>
<p>
<i>&gt; xscanimage </i><br>
xscanimage: no devices available.<br>
<p>
I tried setting the debug variables in the evnivronment:<br>
<p>
<i>&gt; export SANE_DEBUG_DLL=128</i><br>
<i>&gt; export SANE_DEBUG_EPSON=128</i><br>
<i>&gt; export SANE_DEBUG_SANEI_SCSI=128</i><br>
<p>
The best I've ever got out of this (with scanimage) is:<br>
<p>
<i>&gt; scanimage --list-devices</i><br>
[sanei_init_debug]: Setting debug level of dll to 128.<br>
[dll] adding backend epson<br>
[dll] loading backend epson<br>
[dll] dlopen()ing `/usr/local/lib/sane/libsane-epson.so.0'<br>
[dll] init: initializing backend `epson'<br>
[sanei_init_debug]: Setting debug level of epson to 128.<br>
[epson] sane_init: sane 0.73<br>
[epson] sane_init, &gt;/dev/scanner<br>
&lt;<br>
[epson] sane_init, &gt;/dev/scanner&lt;<br>
[epson] attach: opening /dev/scanner<br>
[sanei_init_debug]: Setting debug level of sanei_scsi to 128.<br>
[epson] attach: sending INQUIRY<br>
[sanei_scsi] scsi_req_enter: entered 0x804cb58<br>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x804cb58<br>
[sanei_scsi] sanei_scsi.issue: 0x804cb58<br>
[sanei_scsi] sanei_scsi_req_wait: read 72 bytes<br>
[sanei_scsi] scsi_req_enter: entered 0x804cb58<br>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x804cb58<br>
[sanei_scsi] sanei_scsi.issue: 0x804cb58<br>
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes<br>
[sanei_scsi] scsi_req_enter: entered 0x804cb58<br>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x804cb58<br>
[sanei_scsi] sanei_scsi.issue: 0x804cb58<br>
[sanei_scsi] sanei_scsi_req_wait: read 37 bytes<br>
[epson] code 15<br>
[epson] type 00<br>
[epson] level 00<br>
[sanei_scsi] scsi_req_enter: entered 0x804cb58<br>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x804cb58<br>
[sanei_scsi] sanei_scsi.issue: 0x804cb58<br>
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes<br>
[sanei_scsi] scsi_req_enter: entered 0x804cb58<br>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x804cb58<br>
[sanei_scsi] sanei_scsi.issue: 0x804cb58<br>
[sanei_scsi] sanei_scsi_req_wait: read 40 bytes<br>
[epson] attach: device doesn't look like an Epson scanner<br>
[dll] exiting<br>
[dll] calling backend `epson's exit function<br>
<p>
<p>
It normally exits with something like:<br>
<p>
...<br>
[sanei_scsi] sanei_scsi.issue: 0x804cb58<br>
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes<br>
[sanei_scsi] sanei_scsi_req_wait: SCSI command complained: Unknown error<br>
Segmentation fault (core dumped)<br>
<p>
I tried using ddd to look at the code, but got lost in some horrible<br>
macros. SCSI programming isn't my strong point anyhow.<br>
<p>
Any advice on what I'm doing wrong would be greatly appreciated...<br>
<p>
Del<br>
<a href="mailto:derek@fortstar.demon.co.uk">derek@fortstar.demon.co.uk</a><br>
<p>
<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="0274.html">Oliver Neukum: "failure with microtek scanmaker 600gs"</a>
<li> <b>Previous message:</b> <a href="0272.html">Kjetil Torgrim Homme: "Agfa Arcus"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>