Comment 3 for bug 1342979

Revision history for this message
Phil Pemberton (philpem) wrote :

Sounds like my "ESC i A" patch still isn't quite right then... This is the difficulty; I only have a QL-500 (paper label printer) and a PT-2450DX (plastic label printer) to hand. The QL series are the ones which support the "ESC i A" (auto cutter) command; if you send that to a PT-series printer, it'll throw an Interface Error.

This is actually a mistake on my part, on line 43 of my patch (debian/patches/send-esc-i-A-for-QL-only.patch):
+ job_options->pixel_xfer == ULP);
Should be:
+ job_options->pixel_xfer);

This would have the effect of breaking emit_page_cmds() so that if the printer is in ULP mode, the emit_feed_cut_mirror() function is passed a 'true' (probably a 1), which is equal to pixel_xfer being RLE. That means emit_feed_cut_mirror() won't send ESC i A because it thinks it's talking to a P-Touch PT label printer.

I've noticed some other issues with ptouch-driver - notably the MediaType isn't being passed through. I've done some work this week to clean up some of the cruft in the code (get rid of the deprecation warnings during 'make'). There are some problems in that some print options aren't being passed through to the driver correctly (MediaType is one).

Current bug list I'm working on:

  * Print resolution for the QL-500 is wrong, it should be 300x275dpi for both (the QL-550 was fixed but not the QL-500)
  * MediaType doesn't seem to make it through from the PPD to the driver, so the driver never sets the continuous tape / cut labels option isn't loaded correctly. (I've changed this from a page option to a job option)

I'll see if I can submit a patch for this bug -- I just need to try and remember how to do that, it's been a while!