Incorrect margins when printing to a laser printer using CUPS 1.6.x

Reported by Fiorenzo De Santis on 2013-05-27
This bug affects 3 people
Affects Status Importance Assigned to Milestone
cups (Ubuntu)

Bug Description

I have a Brother HL-2270DW laser printer and I'm having issues with print margins using the official drivers by Brother after I upgraded to Quantal and these issues still persist with Raring.

Other users reported similar problems with different printers mostly Brother:


I have also a Brother MFC-J6510DW inkjet all-in-one printer and it works fine.

I've found out that a workaround for the Brother original driver is to print your document as .ps file and then print that file.

However using some Generic PCL drivers I can get correct margins in particular with Foomatic/ljet4 and Foomatic/ljet4d.

Following directions in Debugging Printing Problems, I've enabled "Save debugging information for troubleshooting" and I've captured a print job. However the captured file appears to be OK whereas the printed file has wrong margins (left +6 mm; top -4 mm).

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: cups 1.6.2-1ubuntu7
ProcVersionSignature: Ubuntu 3.8.0-22.33-generic 3.8.11
Uname: Linux 3.8.0-22-generic x86_64
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
Date: Mon May 27 18:19:24 2013
InstallationDate: Installed on 2013-03-16 (72 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130315)
 device for BRFAX: lpd://BRW002258EF8326/BINARY_P1
 device for HL2270DW: lpd://BRW00225892D671/BINARY_P1
 device for MFCJ6510DW: lpd://BRW002258EF8326/BINARY_P1
 device for PCL_HL-2X: lpd://BRW00225892D671/BINARY_P1
 device for PCL_HL-2X__Duplex: lpd://BRW00225892D671/BINARY_P1
MachineType: ASUSTeK Computer Inc. U36SD
MarkForUpload: True
Papersize: a4
 HL2270DW: Brother HL2270DW for CUPS
 PCL_HL-2X__Duplex: Generic PCL 6/PCL XL Printer Foomatic/ljet4d
 PCL_HL-2X: Generic PCL 6/PCL XL Printer Foomatic/ljet4
 MFCJ6510DW: Brother MFC-J6510DW CUPS
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.8.0-22-generic root=UUID=ec9aa77a-fa22-4668-b846-38058c29cf00 ro quiet splash vt.handoff=7
SourcePackage: cups
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 07/12/2011
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: U36SD.205
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: U36SD
dmi.board.vendor: ASUSTeK Computer Inc.
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK Computer Inc.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrU36SD.205:bd07/12/2011:svnASUSTeKComputerInc.:pnU36SD:pvr1.0:rvnASUSTeKComputerInc.:rnU36SD:rvr1.0:cvnASUSTeKComputerInc.:ct10:cvr1.0:
dmi.product.name: U36SD
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK Computer Inc.

Fiorenzo De Santis (fiod3s) wrote :
Fiorenzo De Santis (fiod3s) wrote :

Brother HL-2270DW original PPD

description: updated
Fiorenzo De Santis (fiod3s) wrote :

is it related to the following old bug?


is the poppler involved?

can we do some tricks to overcome this issue? for example, there is an option to set margin offsets for all the print jobs of a printer?

Has anyone found a solution to this? I just bought this printer thinking it had good Linux support and I can't get my margins right with any driver/settings. the 2170w driver seems to get them the closest for me but the bottom is still off. The official driver has just about all of the margins off.

Fiorenzo De Santis (fiod3s) wrote :

Many people are affected by this bug but nobody subscribes this bug report, this way it isn't going to be fixed.

Most people prefer generic PCL drivers but with these drivers you can't take advantage of all the features of your printer, in fact you are limited to a 600dpi resolution, you can't use the toner saving etc.

I've tried several generic PCL drivers and the best is Foomatic/hpijs-pcl5e (for HL-2170W), it handles the margins correctly.

However also Foomatic/ljet4 and Foomatic/ljet4d work well with margins.

Till Kamppeter (till-kamppeter) wrote :

Fiorenzo, first to say is that the problem is not in Poppler, as the PDF->PS transition needed for Brother's driver is done by Ghostscript.

First, follow the instructions of the sections "CUPS error_log" and "Capturing print job data" on https://wiki.ubuntu.com/DebuggingPrintingProblems with Raring and/or Saucy. Please attach the resulting files, one by one, without compressing them and without packaging them together.

In addition, run the command

lpadmin -p HL2270DW -o pdftops-renderer-default=pdftops

in a terminal window and try to print again. Does this fix the problem or at least improve the situation?

To return to the standard configuration, run

lpadmin -p HL2270DW -R pdftops-renderer-default

Changed in cups (Ubuntu):
status: New → Incomplete
Fiorenzo De Santis (fiod3s) wrote :

captured print job, it seems to be OK

Fiorenzo De Santis (fiod3s) wrote :

scanned output, with wrong margins

Fiorenzo De Santis (fiod3s) wrote :

scanned output, with right margins using Fedora 19

Fiorenzo De Santis (fiod3s) wrote :

however the command

lpadmin -p HL2270DW -o pdftops-renderer-default=pdftops

fixed the problem

I attached the cups error log as well

Fiorenzo, do you have a utility named "brprintconf_..."? Try bu entering


in a terminal window and instead of Enter press Tab, if needed two or three times. If it gets completed or alternatives for completing it get shown, you have such a utility. Then run

brprintconf_<your_model> -pt A4

in the terminal window. In case of errors try to get info via

brprintconf_<your_model> -h


brprintconf_<your_model> --help

Or try

sudo brprintconf_<your_model> -pt A4

Replace <your_model> by the completion of the command which you got by pressing Tab in the beginning.

Fiorenzo De Santis (fiod3s) wrote :

although undocumented, I was able to run this command

sudo /usr/local/Brother/Printer/HL2270DW/inf/brprintconflsr3 -P HL2270DW -pt A4

however it didn't help, of course I restored the default renderer before trying it

so at the moment only the "pdftops" renderer helps

I have been struggling with this problem for days and the HL2270DW.PPD file provided by Fiorenzo worked like a charm. Thanx!

Adam Porter (alphapapa) on 2013-09-27
Changed in cups (Ubuntu):
status: Incomplete → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers