sane-project-website/old-archive/2000-01/0127.html

201 wiersze
6.9 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: Problems with XSane and Mustek backend</TITLE>
<META NAME="Author" CONTENT="Henning Meier-Geinitz (hmg-ml@gmx.de)">
<META NAME="Subject" CONTENT="Problems with XSane and Mustek backend">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Problems with XSane and Mustek backend</H1>
<!-- received="Mon Jan 17 15:38:31 2000" -->
<!-- isoreceived="20000117233831" -->
<!-- sent="Tue, 18 Jan 2000 00:40:42 +0100" -->
<!-- isosent="20000117234042" -->
<!-- name="Henning Meier-Geinitz" -->
<!-- email="hmg-ml@gmx.de" -->
<!-- subject="Problems with XSane and Mustek backend" -->
<!-- id="20000118004042.A305@hmg1.vortex.robin.de" -->
<STRONG>From:</STRONG> Henning Meier-Geinitz (<A HREF="mailto:hmg-ml@gmx.de?Subject=Re:%20Problems%20with%20XSane%20and%20Mustek%20backend&In-Reply-To=&lt;20000118004042.A305@hmg1.vortex.robin.de&gt;"><EM>hmg-ml@gmx.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Mon Jan 17 2000 - 15:40:42 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0128.html">Petter Reinholdtsen: "Re: Test"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0126.html">Bill Wohler: "Re: Dark scans (HP Photosmart)"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0159.html">Henning Meier-Geinitz: "Re: Problems with XSane and Mustek backend"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0159.html">Henning Meier-Geinitz: "Re: Problems with XSane and Mustek backend"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#127">[ date ]</A>
<A HREF="index.html#127">[ thread ]</A>
<A HREF="subject.html#127">[ subject ]</A>
<A HREF="author.html#127">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hello!
<BR>
<P>I am using the following configuration:
<BR>
<P>SANE 1.0.1
<BR>
XSane 0.51
<BR>
GTK 1.2.1
<BR>
(everything compiled with gcc 2.7.2.3)
<BR>
glibc-2.0.7pre6
<BR>
Linux 2.2.14pre18 (also tested with 2.2.10)
<BR>
Mustek Paragon 600 II N (scanner with its own quasi parallel port io card,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;it is supported by sane)
<BR>
<P>I have the following problems:
<BR>
<P>1)
<BR>
<P>Everytime I want to scan something the frontend hangs just before the end of
<BR>
the scan. The scanner lamp goes back to the start of the scan (and is turned
<BR>
off after some minutes). The frontend thinks the scan isn't over yet, e.g.
<BR>
xsane shows its progressbar at nearly 100% and every widget but the &quot;cancel&quot;
<BR>
button is gray. I tried to change color/gray, resolution and scan window; it
<BR>
doesn't help. If I push the &quot;Cancel&quot; button nothing happens (the sane_cancel
<BR>
function *is* called, however). CPU usage is 100%. The problem exists with
<BR>
both xsane and xscanimage but not with scanimage. Here is a debug log:
<BR>
<P>hmg@hmg1:~ &gt; xsane
<BR>
[sanei_init_debug]: Setting debug level of mustek to 255.
<BR>
[mustek] attach: opening 0x32b as scsi device
<BR>
[mustek] dev_open: Invalid argument: can't open 0x32b as a SCSI device
<BR>
[mustek] attach: sending INQUIRY
<BR>
[mustek] attach: firmware revision 1.01
<BR>
[mustek] attach: cover open
<BR>
[mustek] attach: found Mustek scanner model MFC-06000CZ (flatbed scanner), 1-pass
<BR>
[mustek] dev_open: Invalid argument: can't open 0x32b as a SCSI device
<BR>
[mustek] do_inquiry: sending INQUIRY
<BR>
[mustek] line_distance: got factor=65535, (r/g/b)=(0/0/0)
<BR>
[mustek] get_image_status: bytes_per_line=40, lines=38
<BR>
[mustek] lines_per_buffer=819, bytes_per_line=40
<BR>
[mustek] reader: about to read 1520 bytes
<BR>
[mustek] reader_process: line=38 (num_lines=38), num_reqs=1
<BR>
[mustek] reader_process: 1520 bytes read.
<BR>
[mustek] mustek.output_data: data=0x813dca8, lpb=38, bpl=40, extra=0x8145ca8
<BR>
[mustek] read 1520 bytes
<BR>
[mustek] read -1 bytes
<BR>
<P>The interesting thing is that this all works with Linux kernels in the 2.0
<BR>
series. I tried 2.0.36 without any problems.
<BR>
<P>I'm not very good at reading C source, so the following could be quite
<BR>
wrong: I looked into the source (mustek.c) and I think the problem is related
<BR>
to sane_read and especially sane_read returning SANE_STATUS_GOOD with a len
<BR>
of 0. That shouldn't happen in the blocking case (if I understand the SANE
<BR>
standard correctly) but it does. XSane tries to use nonblocking mode but the
<BR>
problem does exist there, too. After the first return of sane_read with
<BR>
SANE_STATUS_GOOD and len=0 sane_read doesn't seem to get called again.
<BR>
Instead the frontend seems to get stuck somewhere.
<BR>
<P><P><P>2)
<BR>
<P>/dev/port access doesn't work anymore (with any frontend). It did work with
<BR>
Linux 2.0.36. The permissions should be set correctly. I'm using inb/outb
<BR>
now but I need to be root for that and don't like that :-)
<BR>
<P>debug log as normal user:
<BR>
<P>hmg@hmg1:~ &gt; xsane
<BR>
[sanei_init_debug]: Setting debug level of mustek to 255.
<BR>
[mustek] attach: opening 0x32b as scsi device
<BR>
[mustek] dev_open: Invalid argument: can't open 0x32b as a SCSI device
<BR>
[sanei_init_debug]: Setting debug level of sanei_ab306 to 255.
<BR>
[sanei_ab306] sanei_ab306_ioport: using /dev/port access
<BR>
[mustek] dev_open: Error during device I/O: can't open 0x32b as a parallel-port device
<BR>
<P><P>Any ideas about that? Has anything been changed at /dev/port in the Linux
<BR>
2.2 series?
<BR>
<P>Bye,
<BR>
&nbsp;&nbsp;Henning
<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:%20Problems%20with%20XSane%20and%20Mustek%20backend&In-Reply-To=&lt;20000118004042.A305@hmg1.vortex.robin.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0128.html">Petter Reinholdtsen: "Re: Test"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0126.html">Bill Wohler: "Re: Dark scans (HP Photosmart)"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0159.html">Henning Meier-Geinitz: "Re: Problems with XSane and Mustek backend"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0159.html">Henning Meier-Geinitz: "Re: Problems with XSane and Mustek backend"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#127">[ date ]</A>
<A HREF="index.html#127">[ thread ]</A>
<A HREF="subject.html#127">[ subject ]</A>
<A HREF="author.html#127">[ 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>Mon Jan 17 2000 - 15:46:44 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>