Brother CUPS wrapper fails to change LPR driver settings

Bug #550764 reported by Andreas Modinos
84
This bug affects 15 people
Affects Status Importance Assigned to Milestone
brother-cups-wrapper-extra (Ubuntu)
Invalid
Undecided
Unassigned
Declined for Lucid by Till Kamppeter

Bug Description

Binary package hint: brother-cups-wrapper-extra

Using Lucid Lynx Beta 1 together with Brother DCP-135C I observe the following:

With Brother drivers installed through the repositories printed pages are cut off from the top or otherwise slightly misaligned.
This happens even when page size in the applications as well as CUPS is set correctly to A4.

However printing is properly aligned after running the LPR driver configuration script to set the page size manually.
In my case this is 'sudo brprintconf_dcp135c -pt A4'. For users of other Brother printers the command is changed to reflect the model. Because this works it means that the settings from the CUPS/application interface are not being properly passed to the LPR driver.

What makes this bug devious is that the user thinks the paper size is set correctly and might not know or understand to run the configuration script for the LPR driver. The interaction between the GUI/CUPS and the LPR driver must be fixed to avoid further confusion and to avoid mixing this bug with other printer related bugs.

This bug is for Brother printers only, do not comment or confirm unless you have a Brother printer!

package-hint: brother-lpr-drivers-extra

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: brother-cups-wrapper-extra 1.2.1-0ubuntu3
Uname: Linux 2.6.32-02063209-generic i686
Architecture: i386
Date: Mon Mar 29 11:12:49 2010
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100224.1)
ProcEnviron:
 LANG=fi_FI.utf8
 SHELL=/bin/bash
SourcePackage: brother-cups-wrapper-extra

Revision history for this message
Andreas Modinos (blueturtl) wrote :
tags: added: needs-reassignment
Revision history for this message
Matthew Shipton (matthew-shipton) wrote :

Confirmed. I also have a Brother 135-C and the repository drivers cut off the button and top of the document. Running the script fixes it, but this is not obvious and changes to /etc/papersize or cups config does not help.

Revision history for this message
Matthew Shipton (matthew-shipton) wrote :

(that is, it was defaulting to letter rather than my desired size of A4). This also means that every time I want to change paper size I have to adjust run the script to change to the desired size e.g. envelope etc.

Revision history for this message
Bruce Crowther (bwucie) wrote :

I have the same problem with Lucid AMD 64 and a Brother DCP130C: I was therefore very grateful to find this work around rather than having to use "force architecture" to install Brother drivers.

Revision history for this message
Valombre (valombre-d) wrote :

I have the same problem top of A4 pages is cut, with Lucid AMD64 and a brother DCP130C.
To print correctly i have to use another PC in lan where i kept karmic on it.
Waiting for update i'm going to try the workaround.

Revision history for this message
Bruce Crowther (bwucie) wrote :

As well as the paper size, none of the other settings seem to work, either.

Any printing I do now where I want anything other than the "Normal" resolution, I have to do via XP running in VirtualBox.

This is a huge regression from Karmic

Revision history for this message
Enrico Fusto (rikettsie) wrote :

I also confirm the reported bug.
I am using a Brother DCP-195C in Ubuntu 10.04
and did resolve launching '/usr/bin/brprintconf_dcp195c -pt A4'.
Enrico

Revision history for this message
Bruce Crowther (bwucie) wrote :

Gave up on the Ubuntu drivers, and installed the 32 bit Brother drivers for my DCP130C using "-force all". (There are clear instructions on the Brother Printer Driver webpages: http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html )

First attempt failed, and I had to create a number of directories (as per the failures shown in the terminal during first install attempt), second attempt was successful. Now things work again - welcome back printer.

Regards,
Bruce.

Revision history for this message
nencio (f-nencio) wrote :

I confirm this bug.
Ubuntu Lucid 10.04 with Brother DCP-115c (using the drivers for the MFC-210c as suggested on the brother website).

Revision history for this message
Arthur Hartwig (a-hartwig) wrote :

I have also seen this bug in Ubuntu Netbook 10.04 with a Brother MFC-5460CN printer. The suggested workaround of
    # sudo brprintconf_mfc5460cn -pt A4

before a print attempt worked for me.

