pxl1010
gs -q -dBATCH -dPARANOIDSAFER -dNOPAUSE -sDEVICE=pxlmono%A%Z -sOutputFile=- - | perl -0777 -e 'my $d; read(STDIN, $d, 10000); $d =~ s/(ENTER LANGUAGE[^\n]*\n[^\n]*\n[^A]*A)/$1\xc2\x11\x20\x70\x68\xf8\x91\x46/s; print $d; while (read(STDIN, $d, 10000)) {print $d}'
*DefaultResolution: 600dpi
"pxl1010" is not a new driver, but a special way of using the
"pxlmono" Ghostscript driver to make the HP LaserJet 1010 and 1012
work reliably. The trick is to add a special sequence of 8 bytes
at the BeginSession operator of the PCL-XL data stream.<p>
Simply using "pxlmono" does not print anything and using a PCL-5e
driver (HPIJS, "ljet4", ...) leads in principle to the jobs being
printed, but sometimes the printer crashes with an "Unsupported
personality: PCL" message.<p>
Thanks to Carl Michal (michal at physics dot ubc dot ca) for
finding out that. He analyzed the output of the Windows driver,
where he found this "magic" 8-byte sequence.<p>
A Ghostscript bug in the driver breaks paper input tray
selection. This <a
href="http://www.openprinting.org/download/printing/ghostscript-pxl-patches/inputslot.patch">patch</a>
for GPL Ghostscript 8.63 fixes the problem and allows to set the
input tray with the "-dMediaPosition=X" commmand line
option for Ghostscript. "X" is an integer number which
depends on the printer model and tray. For HP "0" is
usually the printer default, "1" automatic selection,
"2" manual feed, "4" the upper, and
"5" the lower tray. Note that for PCL 5/5e these numbers
are different. This patch is required for Ghostscript 8.63 and
older so that tray selection with the PPDs of this site works. The
bug is fixed in Ghostscript 8.64 or newer.<p>
printer/HP-LaserJet_1010
printer/HP-LaserJet_1012