Technical article 107204

Slow parallel printing

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7

Written · Last revised

Problem

I have a very slow parallel printer. Is this normal for SCO XENIX, or is there something I can do about it?

Solution

 REFERENCE DOCUMENTATION:  DISCOVER, Mar/Apr 1987
                           DISCOVER, Sep/Oct 1987
                           SCO XENIX SYSTEM V Operating System Release 2.2
                             Release Notes, Common Installation/Configuration
                             Questions and Answers
                             SCO XENIX SYSTEM V Operating System Release 2.2
                             Release Notes, "Ignore Deselect Operation"
==============================================================================

1) A common problem when installing a parallel printer is that the printer may pause for one to ten seconds between each line it prints. This may be caused by an interrupt conflict, or a parallel device which doesn't send interrupts properly. Also check the SCO XENIX Release 2.2 Run Time Environment Manual, Hardware Dependent Section, Parallel(HW) for information on hesitation between print jobs.

2)   Check your hardware to make sure there are no devices sharing
     the same interrupt with a parallel port as follows:
a)  Reboot your system using the commands 'reboot', 'shutdown' or the
    string "sync; sync; haltsys".
b)  Write down the devices recognized by SCO XENIX upon bootup.  You
    will see something similar to the following:

Standard Serial Board COM1 has 1 port Parallel port lp0 present

c)  SCO XENIX supports a maximum of two parallel ports (one on an XT).
    The parallel port on the video adapter card is "lp1".  It uses
    interrupt 7.  A parallel port on a serial/parallel card can be
    configured as the main port (lp0), which uses interrupt 7, or the
    alternate port (lp2), which uses interrupt 5.  If two parallel
    ports are installed, configure your ports as "lp2", and either "lp0"
    or "lp1".  The chart below will assist you in avoiding interrupt
    conflicts between two parallel ports.
 ______________________________________________________
|                                                      |
| Parallel port  IRQ      Board                        |
|______________________________________________________|
|                                                      |
|   lp0           7       Main port on ser/parallel bd |
|   lp1           7       Video adapter                |
|   lp2           5       Alt port on ser/parallel bd  |
|______________________________________________________|
d)  Whether one or two parallel ports are present, it is necessary to
    verify that no other devices share the same interrupt as the
    parallel ports.  Some devices can be configured for one of several
    interrupts.  For instance, some tape drive controllers can be
    configured for one of the interrupts 2 through 7.  The second
    version of the Microsoft Bus Mouse may be configured for interrupts
    3, 4, or 5.
3)   If there are no interrupt conflicts, but your printer is still
     printing slowly, it is possible that your parallel card does not
     properly generate interrupts.
a)  If  you are running SCO XENIX 286 Operating System Release 2.1.3
    or earlier you should try a different parallel card.
b)  If using the SCO XENIX Operating System Release 2.2.0 or later,
    either try a different parallel card, or set up the port to use
    polling instead of interrupts.  Polling may slow your system's
    response time, but may preempt the need for a new parallel card.
    To make the system poll a parallel printer you should log in as
    root and do the following:
If you are using lp0, type:
mknod /dev/lp0p c 6 64
chown bin /dev/lp0p
chgrp bin /dev/lp0p
chmod 222 /dev/lp0p
If you are using lp1, type:
mknod /dev/lp1p c 6 65
chown bin /dev/lp1p
chgrp bin /dev/lp1p
chmod 222 /dev/lp1p
If you are using lp2, type:
mknod /dev/lp2p c 6 66
chown bin /dev/lp2p
chgrp bin /dev/lp2p
chmod 222 /dev/lp2p

For a complete discussion on setting up a polled device, refer to the script in this database on the subject of "Parallel Printer Slow printing in 2.2.".

Run lpinit to inform the spooler of the new parallel
polling device.  When asked to choose a device for the
printer enter lp0p, lp1p or lp2p instead of choosing one
of the standard parallel devices listed.
c)  If your printing speed is on the order of 4 seconds per line,
    your printer may be deselecting itself after receiving a line of
    text. This behavior has been seen on some models of TANDY printers.
    Patches for Rel 2.2.1 286/386 systems are found in the Operating
    System Release Notes, page 20, under 3.3.2 "Ignore Deselect
    Operation."
d)  As a last resort, try modifying the driver variables, "paspincnt"
    and "pabusynct."  Refer to the script in this database on the
    subject of "Slow Parallel Printing with 2.2.0 & 2.2.1".
NOTE:    Alternatively, consider moving the printer to the network with a
         Parallel to Network solution such as the HP JetDirect Port and print
         via hpnpcfg or lpd printing over the network.

From the Xinuos technical article database, record 107204. Reproduced with permission. The original is at www.sco.com/ta/107204, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.