Merge lp:~philpem/ubuntu/utopic/ptouch-driver/fix-for-1342979 into lp:ubuntu/vivid/ptouch-driver

Proposed by Phil Pemberton
Status: Rejected
Rejected by: Sebastien Bacher
Proposed branch: lp:~philpem/ubuntu/utopic/ptouch-driver/fix-for-1342979
Merge into: lp:ubuntu/vivid/ptouch-driver
Diff against target: 40 lines (+9/-2)
3 files modified
debian/changelog (+7/-0)
debian/patches/send-esc-i-A-for-QL-only.patch (+1/-1)
rastertoptch.c (+1/-1)
To merge this branch: bzr merge lp:~philpem/ubuntu/utopic/ptouch-driver/fix-for-1342979
Reviewer Review Type Date Requested Status
Sebastien Bacher Disapprove
Till Kamppeter (community) Approve
Review via email: mp+255190@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks. Do you plan to get that change in Debian as well? We are currently in sync and it would be better if we could keep things this way :-)

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

@Sebastien: I'd love to, but I haven't the faintest idea how!

I actually spent the long weekend fixing a lot of the bugs in the driver: https://bitbucket.org/philpem/printer-driver-ptouch/commits/all

It now works (or "can be configured to work"). Next thing I need to do is remove the "advance media" option; only "advance the tape at the end of the job" produces valid P-Touch print code.

I've tested the tip of the above Mercurial repository on a QL-500 (QL-series paper label printer, no auto cutter) and a PT-2450DX (PT-series "TZ Tape" 24mm plastic laminated tape label printer with auto cutter). It worked on both. Ideally the code needs testing on a P-touch QL printer with an auto cutter (a QL-550 or 560 would be good), but I can see no reason why it wouldn't work.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Looks OK for me.

By making a Ubuntu-only package for now and back-merge it into Debian later we can still get it into Vivid before Final Freeze.

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

This still doesn't get the driver working perfectly... other patches are needed (see my bitbucket) to generate valid control codes for QL series printers.

I'm putting the finishing touches on my changes and discussing trying to get those into Debian, which should get the driver into a usable state. If there's a definite preference to get these into Vivid ASAP, I can look at doing another merge request or a patch separate to that.

When is final freeze planned?

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

> This still doesn't get the driver working perfectly... other patches are
> needed (see my bitbucket) to generate valid control codes for QL series
> printers.

Substitute "QL and PT series printers". Looking back at my notes, the driver has problems with margins and paper feed, generating incorrect control codes.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

OK, so I will not upload a new Ubuntu package yet.

Final Freeze is April 16, a week from now. If we do not get the full fix done by then we will make an SRU.

https://wiki.ubuntu.com/VividVervet/ReleaseSchedule

Revision history for this message
Arnold Schrader (r3g3n58urg) wrote :

Great, cutting is back now...

works properly with fix.

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

it has been superseeded by the other change mentioned, closing as rejected then

review: Disapprove

Unmerged revisions

11. By Phil Pemberton

Fix the "ESC i A" (enable cutter) command patch to correctly send only on
printers which support it. (LP: #1342979)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2014-03-06 16:23:54 +0000
3+++ debian/changelog 2015-04-03 21:03:26 +0000
4@@ -1,3 +1,10 @@
5+ptouch-driver (1.3-8ubuntu1) unstable; urgency=medium
6+
7+ * Fix the "ESC i A" (enable cutter) command patch to correctly send only on
8+ printers which support it. (LP: #1342979)
9+
10+ -- Philip Pemberton <philpem@philpem.me.uk> Fri, 03 Apr 2015 09:49:33 +0100
11+
12 ptouch-driver (1.3-8) unstable; urgency=medium
13
14 [ Philip Pemberton ]
15
16=== modified file 'debian/patches/send-esc-i-A-for-QL-only.patch'
17--- debian/patches/send-esc-i-A-for-QL-only.patch 2014-03-06 16:23:54 +0000
18+++ debian/patches/send-esc-i-A-for-QL-only.patch 2015-04-03 21:03:26 +0000
19@@ -40,7 +40,7 @@
20 cut_media == CUPS_CUT_PAGE,
21 - mirror == CUPS_TRUE);
22 + mirror == CUPS_TRUE,
23-+ job_options->pixel_xfer == ULP);
24++ job_options->pixel_xfer);
25 /* Set media and quality if label preamble is requested */
26 unsigned page_size_y = new_page_options->page_size [1];
27 unsigned image_height_px = lrint (page_size_y * vres / 72.0);
28
29=== modified file 'rastertoptch.c'
30--- rastertoptch.c 2014-03-06 16:23:54 +0000
31+++ rastertoptch.c 2015-04-03 21:03:26 +0000
32@@ -816,7 +816,7 @@
33 emit_feed_cut_mirror (perform_feed == CUPS_ADVANCE_PAGE, feed,
34 cut_media == CUPS_CUT_PAGE,
35 mirror == CUPS_TRUE,
36- job_options->pixel_xfer == ULP);
37+ job_options->pixel_xfer);
38 /* Set media and quality if label preamble is requested */
39 unsigned page_size_y = new_page_options->page_size [1];
40 unsigned image_height_px = lrint (page_size_y * vres / 72.0);

Subscribers

People subscribed via source and target branches