kopia lustrzana https://gitlab.com/sane-project/website
85 wiersze
4.0 KiB
HTML
85 wiersze
4.0 KiB
HTML
<!-- received="Wed Jul 1 12:59:23 1998 PDT" -->
|
|
<!-- sent="Wed, 1 Jul 1998 15:57:58 -0400 (EWT)" -->
|
|
<!-- name="Matto Marjanovic" -->
|
|
<!-- email="maddog@mir.com" -->
|
|
<!-- subject="Re: which driver ?" -->
|
|
<!-- id="m0yrT0w-000J1xC@yoo-hoo.ai.mit.edu" -->
|
|
<!-- inreplyto="which driver ?" -->
|
|
<title>sane-devel: Re: which driver ?</title>
|
|
<h1>Re: which driver ?</h1>
|
|
<b>Matto Marjanovic</b> (<a href="mailto:maddog@mir.com"><i>maddog@mir.com</i></a>)<br>
|
|
<i>Wed, 1 Jul 1998 15:57:58 -0400 (EWT)</i>
|
|
<p>
|
|
<ul>
|
|
<li> <b>Messages sorted by:</b> <a href="date.html#2">[ date ]</a><a href="index.html#2">[ thread ]</a><a href="subject.html#2">[ subject ]</a><a href="author.html#2">[ author ]</a>
|
|
<!-- next="start" -->
|
|
<li> <b>Next message:</b> <a href="0003.html">Matto Marjanovic: "Re: Color Problems with SANE 0.73 and Microtek Scanmaker E6"</a>
|
|
<li> <b>Previous message:</b> <a href="0001.html">Wolfgang Kaess: "HP 6100C + ADF"</a>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
</ul>
|
|
<!-- body="start" -->
|
|
[Anyone have any clues/suggestions as to what is going on?<br>
|
|
The hardware involved is a Microtek 600GS scanner, with the classic<br>
|
|
Adaptec AVA-1502 scsi card, Linux 2.1.107.<br>
|
|
The weird part: scanimage works as non-root, but hangs as root.]<br>
|
|
<p>
|
|
<i>> Date: Wed, 01 Jul 1998 18:06:57 +0200</i><br>
|
|
<i>> From: Oliver Neukum <<a href="mailto:neukum@fachschaft.org.chemie.uni-muenchen.de">neukum@fachschaft.org.chemie.uni-muenchen.de</a>></i><br>
|
|
<p>
|
|
<i>> Hi Matto,</i><br>
|
|
<i>> i fear i have more bad news for you.</i><br>
|
|
<i>> The scanner's firmware has a bug, it crashes when a lun>0 is referred to.</i><br>
|
|
<p>
|
|
Not so unexpected....<br>
|
|
<p>
|
|
<i>> I s this done within SANE ? Might it explain hangs as root ?</i><br>
|
|
<i>> Do you need any more information ?</i><br>
|
|
<i>> A patch against kernel 2.1.107 is attached.</i><br>
|
|
<p>
|
|
Isn't there also a kernel configuration option to disable scanning<br>
|
|
all LUNs? That's usually what you want, unless you have a multi-platter<br>
|
|
CDROM that actually uses them... (Either way, I'll put this info somewhere<br>
|
|
on my web page.)<br>
|
|
<p>
|
|
<i>> i can confirm that my inabillity to scan as root is caused by sane touching</i><br>
|
|
<i>> luns>0.</i><br>
|
|
<i>> The patch to the kernel, which i sent you yesterday allows scanimage to work.</i><br>
|
|
<p>
|
|
Can you tell where this happens? The microtek backend shouldn't touch any<br>
|
|
LUN other than 0 --- is this some other backend? (Are the others commented<br>
|
|
out of dll.conf?) <br>
|
|
<p>
|
|
Also, the "BLIST_NOLUN" designation in the patch only affects how the<br>
|
|
mid-level scsi driver scans the scsi bus --- thus your patch should only<br>
|
|
affect what happens a) when machine boots, b) when a scsi driver module<br>
|
|
is loaded. SANE doesn't cause either, unless you have kerneld set up to<br>
|
|
automatically load the scsi modules.<br>
|
|
<p>
|
|
And... I don't see how any part of SANE does anything differently whether<br>
|
|
or not it is used as root. SANE's only interaction with the Linux system<br>
|
|
is to open/read/write/close the sg devices (which is affected by their<br>
|
|
permissions), and open/read/close "/proc/scsi/scsi". Since you can scan<br>
|
|
as non-root, SANE as root would only be touching *other* sg devices<br>
|
|
differently.<br>
|
|
<p>
|
|
Hmm... of course, I'm looking at 2.0.33 kernel code --- maybe the scsi bus<br>
|
|
is rescanned in the 2.1.107 code? Some drastic difference?<br>
|
|
<p>
|
|
-matt m.<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="0003.html">Matto Marjanovic: "Re: Color Problems with SANE 0.73 and Microtek Scanmaker E6"</a>
|
|
<li> <b>Previous message:</b> <a href="0001.html">Wolfgang Kaess: "HP 6100C + ADF"</a>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
</ul>
|