sane-project-website/old-archive/2001-01/0024.html

140 wiersze
4.9 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: Question: automatic preloading scsi/sg modules as n</TITLE>
<META NAME="Author" CONTENT="Reinout Wijnveen (reinout@mktaal.nl)">
<META NAME="Subject" CONTENT="Question: automatic preloading scsi/sg modules as non-root">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Question: automatic preloading scsi/sg modules as non-root</H1>
<!-- received="Wed Jan 3 08:48:09 2001" -->
<!-- isoreceived="20010103164809" -->
<!-- sent="Wed, 3 Jan 2001 17:41:13 -0500" -->
<!-- isosent="20010103224113" -->
<!-- name="Reinout Wijnveen" -->
<!-- email="reinout@mktaal.nl" -->
<!-- subject="Question: automatic preloading scsi/sg modules as non-root" -->
<!-- id="01010318053805.01906@takke" -->
<STRONG>From:</STRONG> Reinout Wijnveen (<A HREF="mailto:reinout@mktaal.nl?Subject=Re:%20Question:%20automatic%20preloading%20scsi/sg%20modules%20as%20non-root&In-Reply-To=&lt;01010318053805.01906@takke&gt;"><EM>reinout@mktaal.nl</EM></A>)<BR>
<STRONG>Date:</STRONG> Wed Jan 03 2001 - 14:41:13 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0025.html">Henning Meier-Geinitz: "Re: SANE backend for Mustek 1200UB released by Mustek"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0023.html">Aristo: "Re: SANE backend for Mustek 1200UB released by Mustek"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#24">[ date ]</A>
<A HREF="index.html#24">[ thread ]</A>
<A HREF="subject.html#24">[ subject ]</A>
<A HREF="author.html#24">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi,
<BR>
<P>I have a problem scanning as non-root as long as the modules are not loaded.
<BR>
<P>I'm using a HP6200 scanner with a Tekram 315 SCSI card (i have on board a
<BR>
7880 SCSI controller for disks and CD ROM) and kernel 2.4.0-prerelease with
<BR>
RedHat 7.0 and the sane software that was delivered with RedHat 7.0. I patched
<BR>
the kernel to get the Tekram card supported. This set-up works quite well,
<BR>
although not perfect.
<BR>
<P>I added this to my modules.conf to get the Tekram module loaded as soon as i
<BR>
access the scanner:
<BR>
#######################################
<BR>
# Preload Tekram module before sg module
<BR>
alias char-major-21 sg
<BR>
pre-install sg modprobe -k dc395x_trm
<BR>
#######################################
<BR>
If I issue scanimage -L as root the modules are loaded and i get the correct
<BR>
answer:
<BR>
<P>device `hp:/dev/scanner' is a Hewlett-Packard C6270A flatbed scanner
<BR>
<P>If I do this as a normal user it doesn't work and the debug says this:
<BR>
<P>[reinout@takke /tmp]$ scanimage -L
<BR>
[sanei_debug] Setting debug level of hp to 128.
<BR>
[hp] init called
<BR>
[hp] get_devices called
<BR>
[hp] hp_read_config: hp backend v0.88 starts reading config file
<BR>
[hp] hp_read_config: processing line &lt;scsi HP&gt;
<BR>
[hp] hp_read_config: processing line &lt;/dev/scanner&gt;
<BR>
[hp] hp_read_config: attach scsi HP
<BR>
[hp] hp_read_config: attach /dev/scanner
<BR>
[hp] hp_get_dev: New device /dev/scanner, connect-scsi, scsi-request=1
<BR>
[hp] scsi_new: open failed (Invalid argument)
<BR>
[hp] /dev/scanner: Can't open scsi device
<BR>
[hp] exit called
<BR>
<P>If I preload the Tekram module all works fine, but i'd prefer to load it
<BR>
automatically.
<BR>
<P>Any hints or specific documentation to get this working?
<BR>
<P><PRE>
--
<P>Regards,
<P>Reinout Wijnveen
<A HREF="mailto:reinout@mktaal.nl?Subject=Re:%20Question:%20automatic%20preloading%20scsi/sg%20modules%20as%20non-root&In-Reply-To=&lt;01010318053805.01906@takke&gt;">reinout@mktaal.nl</A>
<P>&quot;All who believe in psychokinesis raise my hand&quot;
<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:%20Question:%20automatic%20preloading%20scsi/sg%20modules%20as%20non-root&In-Reply-To=&lt;01010318053805.01906@takke&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0025.html">Henning Meier-Geinitz: "Re: SANE backend for Mustek 1200UB released by Mustek"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0023.html">Aristo: "Re: SANE backend for Mustek 1200UB released by Mustek"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#24">[ date ]</A>
<A HREF="index.html#24">[ thread ]</A>
<A HREF="subject.html#24">[ subject ]</A>
<A HREF="author.html#24">[ 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>Wed Jan 03 2001 - 08:48:40 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>