Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Feb 2005 18:42:53 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        Brian John <brianjohn@fusemail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: trouble printing
Message-ID:  <20050214174253.GC65365@slackbox.xs4all.nl>
In-Reply-To: <3151.209.87.176.132.1108400766.fusewebmail-19592@www.fusemail.com>
References:  <3151.209.87.176.132.1108400766.fusewebmail-19592@www.fusemail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050214174253.GC65365>