You are not logged in.

#1 2017-03-31 09:17:45

vietphi
Member
Registered: 2017-01-27
Posts: 54

Trying to add printer brother but didn't work

I'm trying to install my printer brother HL-1210W but it didn't work. Here is what I did:

1. Install package cups.
2. Install brothers driver from aur brother-hl1210w
3. Install avahi and config hostname_resolution
4. Add printer

lpd://BRWC0389612396A/BINARY_P1

(printer not responding)
5. According to arch wiki I changed the BRWC0389612396A to IP 192.168.1.113 (my brother IP). The jobs sent but nothing prints.

This is error_logs

W [31/Mar/2017:15:25:37 +0700] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'Brother_HL-1210W_series-Gray..\' already exists
E [31/Mar/2017:15:27:52 +0700] [Job 1] The printer is not responding.
E [31/Mar/2017:15:29:03 +0700] [Job 1] The printer is not responding.
E [31/Mar/2017:15:30:36 +0700] [Job 2] The printer is not responding.
W [31/Mar/2017:15:35:49 +0700] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'Brother_HL-1210W_series-Gray..\' already exists
W [31/Mar/2017:15:35:53 +0700] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'Brother_HL-1210W_series-Gray..\' already exists
W [31/Mar/2017:15:56:53 +0700] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'Brother_HL-1210W_series-Gray..\' already exists
E [31/Mar/2017:15:59:08 +0700] [Job 9] The printer is not responding.
E [31/Mar/2017:15:59:44 +0700] [Job 9] The printer is not responding.

I think it is should work when I changed the ip to lpd://192.168.1.113/BINARY_P1 the jobs show as completed but the problem now is nothing printed and no error log.

Last edited by vietphi (2017-03-31 11:53:25)

Offline

#2 2017-03-31 18:46:49

pypi
Wiki Maintainer
Registered: 2014-04-22
Posts: 250

Re: Trying to add printer brother but didn't work

Have you tried the ipp or socket URIs?
The error log might be more helpful if you set the loglevel to debug first...

Offline

#3 2017-04-01 00:59:26

vietphi
Member
Registered: 2017-01-27
Posts: 54

Re: Trying to add printer brother but didn't work

pypi wrote:

Have you tried the ipp or socket URIs?
The error log might be more helpful if you set the loglevel to debug first...

I already tried but nothing work, sometime give me some error sometimes it show completed jobs but nothing print

This is the log I already set to debug.

Offline

#4 2017-04-01 05:46:22

seth
Member
Registered: 2012-09-03
Posts: 51,731

Re: Trying to add printer brother but didn't work

https://bbs.archlinux.org/viewtopic.php?id=224517

64bit kernel? Try to run the filter processes directly to see which libraries are not resolved (in case)

Offline

#5 2017-04-01 07:08:23

vietphi
Member
Registered: 2017-01-27
Posts: 54

Re: Trying to add printer brother but didn't work

I need to enable multilib so I can install the AUR driver because it is required lib32...

Offline

#6 2017-04-01 07:18:30

seth
Member
Registered: 2012-09-03
Posts: 51,731

Re: Trying to add printer brother but didn't work

Yes, the point is that the AUR packages do maybe not mention all multilib deps - there's the weird condition in the other thread, that one system works and the other does not. So the idea is that one system has some lib32 packages are dragged in for other reasons on the one system but not on the other. And that the brother filter processes are 32 bit ELF binaries ...

Offline

#7 2017-04-01 07:57:47

vietphi
Member
Registered: 2017-01-27
Posts: 54

Re: Trying to add printer brother but didn't work

Sorry for a noob question, what will I need to do exactly? open terminal, run some command blah blah...

Offline

#8 2017-04-01 08:06:12

seth
Member
Registered: 2012-09-03
Posts: 51,731

Re: Trying to add printer brother but didn't work

pacman -Ql brother-hl1210w | grep filter

If that list isn't empty, run "ldd" on the files for a beginning and watch out for unresolved libraries or, if 64 bit libraries are resolved, ensure the file is an x86_64 ELF and not a 32-bit one (use "file" on it)

Offline

#9 2017-04-01 10:12:03

vietphi
Member
Registered: 2017-01-27
Posts: 54

Re: Trying to add printer brother but didn't work

This is the result

pacman -Ql brother-hl1210w | grep filter
brother-hl1210w /opt/brother/Printers/HL1210W/lpd/filter_HL1210W
brother-hl1210w /usr/lib/cups/filter/
brother-hl1210w /usr/lib/cups/filter/brother_lpdwrapper_HL1210W

But non of this is a dynamic execuetable

Offline

#10 2017-04-01 10:21:47

ua4000
Member
Registered: 2015-10-14
Posts: 421

Re: Trying to add printer brother but didn't work

seth wrote:

And that the brother filter processes are 32 bit ELF binaries ...

