Package Details: brother-hl2270dw 2.0.4_2-5

Package Base: brother-hl2270dw
Description: Brother HL-2270DW CUPS Driver
Upstream URL: http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html
Category: system
Licenses: GPL
Submitter: jstjohn
Maintainer: jrmrjnck
Last Packager: jrmrjnck
Votes: 16
First Submitted: 2012-06-03 02:13
Last Updated: 2014-11-28 02:48

Latest Comments

Comment by jrmrjnck

2015-06-01 02:59

Not sure if this was flagged accidentally or not...

The latest HL2270DW-specific driver is still 2.0.4-2/2.1.0-1, which this package installs.

There is a newer "generic" package with version 3.1.0-1. It is available as AUR/brother-brgenml1 but as I said before it has poorer print quality.

Unflagging...

Comment by jrmrjnck

2015-01-12 00:31

@Shim: I suggest you ask again on one of the Arch pacman forums. That error is produced by the makepkg script, and isn't related to this package specifically.

Here are some questions that may point you in the right direction: Have you tried installing with a helper (yaourt, etc)? Can you build and install other AUR packages? Is your build directory formatted with a linux fs (like ext4)?

Comment by Shim

2015-01-09 17:35

Hello!
I get an error message when I try to makepkg:
==> Checking buildtime dependencies...
chmod: changing permissions of '/home/.../brother-hl2270dw/src': Operation not permitted

==> ERROR: An unknown error has occurred. Exiting...
I am not sure how to go about it. I cannot run makepkg as root and as user I get the above error. I also didn't find where in the code it tries to chmod the above directory.

Comment by jrmrjnck

2014-11-28 02:57

@SABCD: I tried setting alignmargins to 0 as you suggested, and it did seem to improve alignment, so the ppd patch has been updated accordingly. Thanks!

@djupp: It was working fine for me, but your suggestion is probably a more reliable method so the PKGBUILD has been updated. Thanks!

Also, I noticed the new generic brother-brgenml1 AUR package which claims to support the HL-2270DW. I tried it out and the print quality was not very good, so I'll continue to support this standalone package.

Finally, I've uploaded a git repo (https://github.com/jrmrjnck/aur-brother-hl2270dw) if anyone wants to streamline changes in the future.

Comment by djupp

2014-09-05 21:56

It seems the PKGBUILD has a typo, as it saves the HL2270DW.ppd.patch in $srcdir, but then proceeds to look for it under $srcdir/../HL2270DW.ppd.patch.

@45: replace "$srcdir/../HL2270DW.ppd.patch" with "$srcdir/HL2270DW.ppd.patch" lets the package be made successfully.

Comment by SABCD

2014-05-20 14:35

Re: CrisisMocha 2013-04-07 margin fix. What worked for me was to modify /etc/papersize to completely commented out.(But do not delete the file). Run alignmargins script setting everything to 0 (or manually edit the ppd file). In printer configuration, set page margins option to use "set with alignmargins". All steps required. This was for an hl-2240 using appropiate driver, but suspect will work for all hl printers. Perfect alignment. (If /etc/papersize is set to A4 and you are using letter paper, then you end up having to use non-zero values in the alignmargin script).

Comment by kimrasmussen

2013-06-23 15:01

This package is absolutely splendid work! Huge thanks for that!

I have the smaller brother of the HL-2270DW, namely the HL-2250DN, and with a small number of changes I got it working with that printer too.

