Re: lp module irk

Kevin Lentin (kevinl@cs.monash.edu.au)
Mon, 4 Mar 1996 16:46:17 +1100 (EST)


Alan Cox Wrote ...
>
> > What's got me irked is that every time lp loads, it resets
> > the printer. I've got a BJ200ex, so this means it ejects
> > the current sheet, makes a lot of moving-the-print-head
> > noise, and sets it to "High Quality" mode. This is not
> > acceptable. Furthermore, it starts using the polling code
> > instead of IRQ 7. That's annoying, too.
>
> So fix it. Make it take command options for not resetting
> and IRQ choice.

It does already. The module exports an irq array and a port array I think.
Try: modprobe lp irq=7,0,0
(for lp0, use 0,7,0 for lp1, etc)

Or put an options line in your modules.conf.

Of course, if you do this, the whole thing will OOPS on you :-)

I have a patch to fix this which I will mail out tomorrow or the next day
(the lp module init probing code is a little, ummm, errr, braindead).

> > Also, if I knew how to give lp an option in conf.modules to
> > use irq 7, that would fix that bit. (Tell me how.) But it
> > still isn't what I want, exactly.
>
> insmod can set global variables in the module. Take that and
> the source and have fun.

LOTS OF IT :-)

-- 
[=======================================================================]
[ Kevin Lentin                 |finger kevinl@fangorn.cs.monash.edu.au| ]
[ K.Lentin@cs.monash.edu.au    |for PGP public key block. Fingerprint | ]
[ Macintrash: 'Just say NO!'   |6024308DE1F84314  811B511DBA6FD596    | ]
[=======================================================================]