kopia lustrzana https://gitlab.com/sane-project/website
164 wiersze
6.0 KiB
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=<20000925095805.A650@freeman.little-possums.net>"><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>>
|
|
</EM><BR>
|
|
<EM>> With sane-1.0.3 it should be quite simple. You get the USB files (from
|
|
</EM><BR>
|
|
<EM>> <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>> 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>> > [snapscan] add_device: error opening device /dev/usb/scanner0:
|
|
</EM><BR>
|
|
<EM>> > Invalid argument
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> That looks like an easy one... Does the device (/dev/usb/scanner0) exist?
|
|
</EM><BR>
|
|
<P>Yes:
|
|
<BR>
|
|
[tim@freeman tim]$ ls -l /dev/usb/scanner0
|
|
<BR>
|
|
crw-rw-rw- 1 root root 180, 48 Jul 19 14:21 /dev/usb/scanner0
|
|
<BR>
|
|
[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>> At least on my machine (2.2.16 with USB backport) the correct device
|
|
</EM><BR>
|
|
<EM>> is /dev/usbscanner. You have to supply the devicename in
|
|
</EM><BR>
|
|
<EM>> snapscan.conf, e.g.
|
|
</EM><BR>
|
|
<P> [tim@freeman tim]$ cat /usr/local/etc/sane.d/snapscan.conf
|
|
<BR>
|
|
scsi AGFA
|
|
<BR>
|
|
scsi COLOR
|
|
<BR>
|
|
scsi Color
|
|
<BR>
|
|
/dev/usb/scanner0
|
|
<BR>
|
|
[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> [tim@freeman tim]$ export SANE_DEBUG_SNAPSCAN=255
|
|
<BR>
|
|
[tim@freeman tim]$ scanimage
|
|
<BR>
|
|
[sanei_debug] Setting debug level of snapscan to 255.
|
|
<BR>
|
|
[snapscan] sane_snapscan_init
|
|
<BR>
|
|
[snapscan] add_device(/dev/usb/scanner0)
|
|
<BR>
|
|
[snapscan] usb_open(/dev/usb/scanner0)
|
|
<BR>
|
|
[snapscan] mini_inquiry
|
|
<BR>
|
|
Segmentation fault (core dumped)
|
|
<BR>
|
|
[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=<20000925095805.A650@freeman.little-possums.net>">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>
|