[sane-devel] Scanner Basics

Philippe Berini philippe@berini.org
Sat, 16 Nov 2002 22:46:55 +0100


Le Sam 16 Novembre 2002 21:55, Karl F. Larsen a écrit :
> On Sat, 16 Nov 2002, Karl Heinz Kremer wrote:
> > On Sat, Nov 16, 2002 at 07:04:44AM -0700, Karl F. Larsen wrote:
> > [ ... ]
> >
> > > 	modprobe scanner vendor=0x04b8 product=0x01f
> > >
> > > Before I did this sane-find-scanner found nothing. After it found my
> > > scanner. I will put this line into the /ect/rc.d/rc.local file so I
> > > don't have to type it in every time.
> >
> > You don't have to that. You can ad the following line to your
> > /etc/modules.conf file:
> > options scanner vendor=0x4b8 product=0x01f
> >
> > Then run /sbin/depmod -a as root user. The next time you (or your
> > machine) loads the scanner module, these parameters will automatically be
> > applied. You can force this by doing the following:
> > /sbin/rmmod scanner ; /sbin/modprobe scanner
> > (again, as root user).
>
> Hi Karl, I find to get scanner into the kernel I must have something in
> /etc/rc.d/rc.local file, and that something can include the vendor and
> product. If you can tell me how to load the scanner module alone some
> other way I'm listening. I could read
> /usr/src/linux/documentation/modules again but I'm tired of all that
> today...:-)

I have had exactly the same problem two days ago (with Mandrake 9.0. and a USB 
scanner Canon N676U).

I had put :
options scanner vendor=0x04a9 product=0x220d
in /etc/modules.conf

but I still was obliged to do a :
modprobe scanner vendor=0x04a9 product=0x220d
every time I wanted to find the scanner with scanimage -L.

Eventually I noticed that with lsmod, the name of the module was "scanner" and 
I added in /etc/modules.conf two lines instead of one:

alias /dev/usb/scanner0 scanner
options scanner vendor=0x04a9 product=0x220d

and now it works without modprobing.

Don't know exactly if it is very correct, but it IS working...

Bye,
-- 
Philippe