sane-project-website/old-archive/1999-11/0023.html

253 wiersze
14 KiB
HTML

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!-- received="Thu Nov 4 09:37:49 1999 PST" -->
<!-- sent="Thu, 04 Nov 1999 18:45:33 +0100" -->
<!-- name="Luca Del Signore" -->
<!-- email="lucadels@tin.it" -->
<!-- subject="Re: sane doesnt work under red hat 6.1 (again)!" -->
<!-- id="" -->
<!-- inreplyto="sane doesnt work under red hat 6.1 (again)!" -->
<title>sane-devel: Re: sane doesnt work under red hat 6.1 (again)!</title>
<h1>Re: sane doesnt work under red hat 6.1 (again)!</h1>
<b>Luca Del Signore</b> (<a href="mailto:lucadels@tin.it"><i>lucadels@tin.it</i></a>)<br>
<i>Thu, 04 Nov 1999 18:45:33 +0100</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#23">[ date ]</a><a href="index.html#23">[ thread ]</a><a href="subject.html#23">[ subject ]</a><a href="author.html#23">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0024.html">Luca Del Signore: "Re: sane doesnt work under red hat 6.1 (again)!"</a>
<li> <b>Previous message:</b> <a href="0022.html">Oliver Rauch: "Re: sane doesnt work under red hat 6.1 (again)!"</a>
<li> <b>Maybe in reply to:</b> <a href="0020.html">Luca Del Signore: "sane doesnt work under red hat 6.1 (again)!"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0024.html">Luca Del Signore: "Re: sane doesnt work under red hat 6.1 (again)!"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Chris Pinkham wrote:<br>
<i>&gt; </i><br>
<i>&gt; The Artec backend works best with the AT3 model since that's what I have,</i><br>
<i>&gt; I even have the same firmware revision as you. I'm wondering if it has</i><br>
<i>&gt; anything to do with the sense handler. I have received other reports of</i><br>
<i>&gt; this causing problems a while back.</i><br>
<i>&gt; </i><br>
<i>&gt; You can try turning it off by doing a couple things.... Find the following</i><br>
<i>&gt; section of code in artec.c:</i><br>
<i>&gt; </i><br>
<i>&gt; -----------------------------------------------------------</i><br>
<i>&gt; "AT3", "flatbed",</i><br>
<i>&gt; 8.3, 11, 0, 255, 0, 255, 0, 0, 8, 55, 32768,</i><br>
<i>&gt; ARTEC_FLAG_CALIBRATE_RGB |</i><br>
<i>&gt; ARTEC_FLAG_RGB_LINE_OFFSET |</i><br>
<i>&gt; ARTEC_FLAG_RGB_CHAR_SHIFT |</i><br>
<i>&gt; ARTEC_FLAG_GAMMA_SINGLE |</i><br>
<i>&gt; ARTEC_FLAG_SEPARATE_RES |</i><br>
<i>&gt; ARTEC_FLAG_SENSE_HANDLER |</i><br>
<i>&gt; ARTEC_FLAG_ONE_PASS_SCANNER,</i><br>
<i>&gt; "50,100,200,300", "50,100,200,300,600"</i><br>
<i>&gt; -----------------------------------------------------------</i><br>
<i>&gt; </i><br>
<i>&gt; Comment out the line that says "ARTEC_FLAG_SENSE_HANDLER", that will disable</i><br>
<i>&gt; the sense handler for the AT3. Then go find the first place where</i><br>
<i>&gt; sanei_scsi_open is called like this:</i><br>
<i>&gt; </i><br>
<i>&gt; -----------------------------------------------------------</i><br>
<i>&gt; DBG (6, "attach: opening %s\n", devname);</i><br>
<i>&gt; </i><br>
<i>&gt; status = sanei_scsi_open (devname, &amp;fd, sense_handler, 0);</i><br>
<i>&gt; if (status != SANE_STATUS_GOOD)</i><br>
<i>&gt; {</i><br>
<i>&gt; DBG (1, "attach: open failed (%s)\n", sane_strstatus (status));</i><br>
<i>&gt; -----------------------------------------------------------</i><br>
<i>&gt; </i><br>
<i>&gt; Change the "sense_handler" on the sanei_scsi_open line to a plain "0" (zero).</i><br>
<i>&gt; That will disable the sense handler being used while trying to detect what</i><br>
<i>&gt; kind of scanner you have.</i><br>
<i>&gt; </i><br>
<i>&gt; Can you try that and see if it works?</i><br>
<i>&gt; </i><br>
<i>&gt; &gt; Luca Del Signore</i><br>
<i>&gt; &gt;</i><br>
<i>&gt; &gt;</i><br>
<i>&gt; &gt; Script started on Thu Nov 4 09:15:21 1999</i><br>
<i>&gt; &gt; [root@localhost /root]# s xscanimage</i><br>
<i>&gt; &gt; &gt; Segmentation fault (core dumped)</i><br>
<i>&gt; &gt; [root@localhost /root]# <20>exit</i><br>
<i>&gt; &gt;</i><br>
<i>&gt; &gt; Script done on Thu Nov 4 09:26:19 1999</i><br>
<i>&gt; </i><br>
<i>&gt; &gt; aha152x: trying software interrupt, ok.</i><br>
<i>&gt; &gt; scsi0 : Adaptec 152x SCSI driver; $Revision: 1.7 $</i><br>
<i>&gt; &gt; scsi1 : SCSI host adapter emulation for IDE ATAPI devices</i><br>
<i>&gt; &gt; scsi : 2 hosts.</i><br>
<i>&gt; &gt; Vendor: ULTIMA Model: AT3 Rev: 1.90</i><br>
<i>&gt; &gt; Type: Scanner ANSI SCSI revision: 02</i><br>
<i>&gt; &gt; Detected scsi generic sga at scsi0, channel 0, id 6, lun 0</i><br>
<i>&gt; </i><br>
<i>&gt; Chris</i><br>
<i>&gt; </i><br>
<i>&gt; ************************************************************************</i><br>
<i>&gt; ** Chris Pinkham AlphaLinux v2.2.5, Cajun 3.0-8 **</i><br>
<i>&gt; ** <a href="mailto:cpinkham@infi.net">cpinkham@infi.net</a> <a href="http://www4.infi.net/~cpinkham/">http://www4.infi.net/~cpinkham/</a> **</i><br>
<i>&gt; ************************************************************************</i><br>
<i>&gt; </i><br>
<i>&gt; --</i><br>
<i>&gt; Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a></i><br>
<i>&gt; To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a></i><br>
<p>
Well... im not so expert but ill give it a try and let you know<br>
thanx for nowChris Pinkham wrote:<br>
<i>&gt; </i><br>
<i>&gt; The Artec backend works best with the AT3 model since that's what I have,</i><br>
<i>&gt; I even have the same firmware revision as you. I'm wondering if it has</i><br>
<i>&gt; anything to do with the sense handler. I have received other reports of</i><br>
<i>&gt; this causing problems a while back.</i><br>
<i>&gt; </i><br>
<i>&gt; You can try turning it off by doing a couple things.... Find the following</i><br>
<i>&gt; section of code in artec.c:</i><br>
<i>&gt; </i><br>
<i>&gt; -----------------------------------------------------------</i><br>
<i>&gt; "AT3", "flatbed",</i><br>
<i>&gt; 8.3, 11, 0, 255, 0, 255, 0, 0, 8, 55, 32768,</i><br>
<i>&gt; ARTEC_FLAG_CALIBRATE_RGB |</i><br>
<i>&gt; ARTEC_FLAG_RGB_LINE_OFFSET |</i><br>
<i>&gt; ARTEC_FLAG_RGB_CHAR_SHIFT |</i><br>
<i>&gt; ARTEC_FLAG_GAMMA_SINGLE |</i><br>
<i>&gt; ARTEC_FLAG_SEPARATE_RES |</i><br>
<i>&gt; ARTEC_FLAG_SENSE_HANDLER |</i><br>
<i>&gt; ARTEC_FLAG_ONE_PASS_SCANNER,</i><br>
<i>&gt; "50,100,200,300", "50,100,200,300,600"</i><br>
<i>&gt; -----------------------------------------------------------</i><br>
<i>&gt; </i><br>
<i>&gt; Comment out the line that says "ARTEC_FLAG_SENSE_HANDLER", that will disable</i><br>
<i>&gt; the sense handler for the AT3. Then go find the first place where</i><br>
<i>&gt; sanei_scsi_open is called like this:</i><br>
<i>&gt; </i><br>
<i>&gt; -----------------------------------------------------------</i><br>
<i>&gt; DBG (6, "attach: opening %s\n", devname);</i><br>
<i>&gt; </i><br>
<i>&gt; status = sanei_scsi_open (devname, &amp;fd, sense_handler, 0);</i><br>
<i>&gt; if (status != SANE_STATUS_GOOD)</i><br>
<i>&gt; {</i><br>
<i>&gt; DBG (1, "attach: open failed (%s)\n", sane_strstatus (status));</i><br>
<i>&gt; -----------------------------------------------------------</i><br>
<i>&gt; </i><br>
<i>&gt; Change the "sense_handler" on the sanei_scsi_open line to a plain "0" (zero).</i><br>
<i>&gt; That will disable the sense handler being used while trying to detect what</i><br>
<i>&gt; kind of scanner you have.</i><br>
<i>&gt; </i><br>
<i>&gt; Can you try that and see if it works?</i><br>
<i>&gt; </i><br>
<i>&gt; &gt; Luca Del Signore</i><br>
<i>&gt; &gt;</i><br>
<i>&gt; &gt;</i><br>
<i>&gt; &gt; Script started on Thu Nov 4 09:15:21 1999</i><br>
<i>&gt; &gt; [root@localhost /root]# s xscanimage</i><br>
<i>&gt; &gt; &gt; Segmentation fault (core dumped)</i><br>
<i>&gt; &gt; [root@localhost /root]# <20>exit</i><br>
<i>&gt; &gt;</i><br>
<i>&gt; &gt; Script done on Thu Nov 4 09:26:19 1999</i><br>
<i>&gt; </i><br>
<i>&gt; &gt; aha152x: trying software interrupt, ok.</i><br>
<i>&gt; &gt; scsi0 : Adaptec 152x SCSI driver; $Revision: 1.7 $</i><br>
<i>&gt; &gt; scsi1 : SCSI host adapter emulation for IDE ATAPI devices</i><br>
<i>&gt; &gt; scsi : 2 hosts.</i><br>
<i>&gt; &gt; Vendor: ULTIMA Model: AT3 Rev: 1.90</i><br>
<i>&gt; &gt; Type: Scanner ANSI SCSI revision: 02</i><br>
<i>&gt; &gt; Detected scsi generic sga at scsi0, channel 0, id 6, lun 0</i><br>
<i>&gt; </i><br>
<i>&gt; Chris</i><br>
<i>&gt; </i><br>
<i>&gt; ************************************************************************</i><br>
<i>&gt; ** Chris Pinkham AlphaLinux v2.2.5, Cajun 3.0-8 **</i><br>
<i>&gt; ** <a href="mailto:cpinkham@infi.net">cpinkham@infi.net</a> <a href="http://www4.infi.net/~cpinkham/">http://www4.infi.net/~cpinkham/</a> **</i><br>
<i>&gt; ************************************************************************</i><br>
<i>&gt; </i><br>
<i>&gt; --</i><br>
<i>&gt; Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a></i><br>
<i>&gt; To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a></i><br>
Chris Pinkham wrote:<br>
<i>&gt; </i><br>
<i>&gt; The Artec backend works best with the AT3 model since that's what I have,</i><br>
<i>&gt; I even have the same firmware revision as you. I'm wondering if it has</i><br>
<i>&gt; anything to do with the sense handler. I have received other reports of</i><br>
<i>&gt; this causing problems a while back.</i><br>
<i>&gt; </i><br>
<i>&gt; You can try turning it off by doing a couple things.... Find the following</i><br>
<i>&gt; section of code in artec.c:</i><br>
<i>&gt; </i><br>
<i>&gt; -----------------------------------------------------------</i><br>
<i>&gt; "AT3", "flatbed",</i><br>
<i>&gt; 8.3, 11, 0, 255, 0, 255, 0, 0, 8, 55, 32768,</i><br>
<i>&gt; ARTEC_FLAG_CALIBRATE_RGB |</i><br>
<i>&gt; ARTEC_FLAG_RGB_LINE_OFFSET |</i><br>
<i>&gt; ARTEC_FLAG_RGB_CHAR_SHIFT |</i><br>
<i>&gt; ARTEC_FLAG_GAMMA_SINGLE |</i><br>
<i>&gt; ARTEC_FLAG_SEPARATE_RES |</i><br>
<i>&gt; ARTEC_FLAG_SENSE_HANDLER |</i><br>
<i>&gt; ARTEC_FLAG_ONE_PASS_SCANNER,</i><br>
<i>&gt; "50,100,200,300", "50,100,200,300,600"</i><br>
<i>&gt; -----------------------------------------------------------</i><br>
<i>&gt; </i><br>
<i>&gt; Comment out the line that says "ARTEC_FLAG_SENSE_HANDLER", that will disable</i><br>
<i>&gt; the sense handler for the AT3. Then go find the first place where</i><br>
<i>&gt; sanei_scsi_open is called like this:</i><br>
<i>&gt; </i><br>
<i>&gt; -----------------------------------------------------------</i><br>
<i>&gt; DBG (6, "attach: opening %s\n", devname);</i><br>
<i>&gt; </i><br>
<i>&gt; status = sanei_scsi_open (devname, &amp;fd, sense_handler, 0);</i><br>
<i>&gt; if (status != SANE_STATUS_GOOD)</i><br>
<i>&gt; {</i><br>
<i>&gt; DBG (1, "attach: open failed (%s)\n", sane_strstatus (status));</i><br>
<i>&gt; -----------------------------------------------------------</i><br>
<i>&gt; </i><br>
<i>&gt; Change the "sense_handler" on the sanei_scsi_open line to a plain "0" (zero).</i><br>
<i>&gt; That will disable the sense handler being used while trying to detect what</i><br>
<i>&gt; kind of scanner you have.</i><br>
<i>&gt; </i><br>
<i>&gt; Can you try that and see if it works?</i><br>
<i>&gt; </i><br>
<i>&gt; &gt; Luca Del Signore</i><br>
<i>&gt; &gt;</i><br>
<i>&gt; &gt;</i><br>
<i>&gt; &gt; Script started on Thu Nov 4 09:15:21 1999</i><br>
<i>&gt; &gt; [root@localhost /root]# s xscanimage</i><br>
<i>&gt; &gt; &gt; Segmentation fault (core dumped)</i><br>
<i>&gt; &gt; [root@localhost /root]# <20>exit</i><br>
<i>&gt; &gt;</i><br>
<i>&gt; &gt; Script done on Thu Nov 4 09:26:19 1999</i><br>
<i>&gt; </i><br>
<i>&gt; &gt; aha152x: trying software interrupt, ok.</i><br>
<i>&gt; &gt; scsi0 : Adaptec 152x SCSI driver; $Revision: 1.7 $</i><br>
<i>&gt; &gt; scsi1 : SCSI host adapter emulation for IDE ATAPI devices</i><br>
<i>&gt; &gt; scsi : 2 hosts.</i><br>
<i>&gt; &gt; Vendor: ULTIMA Model: AT3 Rev: 1.90</i><br>
<i>&gt; &gt; Type: Scanner ANSI SCSI revision: 02</i><br>
<i>&gt; &gt; Detected scsi generic sga at scsi0, channel 0, id 6, lun 0</i><br>
<i>&gt; </i><br>
<i>&gt; Chris</i><br>
<i>&gt; </i><br>
<i>&gt; ************************************************************************</i><br>
<i>&gt; ** Chris Pinkham AlphaLinux v2.2.5, Cajun 3.0-8 **</i><br>
<i>&gt; ** <a href="mailto:cpinkham@infi.net">cpinkham@infi.net</a> <a href="http://www4.infi.net/~cpinkham/">http://www4.infi.net/~cpinkham/</a> **</i><br>
<i>&gt; ************************************************************************</i><br>
<i>&gt; </i><br>
<i>&gt; --</i><br>
<i>&gt; Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a></i><br>
<i>&gt; To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a></i><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">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0024.html">Luca Del Signore: "Re: sane doesnt work under red hat 6.1 (again)!"</a>
<li> <b>Previous message:</b> <a href="0022.html">Oliver Rauch: "Re: sane doesnt work under red hat 6.1 (again)!"</a>
<li> <b>Maybe in reply to:</b> <a href="0020.html">Luca Del Signore: "sane doesnt work under red hat 6.1 (again)!"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0024.html">Luca Del Signore: "Re: sane doesnt work under red hat 6.1 (again)!"</a>
<!-- reply="end" -->
</ul>