Installing parport module

Asked by Martin Thomas

I have recently installed Ubuntu Linux. I have installed my Canon-BJC 265sp printer through CUPS. Or at least it looks as if I have. The CUPS web interface shows:

Description: CANON
Location: Local Printer
Make and Model: Canon BJC-265SP Foomatic/bjc250gs (recommended)
Printer State: processing, accepting jobs, published.
Device URI: canon:/dev/lp0

Only, when I tried to print a test page, or anything else, the light on the printer flashes, paper starts feeding - and then nothing happens.

1. /etc/modules reads as follows:

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

lp
psmouse

I've had it suggested that I should have parport installed. Is that right, and how do I install it? Do I just add parport to /etc/modules?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Alan Pope 🍺🐧🐱 🦄
Solved:
Last query:
Last reply:
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) said :
#1

> 1. /etc/modules reads as follows:
> lp
> psmouse
>
> I've had it suggested that I should have parport installed. Is that right, and how do I install it? Do I just add parport to /etc/modules?
>

/etc/modules is there to allow you to specify additional modules over and
above the ones already automatically loaded at boot time.

You can see all modules that are currently loaded (that's the ones that have
been automatically loaded, plus any you specify in /etc/modules, with the
following command:-

$ lsmod

It's likely to be a big list, so to filter it to show only the parport
module you can use grep like this:-

$ lsmod | grep parport

Here's what happens when I run it.

alan@wopr:~$ lsmod | grep parport
parport_pc 37796 1
parport 39496 2 lp,parport_pc

So that's good, and unsurprising given this PC has a parallel port.

In your message you said the light flashes on the printer which I guess
indicates it's receiving data. As such I'd probably rule out the parallel
port. Try using a generic ascii driver, something that will send some basic
text to the printer without using any whacky control codes. That way you can
prove the printer works, and possibly point the finger of destiny at the
printer driver (ppd).

Revision history for this message
Martin Thomas (martin-workersliberty) said :
#2

I get:

martin@Ava:~$ lsmod | grep parport
parport_pc 35780 2
parport 36296 3 ppdev,lp,parport_pc

So is that all right? Should I worry about the "ppdev" bit?

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) said :
#3

> martin@Ava:~$ lsmod | grep parport
> parport_pc 35780 2
> parport 36296 3 ppdev,lp,parport_pc
>
> So is that all right? Should I worry about the "ppdev" bit?
>

Yes, it's fine. The ppdev module provides some additional functionality. I
suspect that I don't have it because I don't have any parallel devices
connected.

Revision history for this message
Martin Thomas (martin-workersliberty) said :
#4

Refer to ticket 2077