From owner-freebsd-questions Sat Mar 20 13:54:40 1999 Delivered-To: freebsd-questions@freebsd.org Received: from voicenet.com (mail11.voicenet.com [207.103.0.37]) by hub.freebsd.org (Postfix) with SMTP id F306E15106 for ; Sat, 20 Mar 1999 13:54:19 -0800 (PST) (envelope-from schwenk@voicenet.com) Received: (qmail 29696 invoked from network); 20 Mar 1999 21:53:58 -0000 Received: from delaware124-pri.de.voicenet.com (HELO voicenet.com) (207.103.18.88) by mail11.voicenet.com with SMTP; 20 Mar 1999 21:53:58 -0000 Message-ID: <36F41A28.56617C01@voicenet.com> Date: Sat, 20 Mar 1999 16:59:04 -0500 From: Peter Schwenk Organization: Schwenk X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.1-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Michael Maxwell Cc: freebsd-questions@freebsd.org Subject: Re: Printing and ppbus? References: <19990312022506.A4926@drwho.xnet.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Michael: The same thing is happening with me and my HP LaserJet 4L. Here's my dmesg: *** Begin *** ppc0 at 0x378 irq 7 on isa ppc0: SMC FDC37C665GT chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/15 bytes threshold ppb0: IEEE1284 device found /NIBBLE Probing for PnP devices on ppbus0: ppbus0: HP ENHANCED PCL5,PJL nlpt0: on ppbus 0 nlpt0: Interrupt-driven port ppi0: on ppbus 0 *** End *** I don't see any new devices in my /dev directory to reflect the new devices in the 3.1 kernel. I installed 3.1 from CD and installed the Ghostscript 5.50 package from CD. I was using my script from FBSD 2.2.x days: *** Begin *** # Treat LF as CR+LF # printf "\033&k2G" || exit 2 # # Read first two characters of the file # read first_line first_two_chars=`expr "$first_line" : '\(..\)'` if [ "$first_two_chars" = "%!" ]; then # # It is PostScript; use Ghostscript to scan-convert and print it # /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=ljet3 -sOutputFile=- - \ && exit 0 else # # Plain text or HP/PCL, so just print it directly; print a form # at the end to eject the last page. # echo $first_line && cat && printf "\f" && exit 0 fi exit 2 *** End *** Here's my printcap entry: lp|lj4l|PostScript|HP LaserJet 4L on lpt0:\ :sh:\ :lp=/dev/lpt0:sd=/var/spool/output/lpd/lj4l:\ :lf=/var/log/lpd-errs:\ :if=/usr/local/libexec/hpif: I was beginning to wonder it I needed to MAKEDEV a nlpt0 device, but that doesn't seem possible. I'm trying building the kernel with the old lpt0 device in it, but that seems stupid. Does anyone have updated printing instructions using the new kernel devices? - Peter Schwenk - schwenk@voicenet.com Michael Maxwell wrote: [snip] > However, on FreeBSD 3.1-RELEASE, if I print postscript, I now see the > first few lines of text normally, then things start to fall apart. A > lot of what looks like unprintable control characters start spewing out > of the printer (looks like someone lpr'ed a binary file). > [snip] > -- > Michael Maxwell | http://www.xnet.com/~drwho/ > "American Justice: oxymoron. William J. Clinton: moron." > --M. Maxwell (1999) > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message