It might(?) be a good idea to merge the changes into this package, but at least for now, I have just added a new package, brother-hl2250dn (https://aur.archlinux.org/packages/brother-hl2250dn/).

Anonymous comment

2013-04-08 02:20

The arrows pointing out on the work sheet should touch the edges of the paper (taking into account the printable area cutoff, you have to use your imagination a bit). Otherwise I couldn't make a whole lot of sense out of the worksheet, either.

The numbers were half trial and error, and half educated guess. The numbers are measurements in points (72pts = 1 inch). The printable area according to the cups test page is .25 inches (72 * .25 = 18) from the edge of the paper on the the left and right sides, and .17 (72 * .17 = 12.24 inches, rounds down to 12) on the top and bottom. Then I shuffled those numbers through the through the different variables until I found something that worked.

Now that I'm looking at this, it seems I made a small math mistake. 12.24 instead of 12 would be more accurate, but that's really nitpicking, since it only amounts to .003 of an inch too close to the bottom of the paper.

Thank you for your maintenance of this package!

Comment by jrmrjnck

2013-04-07 23:25

@CrisisMocha: Thanks for the hint! I have added the margin options to the PPD file and it looks much better. By the way, did you determine those values through trial and error? The alignmargins script prints out a worksheet, but I couldn't really make sense of it - the values I calculated didn't work at all.

I also don't know what effect this will have for A4 as I have no means of testing that.

Anonymous comment

2013-04-07 19:02

I think I may have figured out a fix for the off-center issue. After installing this package, I used the alignmargins script from section 6 of https://wiki.linuxfoundation.org/en/OpenPrinting/Database/CUPSDocumentation and used the following values: ml 18, mb 12, mr 0, mt 0, x -18, y 12. It added the following to the end of the relevant ppd file in /etc/cups/ppd: http://pastebin.com/J9BpgziA

It adds an option in the cups printer options called "Page Margins/Offsets." Make sure "Custom (set with 'alignmargins')" is selected, and documents print properly centered for me. I used this with the letter paper size, so I don't how well this works with other paper sizes.

Hopefully this can be of use to the package.

Comment by jrmrjnck

2012-11-12 12:17

I have adopted this package and uploaded a new PKGBUILD. It is improved over the version linked to in my previous comment. I spent many hours trying to fix the off-center issue, but I was unsuccessful. This proprietary driver is fragile because we have to move everything from /usr/local to /usr/share for Arch packaging standards, but this package includes several binary programs with hard-coded references to /usr/local. The binaries get edited to correct this, but there's no way to know what's really going on inside there.

The Brother packages worked perfectly when tested on Fedora, so there might be some problem with cups (or ghostscript, psutils, etc). If you are just looking for something to work, try the HL-2170W Foomatic/hpijs-pcl5e driver. It works decently, with slightly degraded image and text quality.

I will keep trying to get this driver centered, but I don't many more ideas at this point.

Comment by wulax

2012-11-02 20:35

jrmrjnck:
Your PKGBUILD works much better than the one jstjohn made (except for the off center printing as you mentioned). Perhaps you could adopt this package and try to fix it? It would be great.

Comment by jrmrjnck

2012-10-06 16:03

I made a PKGBUILD (http://pastebin.com/NGsszdwJ) that roughly follows ssgross's instructions. The printer is easy to set up in CUPS, but it still prints noticeably off center.

Comment by jstjohn

2012-10-04 23:39

I don't have the time to properly debug and fix this package, so I've disowned it. Hopefully someone else can take care of it better than I.

Comment by cookiecaper

2012-10-04 18:59

Same experience here as ssgross. The driver provided by this package does not work, and returns garbled pages. Following the manual process works fine. Do not use until PKGBUILD is rectified.

Anonymous comment

2012-09-09 18:44

Hi. there seems to be a problem with the way this works. the printer sets up correctly and, when I print a test page, I get 4 pages of garbled nonsense, random lines and the like.
Looking at your PKGBUILD, I think you can make it a lot simpler and more effective, and remove the a2ps dependency.
In short, all I did was download the current rpm's from brother's website. I used rpm to extract them, and followed the instructions on
https://wiki.archlinux.org/index.php/Brother_HL-2030#Brother_drivers
the only modification to these instructions was 1) the filename and folders for what 2 files to modify. and 2) don't automatically set up a usb printer by ./cupswarapper...
the instructions are very, very simple, and it shouldn't be hard to make a new PKGBUILD that: 1) downloads and extracts the rpm's 2)search and replace the necessary phrase in 2 files then 3) copy the contents to the appropriate folders. one can then find the right driver when adding a printer on the cups web interface, system-config-printers, or whatever gui you like.

Comment by jstjohn

2012-07-20 19:57

I just uploaded a new version which fixes some 'namcap' warnings. I did not bump the pkgrel because the package is effectively the same.

Comment by infiniteh

2012-07-12 01:43

Thanks for the update! :-)

Comment by jstjohn

2012-07-11 18:19

infiniteh, thanks for pointing that out. That was a pretty silly mistake. I just uploaded 2.0.4.2-2 which includes all 6 patches.

Comment by infiniteh

2012-07-11 17:27

My build fails when the PKGBUILD tries to apply patches. There are no *.patch files included in the tarball. For example,

/tmp/yaourt-tmp-marc/aur-brother-hl2270dw/./PKGBUILD: line 32: /tmp/yaourt-tmp-marc/aur-brother-hl2270dw/brHL2270DWrc.patch: No such file or directory.

Comment by jstjohn

2012-06-14 18:34

This package is not out-of-date. This package installs the LPR driver (version 2.1.0-1) and the CUPS wrapper driver (version 2.0.4-2) which are currently the latest versions on Brother's web site[1].

[1] http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#HL-2270DW

Comment by Cinelli

2012-06-03 02:21

Glad to see you got it together. Good Job.