sane-project-website/old-archive/2000-09/0248.html

164 wiersze
6.0 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: will my scanner work</TITLE>
<META NAME="Author" CONTENT="Timothy Little (tim@lilly-villa.little-possums.net)">
<META NAME="Subject" CONTENT="Re: will my scanner work">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: will my scanner work</H1>
<!-- received="Mon, 25 Sep 2000 09:58:05 +1100" -->
<!-- isoreceived="20000924225805" -->
<!-- sent="Mon, 25 Sep 2000 09:58:05 +1100" -->
<!-- isosent="20000924225805" -->
<!-- name="Timothy Little" -->
<!-- email="tim@lilly-villa.little-possums.net" -->
<!-- subject="Re: will my scanner work" -->
<!-- id="20000925095805.A650@freeman.little-possums.net" -->
<!-- inreplyto="00092412304300.01062@oliverspc" -->
<STRONG>From:</STRONG> Timothy Little (<A HREF="mailto:tim@lilly-villa.little-possums.net?Subject=Re:%20will%20my%20scanner%20work&In-Reply-To=&lt;20000925095805.A650@freeman.little-possums.net&gt;"><EM>tim@lilly-villa.little-possums.net</EM></A>)<BR>
<STRONG>Date:</STRONG> Sun Sep 24 2000 - 15:58:05 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0249.html">Timothy Little: "Re: will my scanner work"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0247.html">Henning Meier-Geinitz: "Re: scanmagic 4800p doesnt work"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0240.html">Oliver Schwartz: "Re: will my scanner work"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0263.html">Oliver Schwartz: "Re: will my scanner work"</A>
<LI><STRONG>Next in thread:</STRONG> <A HREF="0242.html">Lawrence Glaister: "Re: will my scanner work"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0263.html">Oliver Schwartz: "Re: will my scanner work"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#248">[ date ]</A>
<A HREF="index.html#248">[ thread ]</A>
<A HREF="subject.html#248">[ subject ]</A>
<A HREF="author.html#248">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
On Sun, Sep 24, 2000 at 12:23:42PM +0200, Oliver Schwartz wrote:
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; With sane-1.0.3 it should be quite simple. You get the USB files (from
</EM><BR>
<EM>&gt; <A HREF="http://www.ginko.de/user/oschwartz/snapscan/snapscan-usb.tgz">http://www.ginko.de/user/oschwartz/snapscan/snapscan-usb.tgz</A>), remove the
</EM><BR>
<EM>&gt; comments for USB includes from snapscan.c and snapscan.h and recompile.
</EM><BR>
<P>OK, I've done that. Certainly easier than trying to hand-patch!
<BR>
<P><EM>&gt; &gt; [snapscan] add_device: error opening device /dev/usb/scanner0:
</EM><BR>
<EM>&gt; &gt; Invalid argument
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; That looks like an easy one... Does the device (/dev/usb/scanner0) exist?
</EM><BR>
<P>Yes:
<BR>
&nbsp;[tim@freeman tim]$ ls -l /dev/usb/scanner0
<BR>
&nbsp;crw-rw-rw- 1 root root 180, 48 Jul 19 14:21 /dev/usb/scanner0
<BR>
&nbsp;[tim@freeman tim]$
<BR>
<P>From the documentation in /usrc/src/linux/usb/scanner.txt, it seems to
<BR>
have the correct major and minor numbers.
<BR>
<P><EM>&gt; At least on my machine (2.2.16 with USB backport) the correct device
</EM><BR>
<EM>&gt; is /dev/usbscanner. You have to supply the devicename in
</EM><BR>
<EM>&gt; snapscan.conf, e.g.
</EM><BR>
<P>&nbsp;[tim@freeman tim]$ cat /usr/local/etc/sane.d/snapscan.conf
<BR>
&nbsp;scsi AGFA
<BR>
&nbsp;scsi COLOR
<BR>
&nbsp;scsi Color
<BR>
&nbsp;/dev/usb/scanner0
<BR>
&nbsp;[tim@freeman tim]$
<BR>
<P>Interestingly, I now get a different problem. This time I started
<BR>
with the scanner 'awake' when running scanimage. That is, the light
<BR>
next to the front button was on.
<BR>
<P>&nbsp;[tim@freeman tim]$ export SANE_DEBUG_SNAPSCAN=255
<BR>
&nbsp;[tim@freeman tim]$ scanimage
<BR>
&nbsp;[sanei_debug] Setting debug level of snapscan to 255.
<BR>
&nbsp;[snapscan] sane_snapscan_init
<BR>
&nbsp;[snapscan] add_device(/dev/usb/scanner0)
<BR>
&nbsp;[snapscan] usb_open(/dev/usb/scanner0)
<BR>
&nbsp;[snapscan] mini_inquiry
<BR>
&nbsp;Segmentation fault (core dumped)
<BR>
&nbsp;[tim@freeman tim]$
<BR>
<P>What could be causing this? I don't seem to be able to find the
<BR>
problem using GDB, it doesn't even reach main() before dumping core
<BR>
and I can't set a breakpoint. I'm not really experienced at
<BR>
diagnosing library problems, which this appears to be.
<BR>
<P>This time it seems to succeed in opening the scanner device, so I
<BR>
guess I'm making progress of a sort. :^/
<BR>
<P>- Tim
<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:%20will%20my%20scanner%20work&In-Reply-To=&lt;20000925095805.A650@freeman.little-possums.net&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0249.html">Timothy Little: "Re: will my scanner work"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0247.html">Henning Meier-Geinitz: "Re: scanmagic 4800p doesnt work"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0240.html">Oliver Schwartz: "Re: will my scanner work"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0263.html">Oliver Schwartz: "Re: will my scanner work"</A>
<LI><STRONG>Next in thread:</STRONG> <A HREF="0242.html">Lawrence Glaister: "Re: will my scanner work"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0263.html">Oliver Schwartz: "Re: will my scanner work"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#248">[ date ]</A>
<A HREF="index.html#248">[ thread ]</A>
<A HREF="subject.html#248">[ subject ]</A>
<A HREF="author.html#248">[ 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 Sep 24 2000 - 15:43:38 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>