setting up HP LaserJet 4 printer with cups and no parallel port option?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
setting up HP LaserJet 4 printer with cups and no parallel port option?
This is really weird.
Last summer I configured cups with no problem on my old desktop with my old trusty HP LaserJet 4 printer.
I wish I took notes, cause I've gotten a new computer that has a parallel port on it and I'm trying to use the web interfact to configure cups.
I've d/l the driver, HP-LaserJet_4-hpijs.ppd, and have placed the file under /usr/share/cups/models, but when I go to configure it under web browser, I don't see a parallel port device.
What port device do I want to configure this under to get it to work?
Also, I don't show anyplace to point cups to the hp.ppd file?
I always go to /etc/rc.d/rc.modules and uncomment the "PC parallel port support" section. After a reboot, when you enter the cups browser it should show you the parallel port device.
I always go to /etc/rc.d/rc.modules and uncomment the "PC parallel port support" section. After a reboot, when you enter the cups browser it should show you the parallel port device.
I can add parport to my rc.modules ok, but when I try to add parport_pc, I get the following error...
Code:
root@ladytron:/lib/modules/2.4.31/kernel/drivers/parport# insmod parport_pc
Using /lib/modules/2.4.31/kernel/drivers/parport/parport_pc.o.gz
/lib/modules/2.4.31/kernel/drivers/parport/parport_pc.o.gz: init_module: Device or resource busy
/lib/modules/2.4.31/kernel/drivers/parport/parport_pc.o.gz: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
dmesg doesn't have any output that I can find, so I'm not sure what is going on here...
But I did hit google and found this old thread, with a PDF doc, but it seems to be pretty old, and I didn't get anything out of it...
There are a couple of modules that need to be uncommented:
lp, parport(parport_pc)
I have found that they are a bit fussy about the SPP/EPP/ECP options in the bios and the wrong setting will give your error.
First, let's make sure we're on the same page. Did you uncomment part of the rc.modules file so that it looks like this?
Code:
#### PC parallel port support ###
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/kernel/drivers/parport/parport_pc.o \
-o -r /lib/modules/$RELEASE/kernel/drivers/parport/parport_pc.o.gz \
-o -r /lib/modules/$RELEASE/kernel/drivers/parport/parport_pc.ko ]; then
# 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/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 ]; then
/sbin/modprobe lp
fi
fi
Second, are you saying that if you type in "dmesg" at the command line, you get no output? Ideally, we should see something like this...
Code:
parport0: PC-style at 0x378 [PCSPP,EPP]
parport0: Printer, Samsung ML-1210
lp0: using parport0 (polling).
lp0: console ready
(but even an error message would help. That might confirm what davidsrsb suggested... a BIOS configuration problem.)
First, let's make sure we're on the same page. Did you uncomment part of the rc.modules file so that it looks like this?
Code:
#### PC parallel port support ###
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/kernel/drivers/parport/parport_pc.o \
-o -r /lib/modules/$RELEASE/kernel/drivers/parport/parport_pc.o.gz \
-o -r /lib/modules/$RELEASE/kernel/drivers/parport/parport_pc.ko ]; then
# 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/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 ]; then
/sbin/modprobe lp
fi
fi
Second, are you saying that if you type in "dmesg" at the command line, you get no output? Ideally, we should see something like this...
Code:
parport0: PC-style at 0x378 [PCSPP,EPP]
parport0: Printer, Samsung ML-1210
lp0: using parport0 (polling).
lp0: console ready
(but even an error message would help. That might confirm what davidsrsb suggested... a BIOS configuration problem.)
I've uncommented like the example above and:
-still no parallel port option when I configure cups via the
web browser
-nothing under dmesg, when I check that. I even grep for parport0 and lp0
-I haven't checked BIOS yet for the SPP/EPP/ECP options, how do I know what to look for?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.