Installation of parallel_port printer

Hi,

I have installed a parallel_port card to use my old Laserjet printer. The system seems to recognize the card quite well but somehow I do not manage to correctly configure the Parport_pc module.

Here are some outputs:

lspci -v
1284])
Subsystem: Device a000:2000
Flags: fast devsel, IRQ 19
I/O ports at d010 [size=8]
I/O ports at d000 [size=8]
Memory at df201000 (32-bit, non-prefetchable) [size=4K]
Memory at df200000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Power Management version 3
Capabilities: [80] Express Legacy Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Kernel driver in use: parport_serial

Then I enter sudo modprobe parport_pc io=0xd0100 irq=19

But still get the following:
root@morpheus:~# lsmod | grep parport
parport_serial 16384 0
parport_pc 32768 3 parport_serial
parport 49152 3 lp,ppdev,parport_pc

For me the problem seems to be that parport_pc and the card uses parport_serial. How can I change this?

Thanx
Raimund

I believe the answer might be in this thread.
https://bbs.archlinux.org/viewtopic.php?id=169163

Basically unload parport_serial and load only parport_pc.

Hi,

I still can not get it running.
Actually I am really not sure what is the problem.

To start again:

I installed a PCIe parallel port card for my LaserJet. I think the card is detected.
lspci -v gives the following result for the card:

03:00.2 Parallel controller: MosChip Semiconductor Technology Ltd. PCIe 9912 Multi-I/O Controller (prog-if 03 [IEEE1284])
Subsystem: Device a000:2000
Flags: fast devsel, IRQ 19
I/O ports at d010 [size=8]
I/O ports at d000 [size=8]
Memory at df201000 (32-bit, non-prefetchable) [size=4K]
Memory at df200000 (32-bit, non-prefetchable) [size=4K]
Capabilities:
Kernel driver in use: parport_serial

lsmod gives the following:

lsmod | grep parport
parport_serial 16384 0
parport_pc 32768 3 parport_serial
parport 49152 3 lp,ppdev,parport_pc

and dmesg shows:
dmesg | grep parport
[ 2.475861] parport_pc 00:01: reported by Plug and Play ACPI
[ 2.475947] parport0: PC-style at 0x378, irq 5 [PCSPP]
[ 2.573654] lp0: using parport0 (interrupt-driven).
[ 2.628260] parport_serial 0000:03:00.2: enabling device (0000 -> 0003)
[ 2.628443] parport1: PC-style at 0xd010 (0xd000), irq 19
[ 2.689096] parport1: Legacy device
[ 2.689161] lp1: using parport1 (interrupt-driven).

in the printers.conf file from CUPS the printer definition for the interface is:
DeviceURI parallel:/dev/lp0

But if I try to print a test page just nothing happens only the print job shows up in the queue.

I unload and reload the modulroot@morpheus:~# modprobe -r lp
root@morpheus:~# modprobe -r parport_pc
modprobe: FATAL: Module parport_pc is in use.
root@morpheus:~# lsmod | grep parport
parport_serial 16384 0
parport_pc 32768 1 parport_serial
parport 49152 2 ppdev,parport_pc
root@morpheus:~# modprobe -r parport_serial
root@morpheus:~# lsmod | grep parport
parport 49152 1 ppdev
root@morpheus:~# modprobe parport_pc io=0x0d10 irq=19
root@morpheus:~# modprobe lp
root@morpheus:~#
root@morpheus:~# lsmod | grep parport
parport_pc 32768 1
parport 49152 3 lp,ppdev,parport_pces but nothing changed. I did the following:

Any idea?

Thanx
Raimund

Please use a code box or pastbin when adding logs or output of length like this.
We don’t want your account to be flagged as spam by the bot.

Hi,

I found the solution.
The problem was that I did not modprobe lp after modprobe parport_pc.

Works now;-)

Raimund

Hi,

it’s me again. Somehow it stopped working and I do not know what happened.

To reflect what happened: I installed a parallel port card to connect by old LaserJet printer. The card shows up on lspci -v:

03:00.2 Parallel controller: MosChip Semiconductor Technology Ltd. PCIe 9912 Multi-I/O Controller (prog-if 03 [IEEE1284]) Subsystem: Device a000:2000 Flags: fast devsel, IRQ 255 I/O ports at d010 [disabled] [size=8] I/O ports at d000 [disabled] [size=8] Memory at df201000 (32-bit, non-prefetchable) [disabled] [size=4K] Memory at df200000 (32-bit, non-prefetchable) [disabled] [size=4K] Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+ Capabilities: [78] Power Management version 3 Capabilities: [80] Express Legacy Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting

What changed in the meanwhile is the IRQ. It changed from IRQ 19 to IRQ 255??

If I look at lpinfo -v

root@morpheus:~# lpinfo -v network smb network ipp network ipps network ipp14 network lpd network http network https network socket serial serial:/dev/ttyS0?baud=115200 serial serial:/dev/ttyS1?baud=115200 serial serial:/dev/ttyS4?baud=115200 direct parallel:/dev/lp0 direct hp direct hpfax

Sometimes the parallel port shows up, but more often not.

modprobe -r lp does not work because “FATAL: Module lp is in use.”

I have no glue why it stopped.
Any suggestions?

Thanx
Raimund

The IRQ is probably the issue. Is there any dip switches or pins on the parallel port card to set a static IRQ?
You might think about getting a usb to parallel port adapter:
http://www.amazon.com/gp/product/B00IDU0T1Y/ref=pd_lpo_sbs_dp_ss_1?pf_rd_p=1944687562&pf_rd_s=lpo-top-stripe-1&pf_rd_t=201&pf_rd_i=B0000510T7&pf_rd_m=ATVPDKIKX0DER&pf_rd_r=0B8YEV9DHN1HJB5P9P49

Hi,

I do not think I can statically set the IRQ. But how could the IRQ setting change anyway? Originally it was IRQ 19 which sounds right.

Raimund

In one word the BIOS, the plug and play feature in most bios implimentations allows for the OS to set the IRQ’s as it loads the device / drivers.

Hi,

why did I ever bother with a parallel port card? Just bought a cheap usb->parallel_port cable and it just works.

Raimund

I kind of figured that would be the easiest route to take.
I’m glad to hear that you now have a more permanent solution.
Could you add [SOLVED] to the beginning of your original thread title, this helps other users find solutions faster.