Its not (yet) clear how often I need to invoke brprintconf_mfc5460cn: after every system restart? after every printer power cycle? before every job? ...

Revision history for this message
Andreas Modinos (blueturtl) wrote :

As far as I know you only need to use the utility once (or until you want to change the settings again).

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

This is not a bug of Ubuntu or any software shipped with it. It is a bug ot Brother's driver packages. The driver is not following the CUPS standards where default option settings are set in the PPD in /etc/cups/ppd/ by CUPS and drivers read the defaults from there. I am also not sure whether per-job options, which CUPS supplies to all its filters via the fifth command line argument get used by Brother's CUPS wrapper (can someone here test?).

This is a bug of the architecture of the Brother drivers. The drivers themselves are made for the LPD spooler and a simple CUPS wrapper was written to make them working with CUPS, but it seems that the CUPS wrapper is not passing settings over from CUPS to the LPD driver. The LPD driver seems to always take the settings from its on configuration file which is specific to the driver and so no printing dialog or printer setup tool uses it.

Please contact brother via the web site

http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html

and ask them to make drivers which really work with CUPS.

At Ubuntu we cannot do anything here. Closing ...

Changed in brother-cups-wrapper-extra (Ubuntu):
status: New → Invalid
Revision history for this message
Bruce Crowther (bwucie) wrote :

And yet the drivers from the Brother site work fine? Go figure.

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

I mean both here, the Ubuntu packages and the packages from Brother.

Revision history for this message
Ian Dimond (mail-dimond) wrote :

I have exactly the same problem in Ubuntu 10.10 with a Brother DCP-560CN printer. Also, sudo brprintconf_dcp560cn -pt A4 works for me (thanks Andreas).

summary: - [Lucid]Brother CUPS wrapper fails to change LPR driver settings
+ Brother CUPS wrapper fails to change LPR driver settings
tags: added: maverick
Revision history for this message
Andreas Modinos (blueturtl) wrote :

I have now sent an inquiry to Brother about the matter using their localized feedback form. Let's see what comes of it...

Revision history for this message
Sebastian Geiger (lanoxx) wrote :

I just expirienced this bug with Maverick. I have A4 paper and A4 set in the printer options and also in OpenOffice or any other programm i was printing from.

It would always cut of the first 2-3cm of a page until I just found this command in the bug report and ran it. It solved my problem instantly:

$ sudo brprintconf_dcp560cn -pt A4

I have send a support request to Brother and asked them to fix this bug. Maybe if enough people complain they might really do something about this. You can find the support formular here:
http://welcome.solutions.brother.com/bsc/public/ContactUsTop.aspx?reg=eu

Revision history for this message
Maarten Kossen (mpkossen) wrote :

Still happens on the latest Natty, so I've set this to new as it seems to be the most appropriate status.

Changed in brother-cups-wrapper-extra (Ubuntu):
status: Invalid → New
Revision history for this message
Laurent Dinclaux (dreadlox) wrote :

I confirm: the bug is still there in Natty

Revision history for this message
Bruce Crowther (bwucie) wrote :

