sane-project-website/old-archive/2001-05/0178.html

243 wiersze
9.3 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: HP 5200C -- segfaults and &quot;inappropriate i</TITLE>
<META NAME="Author" CONTENT="Claus Ladekjær Wilson (clw@get2net.dk)">
<META NAME="Subject" CONTENT="Re: HP 5200C -- segfaults and &quot;inappropriate ioctl for device&quot;">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: HP 5200C -- segfaults and &quot;inappropriate ioctl for device&quot;</H1>
<!-- received="Sun May 13 09:36:56 2001" -->
<!-- isoreceived="20010513163656" -->
<!-- sent="Sun, 13 May 2001 18:51:14 +0000" -->
<!-- isosent="20010513185114" -->
<!-- name="Claus Ladekjær Wilson" -->
<!-- email="clw@get2net.dk" -->
<!-- subject="Re: HP 5200C -- segfaults and &quot;inappropriate ioctl for device&quot;" -->
<!-- id="01051318511401.00746@localhost.localdomain" -->
<!-- inreplyto="01050914160703.01178@eclipse" -->
<STRONG>From:</STRONG> Claus Ladekjær Wilson (<A HREF="mailto:clw@get2net.dk?Subject=Re:%20HP%205200C%20--%20segfaults%20and%20&quot;inappropriate%20ioctl%20for%20device&quot;&In-Reply-To=&lt;01051318511401.00746@localhost.localdomain&gt;"><EM>clw@get2net.dk</EM></A>)<BR>
<STRONG>Date:</STRONG> Sun May 13 2001 - 11:51:14 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0179.html">Henning Meier-Geinitz: "Re: Hope you don't mind a HELP-ME! post?"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0177.html">Henning Meier-Geinitz: "Re: scanimage -T using Purify..."</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0149.html">Micah Yoder: "HP 5200C -- segfaults and &quot;inappropriate ioctl for device&quot;"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0188.html">Micah Yoder: "Re: HP 5200C -- segfaults and &quot;inappropriate ioctl for device&quot;"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0188.html">Micah Yoder: "Re: HP 5200C -- segfaults and &quot;inappropriate ioctl for device&quot;"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0193.html">Henning Meier-Geinitz: "Re: HP 5200C -- segfaults and &quot;inappropriate ioctl for device&quot;"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#178">[ date ]</A>
<A HREF="index.html#178">[ thread ]</A>
<A HREF="subject.html#178">[ subject ]</A>
<A HREF="author.html#178">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
scanimage has an option missing in xsane and xscanimage telling which the
<BR>
device to use. I use this command. This produces a rather large file which
<BR>
can afterwards be edited of course.
<BR>
scanimage -d hp:/dev/usb/scanner0 --mode Color --format TIFF --verbose
<BR>
--brightness 50 &gt; /home/claus/work/claus-scan.tiff
<BR>
<P><P>Den onsdag 09 Maj 2001 18:16 skrev du:
<BR>
<EM>&gt; Anyone get this thing working with USB? It's driving me nuts. I think
</EM><BR>
<EM>&gt; it's configured correctly, but scanimage segfaults. Below is the last part
</EM><BR>
<EM>&gt; of the strace for scanimage, and hopefully it will help someone know what's
</EM><BR>
<EM>&gt; going on here.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Config info:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; [root@eclipse /dev]# l *scanner
</EM><BR>
<EM>&gt; lrwxrwxrwx 1 root root 10 May 4 20:41 scanner -&gt;
</EM><BR>
<EM>&gt; usbscanner crw-rw-rw- 1 root root 180, 48 May 4 19:54
</EM><BR>
<EM>&gt; usbscanner
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; [root@eclipse /dev]# cat /etc/sane.d/hp.conf
</EM><BR>
<EM>&gt; /dev/usbscanner
</EM><BR>
<EM>&gt; option connect-device
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; My kernel is the Red Hat 7.1 kernel, which is 2.4.2+&quot;bugfixes&quot;. I have the
</EM><BR>
<EM>&gt; usbcore, usb-uhci, and scanner modules loaded. The kernel does see the
</EM><BR>
<EM>&gt; scanner and it shows up in usbview, however one strange thing is that
</EM><BR>
<EM>&gt; reading the list of SCSI devices (with usbview or by catting
</EM><BR>
<EM>&gt; /proc/bus/usb/devices) is VERY slow whenever the scanner is plugged in.
</EM><BR>
<EM>&gt; Like, it takes 10-20 seconds. When the scanner is not plugged in, it's
</EM><BR>
<EM>&gt; instantaneous. My SanDisk SDDR-31 USB CompactFlash reader works great, and
</EM><BR>
<EM>&gt; there is no delay accessing info while it is plugged in without the
</EM><BR>
<EM>&gt; scanner.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Also, the sample program in the scanner.txt file in the kernel does seem to
</EM><BR>
<EM>&gt; work, but it also takes a long time before the scanning starts.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I've tried SANE versions 1.0.3 shipped with Ximian GNOME and 1.0.4 compiled
</EM><BR>
<EM>&gt; from source. Both do the same thing.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; [micah@eclipse micah]$ strace scanimage -L
</EM><BR>
<EM>&gt; [...]
</EM><BR>
<EM>&gt; open(&quot;/proc/sys/kernel/sg-big-buff&quot;, O_RDONLY) = -1 ENOENT (No such file or
</EM><BR>
<EM>&gt; directory)
</EM><BR>
<EM>&gt; open(&quot;/dev/scanner&quot;, O_RDWR|O_EXCL) = 6
</EM><BR>
<EM>&gt; ioctl(6, TIOCSCCINI, 0xbfffe254) = -1 ENOTTY (Inappropriate ioctl
</EM><BR>
<EM>&gt; for device)
</EM><BR>
<EM>&gt; ioctl(6, TIOCGKISS, 0x401dead0) = -1 ENOTTY (Inappropriate ioctl
</EM><BR>
<EM>&gt; for device)
</EM><BR>
<EM>&gt; brk(0x8055000) = 0x8055000
</EM><BR>
<EM>&gt; brk(0x805a000) = 0x805a000
</EM><BR>
<EM>&gt; rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
</EM><BR>
<EM>&gt; rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
</EM><BR>
<EM>&gt; rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
</EM><BR>
<EM>&gt; write(6, &quot;*\0\0\0)\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0&quot;..., 42) =
</EM><BR>
<EM>&gt; 42 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
</EM><BR>
<EM>&gt; select(7, [6], NULL, NULL, NULL) = 1 (in [6])
</EM><BR>
<EM>&gt; rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
</EM><BR>
<EM>&gt; read(6, &quot;&quot;, 41) = 0
</EM><BR>
<EM>&gt; rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
</EM><BR>
<EM>&gt; --- SIGSEGV (Segmentation fault) ---
</EM><BR>
<EM>&gt; +++ killed by SIGSEGV +++
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Notice the &quot;inappropriate ioctl for device&quot; messages. That indicates to me
</EM><BR>
<EM>&gt; that there's a bug in scanimage.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Any ideas? Anything else I can do to try to debug this? Is there a
</EM><BR>
<EM>&gt; hardware problem?
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Finally, does anyone know a way to convert the &quot;out.dat&quot; file that the
</EM><BR>
<EM>&gt; example in the kernel source produces into something useful? It would sure
</EM><BR>
<EM>&gt; be nice to get some scans in right now.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Thanks!
</EM><BR>
<EM>&gt; Micah
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; --
</EM><BR>
<EM>&gt; Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
</EM><BR>
<EM>&gt; To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20HP%205200C%20--%20segfaults%20and%20&quot;inappropriate%20ioctl%20for%20device&quot;&In-Reply-To=&lt;01051318511401.00746@localhost.localdomain&gt;">majordomo@mostang.com</A>
</EM><BR>
<P><PRE>
--
Greetings
Claus Ladekjær Wilson
Ny Adresse: Kirkedammen 19 2. tv
8000 Århus C
Nyt Tlf.nr.: 86112234
hjem.get2net.dk/clw
<A HREF="mailto:clw@get2net.dk?Subject=Re:%20HP%205200C%20--%20segfaults%20and%20&quot;inappropriate%20ioctl%20for%20device&quot;&In-Reply-To=&lt;01051318511401.00746@localhost.localdomain&gt;">clw@get2net.dk</A>
fax 75828072
running Linux Mandrake 7.2
kernel 2.2.17
<P>--
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:%20HP%205200C%20--%20segfaults%20and%20&quot;inappropriate%20ioctl%20for%20device&quot;&In-Reply-To=&lt;01051318511401.00746@localhost.localdomain&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0179.html">Henning Meier-Geinitz: "Re: Hope you don't mind a HELP-ME! post?"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0177.html">Henning Meier-Geinitz: "Re: scanimage -T using Purify..."</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0149.html">Micah Yoder: "HP 5200C -- segfaults and &quot;inappropriate ioctl for device&quot;"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0188.html">Micah Yoder: "Re: HP 5200C -- segfaults and &quot;inappropriate ioctl for device&quot;"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0188.html">Micah Yoder: "Re: HP 5200C -- segfaults and &quot;inappropriate ioctl for device&quot;"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0193.html">Henning Meier-Geinitz: "Re: HP 5200C -- segfaults and &quot;inappropriate ioctl for device&quot;"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#178">[ date ]</A>
<A HREF="index.html#178">[ thread ]</A>
<A HREF="subject.html#178">[ subject ]</A>
<A HREF="author.html#178">[ 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 May 13 2001 - 09:39:23 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>