Fixing Print Alignment with Brother DCP-7065DN on Linux

Monday, March 25, 2013

Knowing that it could be difficult to get printers and scanners working with Linux, I did quite a bit of research before settling on the Brother DCP-7065DN. Because I use Ubuntu, I did not have much trouble installing Brother’s proprietary debs. The scanner worked nicely; but the printer test page was shifted up and right, such that the output was clipped on the top and right borders, with the correct paper size setting.

Enabling Job Options > Scale to fit fixed the clipping, but the image was still off-center. I played around with the PPD file a bit, and achieved favorable results by shifting the ImageableArea values a bit in the opposite direction:

--- /usr/share/cups/model/DCP7065DN.ppd
+++ /usr/share/cups/model/DCP7065DN.ppd
@@ -85,18 +85,18 @@
 *CloseUI: *PageRegion

 *DefaultImageableArea: A4
-*ImageableArea Letter/Letter: "18 12 594 780"
-*ImageableArea Legal/Legal: "18 12 594 996"
-*ImageableArea Executive/Executive: "18 12 504 744"
-*ImageableArea A4/A4: "18 12 577 830"
-*ImageableArea A5/A5: "18 12 403 583"
-*ImageableArea A6/A6: "18 12 279 408"
-*ImageableArea Env10/Com-10: "18 12 279 672"
-*ImageableArea EnvMonarch/Monarch: "18 12 261 528"
-*ImageableArea EnvDL/DL: "18 12 294 612"
-*ImageableArea EnvC5/C5: "18 12 441 637"
-*ImageableArea EnvISOB5/B5: "18 12 463 697"
-*ImageableArea EnvISOB6/B6: "18 12 336 487"
+*ImageableArea Letter/Letter: "0 0 576 768"
+*ImageableArea Legal/Legal: "0 0 576 984"
+*ImageableArea Executive/Executive: "0 0 486 732"
+*ImageableArea A4/A4: "0 0 559 818"
+*ImageableArea A5/A5: "0 0 385 571"
+*ImageableArea A6/A6: "0 0 261 396"
+*ImageableArea Env10/Com-10: "0 0 261 660"
+*ImageableArea EnvMonarch/Monarch: "0 0 243 516"
+*ImageableArea EnvDL/DL: "0 0 276 600"
+*ImageableArea EnvC5/C5: "0 0 423 625"
+*ImageableArea EnvISOB5/B5: "0 0 445 685"
+*ImageableArea EnvISOB6/B6: "0 0 318 475"

 *%==== Information About Media Sizes ========
 

Since I’d already added the printer to CUPS, I also had to edit the corresponding file under /etc/cups/ppd/, but removing and adding the printer again would have worked as well. The Scale to fit setting was still necessary; alternatively, similar results could be achieved by tweaking the PaperDimension values.

This might work for other Brother printers as well.

3 Comments

  1. Cody says:

    Thanks for the fix, it works on Debian 7. I have been wondering how to fix this for a while now.
    The driver worked fine on Linux Mint 13 and the older Ubuntu versions, I wonder what changed.

    1. Jiang Yio says:

      I think the default postscript headers might have changed.

  2. Jiang Yio says:

    The problem seems to have been fixed in Ubuntu 14.04. I noticed when my prints started getting shifted the other way, and I had to reverse the patch.