kopia lustrzana https://gitlab.com/sane-project/website
84 wiersze
3.7 KiB
HTML
84 wiersze
3.7 KiB
HTML
|
<!-- received="Wed Dec 1 20:31:07 1999 PST" -->
|
|||
|
<!-- sent="Wed, 01 Dec 1999 23:36:17 -0500" -->
|
|||
|
<!-- name="Douglas Gilbert" -->
|
|||
|
<!-- email="dgilbert@interlog.com" -->
|
|||
|
<!-- subject="Re: Problem with SANE and SCSI scanner" -->
|
|||
|
<!-- id="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> " -->
|
|||
|
<!-- inreplyto="Problem with SANE and SCSI scanner" -->
|
|||
|
<title>sane-devel: Re: Problem with SANE and SCSI scanner</title>
|
|||
|
<h1>Re: Problem with SANE and SCSI scanner</h1>
|
|||
|
<b>Douglas Gilbert</b> (<a href="mailto:dgilbert@interlog.com"><i>dgilbert@interlog.com</i></a>)<br>
|
|||
|
<i>Wed, 01 Dec 1999 23:36:17 -0500</i>
|
|||
|
<p>
|
|||
|
<ul>
|
|||
|
<li> <b>Messages sorted by:</b> <a href="date.html#12">[ date ]</a><a href="index.html#12">[ thread ]</a><a href="subject.html#12">[ subject ]</a><a href="author.html#12">[ author ]</a>
|
|||
|
<!-- next="start" -->
|
|||
|
<li> <b>Next message:</b> <a href="0013.html">Joe J.: "Visioneer Parallel Scanners?"</a>
|
|||
|
<li> <b>Previous message:</b> <a href="0011.html">Laura DeWitt: "Re: Problem with SANE and SCSI scanner"</a>
|
|||
|
<!-- nextthread="start" -->
|
|||
|
<!-- reply="end" -->
|
|||
|
</ul>
|
|||
|
<!-- body="start" -->
|
|||
|
Laura DeWitt wrote:<br>
|
|||
|
<i>> </i><br>
|
|||
|
<i>> This information was captured as a user other than root, since when I try</i><br>
|
|||
|
<i>> any of the commands as root, the machine locks up and I have to power</i><br>
|
|||
|
<i>> cycle. I will capture that information also and send it to you next.</i><br>
|
|||
|
<i>> </i><br>
|
|||
|
<i>> BTW, I was running the find-scanner command as root, but the others as</i><br>
|
|||
|
<i>> another user. Then when I changed the permimssions per Markus's</i><br>
|
|||
|
<i>> recommendation, I could run find-scanner as user. Sorry for the confusion.</i><br>
|
|||
|
<i>></i><br>
|
|||
|
<p>
|
|||
|
[snip] <br>
|
|||
|
<p>
|
|||
|
<i>> write(2, "[canon] attach: sending GET SCAN"..., 66[canon] attach: sending GET SCAN MODE for scan control conditions</i><br>
|
|||
|
<i>> ) = 66</i><br>
|
|||
|
<i>> write(2, "[canon] get scan mode: cmd[4]=\'0"..., 37[canon] get scan mode: cmd[4]='0x14'</i><br>
|
|||
|
<i>> ) = 37</i><br>
|
|||
|
<i>> rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0</i><br>
|
|||
|
<i>> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0</i><br>
|
|||
|
<i>> rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0</i><br>
|
|||
|
<i>> write(4, "*\0\0\0n\0\0\0\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 42) = -1 EIO (Input/output error)</i><br>
|
|||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
|
|||
|
<p>
|
|||
|
Laura,<br>
|
|||
|
Thanks for that information. <br>
|
|||
|
<p>
|
|||
|
The failure (EIO) on the sg device handle (4 in this case) <br>
|
|||
|
indicates the buffer passed to sg's write() was too small. <br>
|
|||
|
A length of 42 implies a maximum SCSI command length of 6 <br>
|
|||
|
bytes (because the accompanying sg_header structure is 36 <br>
|
|||
|
bytes long). Digging around the canon backend code in<br>
|
|||
|
sane-1.0.1, it seems to be sending an opcode of 0xd5 <br>
|
|||
|
for "GET SCAN MODE". Such an opcode can only be 10 bytes <br>
|
|||
|
long (12 bytes if another flag was set but I can see above <br>
|
|||
|
it is not).<br>
|
|||
|
<p>
|
|||
|
If you don't understand what I'm talking about, that's<br>
|
|||
|
fine. Hopefully the maintainer of the Canon backend does.<br>
|
|||
|
Mine is a "down under" view of what is going on here<br>
|
|||
|
so maybe someone with a different perspective could<br>
|
|||
|
shed some light on this.<br>
|
|||
|
<p>
|
|||
|
Still can't answer why it locks your machine as root.<br>
|
|||
|
<p>
|
|||
|
Doug Gilbert<br>
|
|||
|
Linux sg maintainer<br>
|
|||
|
<p>
|
|||
|
<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="0013.html">Joe J.: "Visioneer Parallel Scanners?"</a>
|
|||
|
<li> <b>Previous message:</b> <a href="0011.html">Laura DeWitt: "Re: Problem with SANE and SCSI scanner"</a>
|
|||
|
<!-- nextthread="start" -->
|
|||
|
<!-- reply="end" -->
|
|||
|
</ul>
|