kopia lustrzana https://gitlab.com/sane-project/website
243 wiersze
9.3 KiB
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 "inappropriate i</TITLE>
|
|||
|
<META NAME="Author" CONTENT="Claus Ladekj<6B>r Wilson (clw@get2net.dk)">
|
|||
|
<META NAME="Subject" CONTENT="Re: HP 5200C -- segfaults and "inappropriate ioctl for device"">
|
|||
|
</HEAD>
|
|||
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|||
|
<H1>Re: HP 5200C -- segfaults and "inappropriate ioctl for device"</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<6B>r Wilson" -->
|
|||
|
<!-- email="clw@get2net.dk" -->
|
|||
|
<!-- subject="Re: HP 5200C -- segfaults and "inappropriate ioctl for device"" -->
|
|||
|
<!-- id="01051318511401.00746@localhost.localdomain" -->
|
|||
|
<!-- inreplyto="01050914160703.01178@eclipse" -->
|
|||
|
<STRONG>From:</STRONG> Claus Ladekj<6B>r Wilson (<A HREF="mailto:clw@get2net.dk?Subject=Re:%20HP%205200C%20--%20segfaults%20and%20"inappropriate%20ioctl%20for%20device"&In-Reply-To=<01051318511401.00746@localhost.localdomain>"><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 "inappropriate ioctl for device""</A>
|
|||
|
<!-- nextthread="start" -->
|
|||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0188.html">Micah Yoder: "Re: HP 5200C -- segfaults and "inappropriate ioctl for device""</A>
|
|||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0188.html">Micah Yoder: "Re: HP 5200C -- segfaults and "inappropriate ioctl for device""</A>
|
|||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0193.html">Henning Meier-Geinitz: "Re: HP 5200C -- segfaults and "inappropriate ioctl for device""</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 > /home/claus/work/claus-scan.tiff
|
|||
|
<BR>
|
|||
|
<P><P>Den onsdag 09 Maj 2001 18:16 skrev du:
|
|||
|
<BR>
|
|||
|
<EM>> Anyone get this thing working with USB? It's driving me nuts. I think
|
|||
|
</EM><BR>
|
|||
|
<EM>> it's configured correctly, but scanimage segfaults. Below is the last part
|
|||
|
</EM><BR>
|
|||
|
<EM>> of the strace for scanimage, and hopefully it will help someone know what's
|
|||
|
</EM><BR>
|
|||
|
<EM>> going on here.
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> Config info:
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> [root@eclipse /dev]# l *scanner
|
|||
|
</EM><BR>
|
|||
|
<EM>> lrwxrwxrwx 1 root root 10 May 4 20:41 scanner ->
|
|||
|
</EM><BR>
|
|||
|
<EM>> usbscanner crw-rw-rw- 1 root root 180, 48 May 4 19:54
|
|||
|
</EM><BR>
|
|||
|
<EM>> usbscanner
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> [root@eclipse /dev]# cat /etc/sane.d/hp.conf
|
|||
|
</EM><BR>
|
|||
|
<EM>> /dev/usbscanner
|
|||
|
</EM><BR>
|
|||
|
<EM>> option connect-device
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> My kernel is the Red Hat 7.1 kernel, which is 2.4.2+"bugfixes". I have the
|
|||
|
</EM><BR>
|
|||
|
<EM>> usbcore, usb-uhci, and scanner modules loaded. The kernel does see the
|
|||
|
</EM><BR>
|
|||
|
<EM>> scanner and it shows up in usbview, however one strange thing is that
|
|||
|
</EM><BR>
|
|||
|
<EM>> reading the list of SCSI devices (with usbview or by catting
|
|||
|
</EM><BR>
|
|||
|
<EM>> /proc/bus/usb/devices) is VERY slow whenever the scanner is plugged in.
|
|||
|
</EM><BR>
|
|||
|
<EM>> Like, it takes 10-20 seconds. When the scanner is not plugged in, it's
|
|||
|
</EM><BR>
|
|||
|
<EM>> instantaneous. My SanDisk SDDR-31 USB CompactFlash reader works great, and
|
|||
|
</EM><BR>
|
|||
|
<EM>> there is no delay accessing info while it is plugged in without the
|
|||
|
</EM><BR>
|
|||
|
<EM>> scanner.
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> Also, the sample program in the scanner.txt file in the kernel does seem to
|
|||
|
</EM><BR>
|
|||
|
<EM>> work, but it also takes a long time before the scanning starts.
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> I've tried SANE versions 1.0.3 shipped with Ximian GNOME and 1.0.4 compiled
|
|||
|
</EM><BR>
|
|||
|
<EM>> from source. Both do the same thing.
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> [micah@eclipse micah]$ strace scanimage -L
|
|||
|
</EM><BR>
|
|||
|
<EM>> [...]
|
|||
|
</EM><BR>
|
|||
|
<EM>> open("/proc/sys/kernel/sg-big-buff", O_RDONLY) = -1 ENOENT (No such file or
|
|||
|
</EM><BR>
|
|||
|
<EM>> directory)
|
|||
|
</EM><BR>
|
|||
|
<EM>> open("/dev/scanner", O_RDWR|O_EXCL) = 6
|
|||
|
</EM><BR>
|
|||
|
<EM>> ioctl(6, TIOCSCCINI, 0xbfffe254) = -1 ENOTTY (Inappropriate ioctl
|
|||
|
</EM><BR>
|
|||
|
<EM>> for device)
|
|||
|
</EM><BR>
|
|||
|
<EM>> ioctl(6, TIOCGKISS, 0x401dead0) = -1 ENOTTY (Inappropriate ioctl
|
|||
|
</EM><BR>
|
|||
|
<EM>> for device)
|
|||
|
</EM><BR>
|
|||
|
<EM>> brk(0x8055000) = 0x8055000
|
|||
|
</EM><BR>
|
|||
|
<EM>> brk(0x805a000) = 0x805a000
|
|||
|
</EM><BR>
|
|||
|
<EM>> rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
|
|||
|
</EM><BR>
|
|||
|
<EM>> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
|
|||
|
</EM><BR>
|
|||
|
<EM>> rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
|
|||
|
</EM><BR>
|
|||
|
<EM>> write(6, "*\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"..., 42) =
|
|||
|
</EM><BR>
|
|||
|
<EM>> 42 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
|
|||
|
</EM><BR>
|
|||
|
<EM>> select(7, [6], NULL, NULL, NULL) = 1 (in [6])
|
|||
|
</EM><BR>
|
|||
|
<EM>> rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
|
|||
|
</EM><BR>
|
|||
|
<EM>> read(6, "", 41) = 0
|
|||
|
</EM><BR>
|
|||
|
<EM>> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
|
|||
|
</EM><BR>
|
|||
|
<EM>> --- SIGSEGV (Segmentation fault) ---
|
|||
|
</EM><BR>
|
|||
|
<EM>> +++ killed by SIGSEGV +++
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> Notice the "inappropriate ioctl for device" messages. That indicates to me
|
|||
|
</EM><BR>
|
|||
|
<EM>> that there's a bug in scanimage.
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> Any ideas? Anything else I can do to try to debug this? Is there a
|
|||
|
</EM><BR>
|
|||
|
<EM>> hardware problem?
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> Finally, does anyone know a way to convert the "out.dat" file that the
|
|||
|
</EM><BR>
|
|||
|
<EM>> example in the kernel source produces into something useful? It would sure
|
|||
|
</EM><BR>
|
|||
|
<EM>> be nice to get some scans in right now.
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> Thanks!
|
|||
|
</EM><BR>
|
|||
|
<EM>> Micah
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> --
|
|||
|
</EM><BR>
|
|||
|
<EM>> Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
|
|||
|
</EM><BR>
|
|||
|
<EM>> To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20HP%205200C%20--%20segfaults%20and%20"inappropriate%20ioctl%20for%20device"&In-Reply-To=<01051318511401.00746@localhost.localdomain>">majordomo@mostang.com</A>
|
|||
|
</EM><BR>
|
|||
|
<P><PRE>
|
|||
|
--
|
|||
|
Greetings
|
|||
|
Claus Ladekj<6B>r Wilson
|
|||
|
Ny Adresse: Kirkedammen 19 2. tv
|
|||
|
8000 <20>rhus C
|
|||
|
Nyt Tlf.nr.: 86112234
|
|||
|
hjem.get2net.dk/clw
|
|||
|
<A HREF="mailto:clw@get2net.dk?Subject=Re:%20HP%205200C%20--%20segfaults%20and%20"inappropriate%20ioctl%20for%20device"&In-Reply-To=<01051318511401.00746@localhost.localdomain>">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"inappropriate%20ioctl%20for%20device"&In-Reply-To=<01051318511401.00746@localhost.localdomain>">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 "inappropriate ioctl for device""</A>
|
|||
|
<!-- nextthread="start" -->
|
|||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0188.html">Micah Yoder: "Re: HP 5200C -- segfaults and "inappropriate ioctl for device""</A>
|
|||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0188.html">Micah Yoder: "Re: HP 5200C -- segfaults and "inappropriate ioctl for device""</A>
|
|||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0193.html">Henning Meier-Geinitz: "Re: HP 5200C -- segfaults and "inappropriate ioctl for device""</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>
|