l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
November 4: Social gathering
Next Installfest:
TBD
Latest News:
Oct. 24: LUGOD election season has begun!
Page last updated:
2004 Dec 02 15:26

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Slack 10 print problem solved
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Slack 10 print problem solved



On Wed, 1 Dec 2004 20:59:29 -0800
Bill Wells <hammer29@sbcglobal.net> wrote:

> On Wednesday 01 December 2004 10:42 am, Shwaine wrote:
> > On Tue, 30 Nov 2004, Bill Wells wrote:
> > > On Monday 29 November 2004 11:32 am, Shwaine wrote:
> > >> #### Parallel printer support ###
> > >> if cat /proc/ksyms | grep "\[lp\]" 1> /dev/null 2> /dev/null ; then
> > >>    echo "lp support built-in, not loading module" > /dev/null
> > >> else
> > >>    if [ -r /lib/modules/$RELEASE/misc/lp.o \
> > >>         -o -r /lib/modules/$RELEASE/misc/lp.o.gz \
> > >>         -o -r /lib/modules/$RELEASE/kernel/drivers/char/lp.o \
> > >>         -o -r /lib/modules/$RELEASE/kernel/drivers/char/lp.o.gz ];
> > >> then /sbin/modprobe lp
> > >>    fi
> > >> fi
> > >>
> > >> Note the line /sbin/modprobe lp. If it is not working on your system,
> > >> then the if statement to fine the module is failing for some reason.
> > >> RELEASE is set to uname -r. I am still using the default kernel and
> > >> kernel modules that came with Slackware and it works fine. The module
> > >> is found in /lib/modules/2.4.26/kernel/drivers/char/lp.o.gz.
> > >
> > > I am running the 2.6.7 kernel
> >
> > Well, that answers the questions. I have one box with the 2.6.7 kernel,
> > using the kernel modules package including on disk 2 of the Slackware
> > 10.0 set. Assuming that is what you have, the problem is with the if
> > statement in /etc/rc.d/rc.modules. The filename for the module is lp.ko,
> > not lp.o. You need to modify it to thusly to keep compatability with the
> > 2.4.x kernel series:
> >
> > #### Parallel printer support ###
> > if cat /proc/ksyms | grep "\[lp\]" 1> /dev/null 2> /dev/null ; then
> >     echo "lp support built-in, not loading module" > /dev/null
> > else
> >     if [ -r /lib/modules/$RELEASE/misc/lp.o \
> >          -o -r /lib/modules/$RELEASE/misc/lp.o.gz \
> >          -o -r /lib/modules/$RELEASE/kernel/drivers/char/lp.o \
> >          -o -r /lib/modules/$RELEASE/kernel/drivers/char/lp.o.gz \
> >          -o -r /lib/modules/$RELEASE/kernel/drivers/char/lp.ko \
> >          -o -r /lib/modules/$RELEASE/kernel/drivers/char/lp.ko.gz]; then
> >       /sbin/modprobe lp
> >     fi
> > fi
> >
> > Actually, I'm not even sure if the lp.ko.gz line is required. I haven't
> > much kept up on the ins and outs of modules in the 2.6 series. But
> > definately the lp.ko line will be needed or the if statement will fail
> > and it won't even try to modprobe lp.
> 
> sorry . . . don't work for me.  Here is the applicable section of my 
> rc.modules file.  notice that I also changed the parallel port support 
> section to reflect the same file name difference in the 2.6.7 kernel.
> 
> if there is a typo, I haven't been able to see it.  ergo, I have cut and 
> pasted it directly from the file.  if I send print jobs to the printer, I 
> get no output, then when I modprobe lp and or parport_pc, all jobs in the 
> queue begin to print.
> 
> tis perplexing.  I can live with the modprobe calls in rc.local, I guess it 
> is just not elegant.
> 
> #### PC parallel port support ###
> tupport ###
> if cat /proc/ksyms | grep "\[parport_pc\]" 1> /dev/null 2> /dev/null ; then
>   echo "parport0 is built-in, not loading module" > /dev/null
> else
>   if [ -r /lib/modules/$RELEASE/misc/parport_pc.o \
>        -o -r /lib/modules/$RELEASE/misc/parport_pc.o.gz \
>        -o -r /lib/modules/$RELEASE/kernel/drivers/parport/parport_pc.o \
>        -o -r /lib/modules/$RELEASE/kernel/drivers/parport/parport_pc.o.gz

missing a backslash at the end of the line here.

>        -o -r /lib/modules/$RELEASE/kernel/drivers/parport/parport_pc.ko\
>        -o 
> -r /lib/modules/$RELEASE/kernel/drivers/parport/parport_pc.k0.gz ]; then

better not let this line wrap. otherwise, you need a backslash after the -o

>     # Generic setup example:
>     /sbin/modprobe parport_pc
>     # Hardware specific setup example (required for PLIP and better
>     # performance in general):
>     /sbin/modprobe parport_pc io=0x378 irq=7
>   fi
> fi
> 
> 
> #### Parallel printer support ###
> if cat /proc/ksyms | grep "\[lp\]" 1> /dev/null 2> /dev/null ; then
>   echo "lp support built-in, not loading module" > /dev/null
> else
>   if [ -r /lib/modules/$RELEASE/misc/lp.o \
>        -o -r /lib/modules/$RELEASE/misc/lp.o.gz \
>        -o -r /lib/modules/$RELEASE/kernel/drivers/char/lp.o \
>        -o -r /lib/modules/$RELEASE/kernel/drivers/char/lp.o.gz \
>        -o -r /lib/modules/$RELEASE/kernel/drivers/char/lp.ko \
>        -o -r /lib/modules/$RELEASE/kernel/drivers/char/lp.ko.gz ]; then
>     /sbin/modprobe lp
>   fi
> fi
> 
> ### Parallel port IP ###
> #/sbin/modprobe plip
> 
> ### Filesystem Quota support ###
> 
> > _______________________________________________
> > vox-tech mailing list
> > vox-tech@lists.lugod.org
> > http://lists.lugod.org/mailman/listinfo/vox-tech
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org


-- 
I usually have a GPG digital signature included as an attachment.
See http://www.gnupg.org/ for info about these digital signatures.

Attachment: pgp00003.pgp
Description: PGP signature

_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.