1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
<driver id="driver/pxl1010">
<name>pxl1010</name>
<url></url>
<execution>
<ghostscript />
<prototype>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}' | perl -p -e 'if (! $did) { s/\xc0.\xf8\x26/\xc0%E\xf8\x26/ && $did++; }'</prototype>
<ppdentry>
*DefaultResolution: 600dpi
</ppdentry>
</execution>
<comments>
<en>
"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>
</en>
</comments>
<printers>
<printer>
<id>printer/HP-LaserJet_1010</id>
</printer>
<printer>
<id>printer/HP-LaserJet_1012</id>
</printer>
</printers>
</driver>
|