File: pxl1010.xml

package info (click to toggle)
foomatic-db 20161201-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 403,348 kB
  • ctags: 24
  • sloc: xml: 280,777; sh: 153; makefile: 114; python: 8
file content (53 lines) | stat: -rw-r--r-- 2,424 bytes parent folder | download | duplicates (5)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<driver id="driver/pxl1010">
  <name>pxl1010</name>
  <obsolete replace="hplip" />
  <thirdpartysupplied />
  <execution>
    <ghostscript />
    <prototype>gs -q -dBATCH -dPARANOIDSAFER -dNOPAUSE -dNOMEDIAATTRS -dNOINTERPOLATE -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}'</prototype>
    <ppdentry>
      *DefaultResolution: 600dpi
    </ppdentry>
  </execution>
  <comments>
    <en>
    
    &quot;pxl1010&quot; is not a new driver, but a special way of using the
    &quot;pxlmono&quot; 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.&lt;p&gt;

    Simply using &quot;pxlmono&quot; does not print anything and using a PCL-5e
    driver (HPIJS, &quot;ljet4&quot;, ...) leads in principle to the jobs being
    printed, but sometimes the printer crashes with an &quot;Unsupported
    personality: PCL&quot; message.&lt;p&gt;

    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 &quot;magic&quot; 8-byte sequence.&lt;p&gt;

    A Ghostscript bug in the driver breaks paper input tray
    selection. This &lt;a
    href=&quot;http://www.openprinting.org/download/printing/ghostscript-pxl-patches/inputslot.patch&quot;&gt;patch&lt;/a&gt;
    for GPL Ghostscript 8.63 fixes the problem and allows to set the
    input tray with the &quot;-dMediaPosition=X&quot; commmand line
    option for Ghostscript. &quot;X&quot; is an integer number which
    depends on the printer model and tray. For HP &quot;0&quot; is
    usually the printer default, &quot;1&quot; automatic selection,
    &quot;2&quot; manual feed, &quot;4&quot; the upper, and
    &quot;5&quot; 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.&lt;p&gt;

  </en>
  </comments>
  <printers>
    <printer>
      <id>printer/HP-LaserJet_1010</id>
    </printer>
    <printer>
      <id>printer/HP-LaserJet_1012</id>
    </printer>
  </printers>
</driver>