You are not logged in.

#1 2008-09-14 15:59:43

timetrap
Member
From: Here and There
Registered: 2008-06-05
Posts: 342
Website

cups has the wrong paper size

I have installed and configured cups (works great). But on my home printer a brother HL-2170W I can print, but the printed area is offset. So in effect it looks like the printed area bleeds off the bottom of the page.

When I print a test page I get the results:

Page Size: 8.28x11.69in
Lower Left: 0.00x0.00in
Upper Right: 8.28x11.69in

I have selected Letter on the cups configuration page, same results. I then selected A4, same results.

What's going on?

(BTW, I have used this installation on another printer and it works fine)

Offline

#2 2008-10-07 09:45:27

geognu
Member
Registered: 2008-10-07
Posts: 4

Re: cups has the wrong paper size

Same problem here, with brother mfc 820 cw (mfc210c ppd), but page size is always 8.5x11.0 even if I put a4 or anything else as default paper size. Seems definitely a cups on arch problem, never had such on other distros, didn't find a way to solve the problem manually editing the ppd!

Offline

#3 2008-10-07 16:31:29

pointone
Wiki Admin
From: Waterloo, ON
Registered: 2008-02-21
Posts: 379

Re: cups has the wrong paper size

I had a similar problem in Debian where I needed to set /etc/papersize, the paper size in CUPS, as well as the paper size in Firefox/Opera as letter before it would print correctly. I spent hours just changing CUPS/browser settings before finding /etc/papersize.

Not sure if Arch has /etc/papersize, but take a look.


M*cr*s*ft: Who needs quality when you have marketing?

Offline

#4 2008-10-08 14:45:15

geognu
Member
Registered: 2008-10-07
Posts: 4

Re: cups has the wrong paper size

Today I've solved the problem this way (sorry no /etc/papersize in arch!!): first I've installed brother drivers form aur repo (yaourt -Ss brother, choose the proper one), this led me to the wrong pagesize error. Second I've rpmextracted cupswrapper rpm from brother's support site into a temp directory, manually edited the cupswrapper command to point all the init.d entries to rc.d and issued a ./cupswrapper.... voilà! Now my MFC works pretty well for printing. Let's face the scanner!!! cool

Offline

#5 2008-10-08 15:39:14

geognu
Member
Registered: 2008-10-07
Posts: 4

Re: cups has the wrong paper size

Just for future reference: brscan2 --- adding user to scanner group is not enough, neither setting /usr/lib/sane/* to group scanner. Following Brother's direction for Ubuntu I've added the following section to /etc/udev/rules.d/81-arch.rules:

# USB devices (usbfs replacement)
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0666"
SUBSYSTEM=="usb_device",                MODE="0666"

and everything went fine.

Do we need to edit wikis? roll

Offline

#6 2008-10-31 18:46:50

G_Syme
Member
Registered: 2007-01-04
Posts: 83

Re: cups has the wrong paper size

geognu wrote:

Same problem here, with brother mfc 820 cw (mfc210c ppd), but page size is always 8.5x11.0 even if I put a4 or anything else as default paper size. Seems definitely a cups on arch problem, never had such on other distros, didn't find a way to solve the problem manually editing the ppd!

I've got the same problem, using a brother DCP-115C with the brother MFC-210C driver from AUR. But I don't think CUPS is the problem, as I've never had any problems with other printers on Arch. Also, the same device works flawlessly with Ubuntu, where I've used the dep-packages provided from brother.
So AFAICT the problem might lie in the Arch/AUR packages for those brother printers.

What comes to my mind if I look at the brother packages in AUR is that all of them seem to use the rpm packages from brother. Maybe there's a relevant difference between the deps and rpms...?


The courageous enter dark caves alone.
The clever send in the courageous first.
The cleverest wait behind the clever.

Offline

#7 2008-11-05 14:40:53

G_Syme
Member
Registered: 2007-01-04
Posts: 83

Re: cups has the wrong paper size

After some days of experimenting I am pleased to announce that a have understood the problem, and even provided a solution, at least for the Brother MFC-210C printer. smile

The problem is that the CUPS driver, which is just a wrapper for the (old?) LPR driver, has no control over the paper size. Thus the paper size has to be configured manually in the LPR configuration. This problem is mentioned here, at openprinting.org and (detailed with all or most options) at Brother's site.
The mentioned config tool, which seems to come under various names (brprintconf, brprintconflsr2, brprintconf_${PrinterModel}, or as for the MFC-210C, brprintconfij2), just accesses/edits the file /usr/share/brother/inf/br${PrinterModel}rc (and maybe others in that directory ...?).

So invoking

# brprintconfij2 -P MFC210C -pt A4

changes the PaperType in /usr/share/brother/inf/brMFC210Crc to A4.

I've made new packages for the MFC-210C and send them to AUR. I've also kept the distinction between the lpr and wrapper packages, for they also use different licenses. For reference, I've used the deb packages instead of the rpms, but as I've found out the debs were generated from the rpms by alien. ^^

Albeit this fact it's interesting to mention that the generated ppd and wrapper files are different from the ones from the rpms :-/
E.g. the ppd from the rpm includes concrete values for the papersizes, whereas the ppd from the deb packages doesn't... but I've found no problems with that so far...


The courageous enter dark caves alone.
The clever send in the courageous first.
The cleverest wait behind the clever.

Offline

#8 2009-11-02 17:11:42

Alp
Member
Registered: 2008-09-27
Posts: 89

Re: cups has the wrong paper size

/edit sorry false alarm, please delete

Last edited by Alp (2009-11-02 17:13:39)

Offline

#9 2009-11-02 20:14:41

Raffles10
Member
From: London, UK
Registered: 2009-05-09
Posts: 115

Re: cups has the wrong paper size

Same problem here, I have exactly the same setup on a Debian Testing install with cups 1.4 and printing is fine but on Arch the print formatting is off as described by the OP. Definitely a problem with Arch's implementation.

I should add this problem is with an HP Deskjet. Obviously the Brother fix doesn't work for HP, still trying to sort this out .:(

Last edited by Raffles10 (2009-11-02 20:21:20)

Offline

#10 2014-03-23 20:59:37

SysGhost
Member
From: Stockholm
Registered: 2012-11-09
Posts: 59

Re: cups has the wrong paper size

I can confirm this too.
Had trouble with the page margins and the  printing area being off center.
Then I uninstalled the drivers from AUR, and installed the drivers from brother directly. I followed  Brothers own guides. Once that was done, it all works as intended.

Offline

#11 2014-03-23 21:57:14

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: cups has the wrong paper size


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB