Summary: Printer Problem with the HP Laserjet

From: Eric Fung (ericf%mapper.usc.edu@usc.edu)
Date: Wed May 09 1990 - 20:19:36 CDT


Thanks to all the people who responsed.

A while ago we had a problem with printing using the HP Laserjet III through
the parallel port (/dev/pp0) of the Sun 3/80. As some of the folks
pointed out, there is a bug (ID 1026987) in the parallel port driver pp.o.
Last week, we finally got the patch, rebuilded our kernel, and the printer
is working fine.

Thanks to Erik Deumens (deumens@qtp.ufl.edu) and Bill McSephney
(bill@jtsv16.jts.com) who pointed out what the printcap and the output
filter should look like:

# Printcap entry
#
l-kap403|hplj|hplaserjet|KAP 403A HP Laser Jet III:\
        :lp=/dev/pp0:sd=/usr/spool/print/l-kap403:\
        :lg=geomap,staffops,sups,ops,operator,unix-sys:\
        :fs#06020:fc#0300:xc#040:pw#80:mx#0:\
        :sh:ff:tr=\EE\r:\
        :ms=-parity,-cstopb,-clocal,-cread,crtscts,ixon,-opost:\
        :lf=/usr/adm/lpd-errs:\
        :of=/usr/lib/hplaserjet:

#!/bin/csh -f
#
# @(#)hplaserjet 1.1 88/10/27 Sun Microsystems Inc 1988
#
# This file should be located in /usr/lib
#
# This is the output filter for use wth HP LaserJet I and II.
# It is called via the of entry in the generic_hp printcap entry.
# All that it does is send the escape sequence to the printer, so that:
# CR is mapper to CR
# LF is mapped to CR LF
# FF is mapped to CR FF
# and the first two lines reset the printer before each printing
#
/usr/bin/echo -n '^[E'
sleep 5
/usr/bin/echo -n '^[&k2G'
/usr/bin/cat
if ($status == 0) then
  exit 0
else
  exit 1
endif

#Note: ^[ is the escape sequence

Eric
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Eric Fung, System Manager Internet: ericf@mapper.usc.edu
 Geographical Information System ericf%chaph@usc.edu
 Department of Geography Off. Voice: (213) 743-2366
 Univeristy of Southern California FAX: (213) 741-0642
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:05:57 CDT