For my brother I needed to install lib32-glibc lib32-gcc-libs lib32-libstdc++5 from multilib.

Offline

#11 2017-04-01 10:50:36

vietphi
Member
Registered: 2017-01-27
Posts: 54

Re: Trying to add printer brother but didn't work

ua4000 wrote:
seth wrote:

And that the brother filter processes are 32 bit ELF binaries ...

For my brother I needed to install lib32-glibc lib32-gcc-libs lib32-libstdc++5 from multilib.

I just installed all of this but still nothing, the jobs show as completed but nothing print

Offline

#12 2017-04-01 11:14:08

seth
Member
Registered: 2012-09-03
Posts: 51,731

Re: Trying to add printer brother but didn't work

The two binaries are in /opt/brother/Printers/HL1210W/lpd/ but afaict they only link libc (what matches ua4000's experience)
This however also holds for /opt/brother/Printers/HL1210W/inf/braddprinter which *might* indicate that you have to re-add the printer in cups - the AUR package however depends on lib32-glibc, so you should have had it from the beginning on...

Did the cups web interface autodetect the printer URL or did you "just add something™" by hand?

Offline

#13 2017-04-01 11:33:09

vietphi
Member
Registered: 2017-01-27
Posts: 54

Re: Trying to add printer brother but didn't work

seth wrote:

The two binaries are in /opt/brother/Printers/HL1210W/lpd/ but afaict they only link libc (what matches ua4000's experience)
This however also holds for /opt/brother/Printers/HL1210W/inf/braddprinter which *might* indicate that you have to re-add the printer in cups - the AUR package however depends on lib32-glibc, so you should have had it from the beginning on...

Did the cups web interface autodetect the printer URL or did you "just add something™" by hand?

I just deleted the old one and add new but it is the same.

The printer web interface has detected the printer with 2 URI:

lpd://BRWC0389612396A/BINARY_P1

which result for the printer is not responding

dnssd://Brother%20HL-1210W%20series._pdl-datastream._tcp.local/?uuid=e3248000-80ce-11db-8000-c0389612396a

which also sent comleted job but nothing print

Offline

#14 2017-04-01 14:17:07

vietphi
Member
Registered: 2017-01-27
Posts: 54

Re: Trying to add printer brother but didn't work

I think i found the solution but far to be solved

I used the live ubuntu usb and seting ip the printer with default driver recommend ( Brother HL-1230W, my is HL-1211W) and it worked. So somehow the HL-1210W from the AUR does not work and I need to find the HL-1230W driver for arch. But the problem is i'm a newbie and not familiar with pkgbuild to compile the driver package myseld

Offline

#15 2017-04-01 14:37:02

seth
Member
Registered: 2012-09-03
Posts: 51,731

Re: Trying to add printer brother but didn't work

http://download.brother.com/welcome/dlf … 1.i386.rpm
http://download.brother.com/welcome/dlf … 1.i386.rpm

Adapt the PKGBUILD from the brother-hl1210w to download those files instead (also use the proper md5sums!) and, bonus points, add your own efforts back to AUR smile

---
Brother really has a terrible webpage, btw.

Offline

#16 2017-04-02 02:23:06

vietphi
Member
Registered: 2017-01-27
Posts: 54

Re: Trying to add printer brother but didn't work

seth wrote:

http://download.brother.com/welcome/dlf … 1.i386.rpm
http://download.brother.com/welcome/dlf … 1.i386.rpm

Adapt the PKGBUILD from the brother-hl1210w to download those files instead (also use the proper md5sums!) and, bonus points, add your own efforts back to AUR smile

---
Brother really has a terrible webpage, btw.

One more question, I reviewed the pkgbuild and the rpm file structure of brother-hl2030 ( because it has the same structure of hl1230)

So why there is 3 md5 line instead of 2(2 sources file) and where is ppd and blrpdwrapperHL2030? in the end of pkgbuild?

 install -m 644 -D ppd_file "$pkgdir/usr/share/cups/model/HL2030.ppd"
  install -m 755 -D wrapper "$pkgdir/usr/lib/cups/filter/brlpdwrapperHL2030"

Offline

#17 2017-04-02 06:05:25

seth
Member
Registered: 2012-09-03
Posts: 51,731

Re: Trying to add printer brother but didn't work

The third md5 is for the brother-hl2030.patch and actually that package should match your printer smile

The two files in the end come from the RPMs, but as mentioned: the package should fit your printer, so just install this and be happy someone already did the work smile

Offline

#18 2017-04-03 06:24:21

vietphi
Member
Registered: 2017-01-27
Posts: 54

Re: Trying to add printer brother but didn't work

seth wrote:

The third md5 is for the brother-hl2030.patch and actually that package should match your printer smile

The two files in the end come from the RPMs, but as mentioned: the package should fit your printer, so just install this and be happy someone already did the work smile

I installed the hl2030 driver package but didn't works. And it is not just pkgbuild I need to review the brotherhl2030.install file, this is so much for me....

Offline

#19 2017-04-03 06:30:45

seth
Member
Registered: 2012-09-03
Posts: 51,731

Re: Trying to add printer brother but didn't work

"didn't work" means "installation failed" or "i selected the hl2030 printer in cups but it behaves just like the 2010 one"?
In latter case, this is probably not what makes the difference on the ubuntu system. Is the live ubuntu i386 or x86_64?

Offline

#20 2017-04-03 07:25:32

vietphi
Member
Registered: 2017-01-27
Posts: 54

Re: Trying to add printer brother but didn't work

seth wrote:

"didn't work" means "installation failed" or "i selected the hl2030 printer in cups but it behaves just like the 2010 one"?
In latter case, this is probably not what makes the difference on the ubuntu system. Is the live ubuntu i386 or x86_64?

No, In Ubuntu it is HL1230W not hl2030, didn't work mean the driver didn't fit with my brother hardware

Offline

#21 2017-04-03 08:05:36

seth
Member
Registered: 2012-09-03
Posts: 51,731

Re: Trying to add printer brother but didn't work

i didn't even find a HL1230W driver on the brother webpage - and http://packages.ubuntu.com/yakkety/brot … ers-laser1 only contains a driver for hl2030 either ... *shrug*

Offline

#22 2017-04-03 08:09:55

vietphi
Member
Registered: 2017-01-27
Posts: 54

Re: Trying to add printer brother but didn't work

seth wrote:

i didn't even find a HL1230W driver on the brother webpage - and http://packages.ubuntu.com/yakkety/brot … ers-laser1 only contains a driver for hl2030 either ... *shrug*

sr that is hl1230 and you already give the link for me in the previous post

Offline

#23 2017-04-04 06:25:36

seth
Member
Registered: 2012-09-03
Posts: 51,731

Re: Trying to add printer brother but didn't work

Sorry, I added soem confusion here by merging 2030 and 1230 (starting w/ the AUR package)

The package present in AUR will then *not* work for you, with the driver version I was focusing on the "W" extension, this specific split isn't made by the brother provided drivers.
You need the RPMs provided by the brother links provided previously.

Whether the PKGBUILD for https://aur.archlinux.org/cgit/aur.git/ … er-hl1210w or https://aur.archlinux.org/cgit/aur.git/ … her-hl2030 fits I can't say at hand, but the patch in the hl2030 package will not apply on the 1230 RPMs because the files there don't exist (and likely contain different strings as well)

It mostly deals w/ a difference between /usr/local/Brother and /usr/share/brother paths, so just alter the paths in the file.
There're also commented regions in some files but whether that requirement holds for the 1230 as well, I don't know (you'll have to test, maybe contact the 2030 AUR maintainer to investigate his reasons on this)

The freaky thing is that nothing of that seems required for the 1210 package ...

Offline

#24 2017-04-09 06:03:09

vietphi
Member
Registered: 2017-01-27
Posts: 54

Re: Trying to add printer brother but didn't work

Hi! The aur packages drivers of Brother HL-1210W is exactly what I need but somehow it didn't works in my case. How to figure it out?

Offline

#25 2017-04-15 15:12:20

seth
Member
Registered: 2012-09-03
Posts: 51,731

Re: Trying to add printer brother but didn't work

Afaiu last, you require the 1230 package, not the 1210 one??

W/o **ANY** guarantee

PGKBUILD

# Maintainer: nobody
pkgname="brother-hl1230"
pkgver="1.0.2"
pkgrel="1"
pkgdesc="Brother HL-1230 CUPS driver. After installing this, install printer from CUPS web interface (default localhost:631)"
url="http://www.brother.com/"
license=('GPL')
arch=('i686' 'x86_64')
depends=('lib32-glibc' 'cups>=2.1.2' ) 
md5sums=('4bfba04fb45ff6b8aab4f1c5f6e493fb'
         '286f4cfc5c378b030018440445b5cf37')
install=brother-hl1230.install
source=(
   http://download.brother.com/welcome/dlf005782/hl1230lpr-1.1.2-1.i386.rpm \
   http://download.brother.com/welcome/dlf005784/cupswrapperHL1230-1.0.2-1.i386.rpm
)


package() {
   cp -r "$srcdir/usr/" "$pkgdir/usr/"
}

brother-hl1230.install

post_install() {
    /usr/local/Brother/cupswrapper/cupswrapperHL1230-$1 -i
}
pre_remove() {
    /usr/local/Brother/cupswrapper/cupswrapperHL1230-$1 -e
}

Put those two file in a directory and run makepkg there. Then "pacman -U" the package ...

Offline

Board footer

Powered by FluxBB