sane-project-website/old-archive/2001-02/0171.html

508 wiersze
11 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: HP5300C - USB-problems?</TITLE>
<META NAME="Author" CONTENT="j.steindlberger@gmx.de (j.steindlberger@gmx.de)">
<META NAME="Subject" CONTENT="Re: HP5300C - USB-problems?">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: HP5300C - USB-problems?</H1>
<!-- received="Sat Feb 17 02:43:18 2001" -->
<!-- isoreceived="20010217104318" -->
<!-- sent="Sat, 17 Feb 2001 11:49:47 +0100 (MET)" -->
<!-- isosent="20010217104947" -->
<!-- name="j.steindlberger@gmx.de" -->
<!-- email="j.steindlberger@gmx.de" -->
<!-- subject="Re: HP5300C - USB-problems?" -->
<!-- id="9888.982406987@www26.gmx.net" -->
<!-- inreplyto="01021710031002.01507@idun" -->
<STRONG>From:</STRONG> <A HREF="mailto:j.steindlberger@gmx.de?Subject=Re:%20HP5300C%20-%20USB-problems?&In-Reply-To=&lt;9888.982406987@www26.gmx.net&gt;"><EM>j.steindlberger@gmx.de</EM></A><BR>
<STRONG>Date:</STRONG> Sat Feb 17 2001 - 02:49:47 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0172.html">j.steindlberger@gmx.de: "Re: HP5300C - USB-problems?"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0170.html">Andrew Williams: "Re: HP5300C - USB-problems?"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0169.html">Oliver Neukum: "Re: HP5300C - USB-problems?"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0174.html">abel deuring: "Re: HP5300C - USB-problems?"</A>
<LI><STRONG>Next in thread:</STRONG> <A HREF="0172.html">j.steindlberger@gmx.de: "Re: HP5300C - USB-problems?"</A>
<LI><STRONG>Next in thread:</STRONG> <A HREF="0170.html">Andrew Williams: "Re: HP5300C - USB-problems?"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0174.html">abel deuring: "Re: HP5300C - USB-problems?"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#171">[ date ]</A>
<A HREF="index.html#171">[ thread ]</A>
<A HREF="subject.html#171">[ subject ]</A>
<A HREF="author.html#171">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
<EM>&gt; &gt; An out of memory failure during a sg device open
</EM><BR>
<EM>&gt; &gt; means the kernel couldn't find 4 KB . [Sg reduces
</EM><BR>
<EM>&gt; &gt; the requested reserved size buffer until the kernel
</EM><BR>
<EM>&gt; &gt; gets some memory or the size is &lt;= 4KB.] This is
</EM><BR>
<EM>&gt; &gt; horrible. Sounds as if that usb-scsi patch has
</EM><BR>
<EM>&gt; &gt; 'unchecked_isa_dma' set to 1 thus restricting sg to
</EM><BR>
<EM>&gt; &gt; getting memory below the 16 MB level.
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; Just checked the usb-scsi code and that is not the case.
</EM><BR>
<EM>&gt; &gt; Have you any idea why there would be such a shortage
</EM><BR>
<EM>&gt; &gt; of memory on your machine? If you have CONFIG_MAGIC_SYSRQ
</EM><BR>
<EM>&gt; &gt; selected in your kernel, what does Alt+SysRq+M output?
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; It isn't that serious. SANE reports &quot;Out of memory&quot; as soon as it can't
</EM><BR>
<EM>&gt; get
</EM><BR>
<EM>&gt; the buffer it wants and possibly on other conditions. Still you should
</EM><BR>
be
<BR>
<EM>&gt; able to get 8K. How much RAM do you have ?
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; HTH
</EM><BR>
<EM>&gt; Oliver
</EM><BR>
<EM>&gt;
</EM><BR>
Hi Doug, hi Oliver (and all others),
<BR>
<P>only with the variable SANE_SG_BUFFERSIZE=32768 I can open a
<BR>
xscanimage-window. With 8k, 16k, 48k and 64k I get the &quot;[avision] attach:
<BR>
open failed (Out of memory)&quot;-message.
<BR>
<P>Using the 32k the xscanimage-window opens and I can click on scan. (I
<BR>
shouldn't click preview - previewing hangs my system.) Then it seams that
<BR>
the Driver does not work well: The scanhead moves like initializing, but
<BR>
after that it doesn't start scanning. The output from xscanimage is posted
<BR>
at the bottom.
<BR>
<P>(By the way, I have 384 MB of RAM - that shouldn't be the problem. But I
<BR>
have a very big kernel. Does that matter? If you need more data, tell me
<BR>
the &quot;cat /proc/...&quot; to let You know.)
<BR>
<P>And for those who like it, here's the output from
<BR>
# export SANE_SG_BUFFERSIZE=32768
<BR>
# xscanimage &gt;&gt;xscan.out 2&gt;&gt;xscan.out
<BR>
(clicking once onto the scan-button and closing the window after a while)
<BR>
<P>[sanei_debug] Setting debug level of avision to 10.
<BR>
[avision] sane_init: parsing config line &quot;scsi HP&quot;
<BR>
[avision] sane_init: config file line 1: trying to attach `scsi HP'
<BR>
[avision] attach
<BR>
[avision] attach: opening /dev/sg0
<BR>
[avision] attach: sending INQUIRY
<BR>
[avision] wait_ready: sending TEST_UNIT_READY
<BR>
[avision] attach: Inquiry gives mfg=HP , model=ScanJet 5300C ,
<BR>
product revision=6.00.
<BR>
[avision] attach: found AVISION scanner model ScanJet 5300C (flatbed
<BR>
scanner)[avision] X-Range: 203.199997mm, Y-Range: 279.399994mm
<BR>
(Raw-Range: 9, 248, 13, 179)
<BR>
[avision] RAW.Result:
<BR>
[avision] [0]:6-&gt;
<BR>
[avision] [1]:80-&gt;<EFBFBD>
<BR>
[avision] [2]:2-&gt;
<BR>
[avision] [3]:42-&gt;B
<BR>
[avision] [4]:5b-&gt;[
<BR>
[avision] [5]:0-&gt;
<BR>
[avision] [6]:0-&gt;
<BR>
[avision] [7]:0-&gt;
<BR>
[avision] [8]:48-&gt;H
<BR>
[avision] [9]:50-&gt;P
<BR>
[avision] [10]:20-&gt;
<BR>
[avision] [11]:20-&gt;
<BR>
[avision] [12]:20-&gt;
<BR>
[avision] [13]:20-&gt;
<BR>
[avision] [14]:20-&gt;
<BR>
[avision] [15]:20-&gt;
<BR>
[avision] [16]:53-&gt;S
<BR>
[avision] [17]:63-&gt;c
<BR>
[avision] [18]:61-&gt;a
<BR>
[avision] [19]:6e-&gt;n
<BR>
[avision] [20]:4a-&gt;J
<BR>
[avision] [21]:65-&gt;e
<BR>
[avision] [22]:74-&gt;t
<BR>
[avision] [23]:20-&gt;
<BR>
[avision] [24]:35-&gt;5
<BR>
[avision] [25]:33-&gt;3
<BR>
[avision] [26]:30-&gt;0
<BR>
[avision] [27]:30-&gt;0
<BR>
[avision] [28]:43-&gt;C
<BR>
[avision] [29]:20-&gt;
<BR>
[avision] [30]:20-&gt;
<BR>
[avision] [31]:20-&gt;
<BR>
[avision] [32]:36-&gt;6
<BR>
[avision] [33]:2e-&gt;.
<BR>
[avision] [34]:30-&gt;0
<BR>
[avision] [35]:30-&gt;0
<BR>
[avision] [36]:a0-&gt;<EFBFBD>
<BR>
[avision] [37]:6-&gt;
<BR>
[avision] [38]:c-&gt;
<BR>
<P>[avision] [39]:67-&gt;g
<BR>
[avision] [40]:4-&gt;
<BR>
[avision] [41]:b0-&gt;<EFBFBD>
<BR>
[avision] [42]:4-&gt;
<BR>
[avision] [43]:b0-&gt;<EFBFBD>
<BR>
[avision] [44]:9-&gt;
<BR>
[avision] [45]:60-&gt;`
<BR>
[avision] [46]:9-&gt;
<BR>
[avision] [47]:60-&gt;`
<BR>
[avision] [48]:0-&gt;
<BR>
[avision] [49]:0-&gt;
<BR>
[avision] [50]:f9-&gt;<EFBFBD>
<BR>
[avision] [51]:97-&gt;<EFBFBD>
<BR>
[avision] [52]:d3-&gt;<EFBFBD>
<BR>
[avision] [53]:18-&gt;?
<BR>
[avision] [54]:8-&gt;
<BR>
[avision] [55]:8-&gt;
<BR>
[avision] [56]:2-&gt;
<BR>
[avision] [57]:8-&gt;
<BR>
[avision] [58]:8-&gt;
<BR>
[avision] [59]:8-&gt;
<BR>
[avision] [60]:c0-&gt;<EFBFBD>
<BR>
[avision] [61]:d4-&gt;<EFBFBD>
<BR>
[avision] [62]:20-&gt;
<BR>
[avision] [63]:5-&gt;
<BR>
[avision] [64]:1-&gt;
<BR>
[avision] [65]:1-&gt;
<BR>
[avision] [66]:2-&gt;
<BR>
[avision] [67]:3-&gt;
<BR>
[avision] [68]:4-&gt;
<BR>
[avision] [69]:5-&gt;
<BR>
[avision] [70]:0-&gt;
<BR>
[avision] [71]:0-&gt;
<BR>
[avision] [72]:0-&gt;
<BR>
[avision] [73]:0-&gt;
<BR>
[avision] [74]:0-&gt;
<BR>
[avision] [75]:f-&gt;
<BR>
[avision] [76]:0-&gt;
<BR>
[avision] [77]:5-&gt;
<BR>
[avision] [78]:dc-&gt;<EFBFBD>
<BR>
[avision] [79]:5-&gt;
<BR>
[avision] [80]:dc-&gt;<EFBFBD>
<BR>
[avision] [81]:9-&gt;
<BR>
[avision] [82]:f8-&gt;<EFBFBD>
<BR>
[avision] [83]:d-&gt;
<BR>
[avision] [84]:b3-&gt;<EFBFBD>
<BR>
[avision] [85]:9-&gt;
<BR>
[avision] [86]:f8-&gt;<EFBFBD>
<BR>
[avision] [87]:10-&gt;
<BR>
[avision] [88]:68-&gt;h
<BR>
[avision] [89]:4-&gt;
<BR>
[avision] [90]:b0-&gt;<EFBFBD>
<BR>
[avision] [91]:3-&gt;
<BR>
[avision] [92]:4-&gt;
<BR>
[avision] [93]:c8-&gt;<EFBFBD>
<BR>
[avision] [94]:5-&gt;
<BR>
[avision] [95]:0-&gt;
<BR>
[avision] Inquiry x/y-range is vaild?!?
<BR>
[avision] sane_get_devices
<BR>
[avision] sane_open:
<BR>
[avision] init_options
<BR>
[avision] max_string_size
<BR>
[avision] make_mode
<BR>
[avision] sane_control_option
<BR>
[avision] sane_get_option_descriptor
<BR>
[avision] sane_get_option_descriptor
<BR>
[avision] sane_control_option
<BR>
(.......)
<BR>
[avision] sane_get_option_descriptor
<BR>
[avision] sane_get_option_descriptor
<BR>
[avision] sane_start
<BR>
[avision] sane_get_parameters
<BR>
[avision] wait_ready: sending TEST_UNIT_READY
<BR>
[avision] set_windows
<BR>
[avision] set_gamma
<BR>
[avision] brightness: 0.000000, contrast: 0.000000
<BR>
[avision] use custom gamma-table
<BR>
[avision] start_scan
<BR>
[avision] sane_get_parameters
<BR>
[avision] sane_set_io_mode
<BR>
[avision] sane_get_select_fd
<BR>
[avision] reader_process
<BR>
[avision] lines_per_buffer=2, bytes_per_line=7188
<BR>
[avision] read_data
<BR>
[avision] read_data: bytes 14376
<BR>
[avision] sense_handler
<BR>
[avision] sense_handler: got unknown sense code 22
<BR>
[avision] 0:[22]
<BR>
[avision] 1:[d9]
<BR>
[avision] 2:[8a]
<BR>
[avision] 3:[41]
<BR>
[avision] 4:[22]
<BR>
[avision] 5:[d9]
<BR>
[avision] 6:[8a]
<BR>
[avision] 7:[41]
<BR>
[avision] 8:[22]
<BR>
[avision] 9:[d9]
<BR>
[avision] 10:[8a]
<BR>
[avision] 11:[41]
<BR>
[avision] 12:[5f]
<BR>
[avision] 13:[87]
<BR>
[avision] 14:[95]
<BR>
[avision] 15:[41]
<BR>
[avision] 16:[9d]
<BR>
[avision] 17:[35]
<BR>
[avision] 18:[a0]
<BR>
[avision] 19:[41]
<BR>
[avision] 20:[da]
<BR>
[avision] reader_process: read_data failed with status=9
<BR>
[avision] sane_read
<BR>
[avision] sane_read:read 0 bytes
<BR>
[avision] do_eof
<BR>
[avision] sane_get_option_descriptor
<BR>
[avision] sane_get_option_descriptor
<BR>
[avision] sane_get_option_descriptor
<BR>
(........)
<BR>
[avision] sane_get_option_descriptor
<BR>
[avision] sane_get_option_descriptor
<BR>
[avision] sane_cancel
<BR>
[avision] sane_close
<BR>
[avision]
<BR>
[avision] sane_exit
<BR>
<P>Thank You for reading ;-)
<BR>
<P>J<EFBFBD>rg
<BR>
<P><PRE>
--
Sent through GMX FreeMail - <A HREF="http://www.gmx.net">http://www.gmx.net</A>
<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:%20HP5300C%20-%20USB-problems?&In-Reply-To=&lt;9888.982406987@www26.gmx.net&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0172.html">j.steindlberger@gmx.de: "Re: HP5300C - USB-problems?"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0170.html">Andrew Williams: "Re: HP5300C - USB-problems?"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0169.html">Oliver Neukum: "Re: HP5300C - USB-problems?"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0174.html">abel deuring: "Re: HP5300C - USB-problems?"</A>
<LI><STRONG>Next in thread:</STRONG> <A HREF="0172.html">j.steindlberger@gmx.de: "Re: HP5300C - USB-problems?"</A>
<LI><STRONG>Next in thread:</STRONG> <A HREF="0170.html">Andrew Williams: "Re: HP5300C - USB-problems?"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0174.html">abel deuring: "Re: HP5300C - USB-problems?"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#171">[ date ]</A>
<A HREF="index.html#171">[ thread ]</A>
<A HREF="subject.html#171">[ subject ]</A>
<A HREF="author.html#171">[ 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>Sat Feb 17 2001 - 02:43:54 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>