Got my hopes up way too soon about the drivers downloaded from Brother (#13 above).

As suggested in #17 I too have contacted Brother, and I have to say their lack of interest leads me to have little hope of them providing a fix any time soon.

Does this problem plague other Debian distros, or is this confined to Ubuntu? I've gotten comfortable changing paper, resolution etc by using "sudo brprintconfig_dcp130c" and picking the commands I need from the list ('cos I'm a bit challenged when it comes to using the terminal), but it is a bit of a nuisance.

Revision history for this message
Sebastian Geiger (lanoxx) wrote :

Upgrading from maverick to natty caused this bug to surface again. Running the above workaround solved it again.

Revision history for this message
Sebastian Geiger (lanoxx) wrote :

Today I got a mail from brother support:
Run:
sudo dpkg-reconfigure libpaper1
There you can set the default settings for your computer which should affect all printers. On english systems it seems to be set to letter instead of A4.

It doesnt solve the problem but its a more comfortable workaround than having to set it for each printer installed.

Revision history for this message
Sebastian Geiger (lanoxx) wrote :

I have confirmed this bug on my computer several times.

Changed in brother-cups-wrapper-extra (Ubuntu):
status: New → Confirmed
Revision history for this message
Sebastian Geiger (lanoxx) wrote :

Shows that the Cups dialog is still displaying A4 even if the printer settings were set to Letter, for example with:

sudo brprintconf_dcp560cn -pt Letter

Revision history for this message
Laurent Dinclaux (dreadlox) wrote :

In natty the bug is stll there: printed paged are cut off from the top, I have selected A4 and I use A4 paper.

Will that bug get any attention one day ?!? It is more than one year old

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

Note that I told earlier that this is a bug in Brother's drivers. I have already contacted the developers of Brother's driver packages and they are working on LSB-based CUPS-conforming packages currently.

Please do not reopen this bug. It is not a Ubuntu bug.

Changed in brother-cups-wrapper-extra (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Note also that the Ubuntu packages of the Brother drivers (like brother-cups-wrapper-extra) are all deprecated, as they caused a lot of work to maintain and the volunteer creator and original maintainer of these packages does not maintain them any more. So please do not report further bugs on these packages.

Revision history for this message
Laurent Dinclaux (dreadlox) wrote :

Until natty, the drivers downloaded from brother website didn't have the issue...

Revision history for this message
Sebastian Geiger (lanoxx) wrote :
Revision history for this message
Sebastian Geiger (lanoxx) wrote :

As I mentioned earlier, I have been in touch with the German brother support about this bug. A few days a go they send me a file with updated drivers. I was hoping some one else could also test them and give me a response on whether they are working before I reply to the support person. Unfortunately for me the update seems to have no effect.

To install just do as follows:
1. tar -xvzf ink3_patch_1.0.2-0.tar.gz
2. cd ink3_patch_1.0.2-0
3. sudo ./install

Revision history for this message
Bruce Crowther (bwucie) wrote :

Installing the patch does nothing for me, either, with regard to paper size.
Of course, as well as paper size we sometimes want to change paper type and resolution as well, and these options are no longer changeable with the Brother drivers.
I have gotten no worthwhile advice from Brother in New Zealand: the number of Ubuntu users with affected printers in my country is probably way too small for them to bother with. If we all went out and bought another brand of printer tomorrow the effect on Brother's sales wouldn't even register.
Sometimes size does matter!

Revision history for this message
Bruce Crowther (bwucie) wrote :

Well, try this, which HAS worked for me:

- opened the patch file with the archive manager.
- opened the folder ink3_patch_1.0.2-0 and then opened the folder bin.
- copied the file brcupsconfpt1.
- in a terminal, gksudo nautilus, go to /usr/Brother/Printer, trash the brcupsconfpt1 that is there, and paste the new one in its place.
- enjoy the paper size and resolution changing when you reset them in System Settings>Printing>(my case)dcp130c>properties

You'll gather I'm not much of a one for the terminal - too old to remember commands! I haven't yet checked if this works for all paper sizes and types, very late at night here, so tomorrow I'll try photo paper, envelopes and so on.

Revision history for this message
Bruce Crowther (bwucie) wrote :

I can now confirm all my printer settings are reset when I print from LibreOffice or Image Viewer, using the Ctrl+P print dialog, which is a first for a very long time.

I can print DLE envelopes, first time I have managed this without a major fight with Ubuntu, so I will no longer have to start my Virtual Box WinXP to print an envelope.

Borderless printing of photos is still a job for Windows, though. I have always gotten a very fine border on three sides of a photo printing with Ubuntu on my DCP130C, and this remains so. Not a problem if you are going to put a photo in a frame, but annoying if you want to post a photo to Granny, or give your friend a quick print for a keepsake.

Otherwise a major improvement for normal printing - I like.

Revision history for this message
Sebastian Geiger (lanoxx) wrote :

Copying the files this way seems to solve the problem for me. At least I can no longer reproduce the problem with cut of text.

Revision history for this message
David Ayers (ayers) wrote :

After installing some update this issue reappeared for me.
I purged the all brother drivers (printer scanner fax),
reinstalled brother-cups-wrapper-extra and ran:

sudo brprintconf_mfc260c -pt A4

after which I could successfully print again.

I suppose I could have run that without purging/reinstalling but I wanted to insure I started with a clean slate. It is very annoying that these printers/scanners/fax-devices cannot simply work with drivers the manufacturers should be maintaining upstream under Free Software licenses.

Thanks for those of you publicizing their solutions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.