LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-20-2006, 10:06 PM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
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?

thanks
 
Old 06-20-2006, 10:15 PM   #2
jimX86
Member
 
Registered: Mar 2006
Distribution: Slackware64 -current
Posts: 268
Blog Entries: 1

Rep: Reputation: 79
Are the parport_pc and parport modules loaded?

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.
 
Old 06-22-2006, 09:21 PM   #3
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by jimX86
Are the parport_pc and parport modules loaded?

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...
 
Old 06-22-2006, 09:44 PM   #4
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
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.
 
Old 06-22-2006, 11:19 PM   #5
jimX86
Member
 
Registered: Mar 2006
Distribution: Slackware64 -current
Posts: 268
Blog Entries: 1

Rep: Reputation: 79
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.)
 
Old 06-29-2006, 09:10 PM   #6
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by jimX86
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?

thanks
 
Old 06-29-2006, 09:37 PM   #7
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
Waht is your PC/motherboard?
EPP and ECP have a lot of problems eg
http://lists.infradead.org/pipermail...st/000338.html
 
Old 06-29-2006, 09:41 PM   #8
jimX86
Member
 
Registered: Mar 2006
Distribution: Slackware64 -current
Posts: 268
Blog Entries: 1

Rep: Reputation: 79
To be honest, I was expecting an error in dmesg. Maybe try switching modes in the BIOS? This would be typical...

I/O Device Configuration

Parallel Port [Enabled]
Base I/O Address [378]
Mode [ECP]
Interrupt [IRQ7]
 
Old 06-29-2006, 10:53 PM   #9
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by davidsrsb
Waht is your PC/motherboard?
EPP and ECP have a lot of problems eg
http://lists.infradead.org/pipermail...st/000338.html

I have the following MB:
Asus K8N-E Socket 754 Motherboard w/AMD chip
 
Old 06-30-2006, 05:01 AM   #10
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
Thats a NForce3 Pro 250 board,
It has been known to work, see:
http://www.keylabs.com/linux/results/asus_k8n-e.html
Maybe the parallel port is disabled in the bios? It is an option to do so.
 
Old 06-30-2006, 09:08 PM   #11
Lionel HP
LQ Newbie
 
Registered: Jun 2006
Posts: 1

Rep: Reputation: 0
HP 4MP laser printer driver

I have release 10.2 installed but I do not have the HP_LaserJet_4MP.ppd driver for my printer.

Any suggestions.

TIA.
Lionel
 
Old 07-02-2006, 11:42 AM   #12
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by davidsrsb
Thats a NForce3 Pro 250 board,
It has been known to work, see:
http://www.keylabs.com/linux/results/asus_k8n-e.html
Maybe the parallel port is disabled in the bios? It is an option to do so.
Ok, I checked the BIOS and the parallel port does show disabled.

There are four options
-disabled
-378
-278
-3BC

What do I change it to? I checked Google, and didn't see any options?

thanks
 
Old 07-02-2006, 11:43 AM   #13
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by Lionel HP
I have release 10.2 installed but I do not have the HP_LaserJet_4MP.ppd driver for my printer.

Any suggestions.

TIA.
Lionel
http://www.linuxprinting.org/
 
Old 07-02-2006, 11:58 AM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,347

Rep: Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146
The I/O address for printer port 1 is 378
 
Old 07-02-2006, 02:06 PM   #15
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by michaelk
The I/O address for printer port 1 is 378
KEWL, that got it, thanks!

Now, I have to figure out how to configure this printer, cause I picked up the HP nic for it, so I'll have to play around with that now.

...its always something...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP: Cannot Configure CUPS to Recognize Parallel Printer Port as a Printing Device! glaucon829 Linux - Newbie 4 06-05-2007 10:38 AM
HP LaserJet 2100 Parallel Printer on SUSE 10.0 aherm Linux - Hardware 1 10-20-2005 02:16 PM
cups with no parallel port???? hraposo Slackware 3 09-27-2004 08:46 AM
CUPS doesn't see my parallel port mixtr Slackware 3 07-27-2004 09:51 PM
cups and parallel printer Rognon Linux - Hardware 1 03-04-2004 06:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration