From owner-freebsd-questions@FreeBSD.ORG Mon Feb 14 17:41:37 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33EEF16A4CE for ; Mon, 14 Feb 2005 17:41:37 +0000 (GMT) Received: from smtp-vbr5.xs4all.nl (smtp-vbr5.xs4all.nl [194.109.24.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9841443D2D for ; Mon, 14 Feb 2005 17:41:36 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr5.xs4all.nl (8.12.11/8.12.11) with ESMTP id j1EHfZIh011301; Mon, 14 Feb 2005 18:41:35 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id A1EF76240; Mon, 14 Feb 2005 18:42:53 +0100 (CET) Date: Mon, 14 Feb 2005 18:42:53 +0100 From: Roland Smith To: Brian John Message-ID: <20050214174253.GC65365@slackbox.xs4all.nl> Mail-Followup-To: Brian John , freebsd-questions@freebsd.org References: <3151.209.87.176.132.1108400766.fusewebmail-19592@www.fusemail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jy6Sn24JjFx/iggw" Content-Disposition: inline In-Reply-To: <3151.209.87.176.132.1108400766.fusewebmail-19592@www.fusemail.com> User-Agent: Mutt/1.4.2.1i X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! Organization: Me, organized? X-Virus-Scanned: by XS4ALL Virus Scanner cc: freebsd-questions@freebsd.org Subject: Re: trouble printing X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 17:41:37 -0000 --jy6Sn24JjFx/iggw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 14, 2005 at 11:06:06AM -0600, Brian John wrote: > Hello, > I tried this question on the newbies list first but didn't get a response > so I'm trying here. This is the right list for questions. > I am having trouble printing from my HP Deskjet 710C printer. It > is hooked up via parallel port and I can print fine with it from > Windows. However, I can't get it to work in FreeBSD. I followed the > instructions here: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-intro-= setup.html Arg. The Deskjet 710C is one of those stupid printers without it's own processor. You need a special program to convert print data into ppa format, which is the only format it understands. See: http://www.linuxprinting.org/show_printer.cgi?recnum=3DHP-DeskJet_710C > Everything seems to be fine. But when I try to test the printer using a > command similar to this: >=20 > # cat file > /dev/lptN Don't do this. Always work via the spooler. See below. =20 > or this: >=20 > lptest > /dev/lpt0 lptest just prints plain text. Your printer doesn't understand that. It uses the host CPU for processing the print data: =46rom http://pnm2ppa.sourceforge.net/: PPA (Printing Performance Architecture) is a closed, proprietary protocol developed by Hewlett Packard for a short-lived series of DeskJet printers. In essence, the PPA protocol moves the low-level processing of the data to the host computer rather than the printer. This allows for a low-cost (to produce) printer with a small amount of memory and computing power. However, in practice the printer was often as expensive as more capable printers and HP has since discontinued the use of PPA in favour of returning to PCL3e in their latest USB-based printers. > nothing happens. Does anyone have a clue what I might have done wrong? You need a special driver to talk to this printer. It is called pnm2ppa and you can find it in ports. More info on adriver for this printer can be found at:=20 http://www.linuxprinting.org/show_driver.cgi?driver=3Dpnm2ppa&fromprinter= =3DHP-DeskJet_710C If you want the printer to handle different file formats transparently, you should install a print filter like apsfilter. You should program apsfilter to output stuff in pnm format, which should then be piped through pnm2ppa and then to the spooler. I know this sounds complicated, and that's because these printers suck. You have to jump through a lot of hoops to get them working. In short, what has to happen for each print job is: 1) Convert the file format to pnm. This is where apsfilter comes in, unless you want to do it by hand every time. 2) The output from apsfilter should be fed to pnm2ppa, using the unix mechanism called a pipe. The apsfilter manual has info on how to set this up. I haven't used apsfilter in a loooong time. 3) The output from pnm2ppa is fed to the spooler, which sends it to the printer. By installing apsfilter and pnm2ppa you can make this process automatic. Hope this helps. Roland --=20 R.F. Smith /"\ ASCII Ribbon Campaign r s m i t h @ x s 4 a l l . n l \ / No HTML/RTF in e-mail http://www.xs4all.nl/~rsmith/ X No Word docs in e-mail public key: http://www.keyserver.net / \ Respect for open standards --jy6Sn24JjFx/iggw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCEOMdEnfvsMMhpyURAlqBAJ9gZnNd1T/GiLWlIvAVSWradcR5ZwCfR454 9PXicCmXVBB8Mq7udD6AMWI= =Ity8 -----END PGP SIGNATURE----- --jy6Sn24JjFx/iggw--