Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to install an Brother (DCP-J572) Printer correctly?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
ace999999
n00b
n00b


Joined: 27 Jun 2018
Posts: 30

PostPosted: Tue Jan 15, 2019 6:57 pm    Post subject: How to install an Brother (DCP-J572) Printer correctly? Reply with quote

I have an Brother DCP-J572DW and I want to used it with USB mostly.
I have installed the driver from Brother according to this guide with the installer from Brother.

https://wiki.gentoo.org/wiki/Brother_networked_printer

But with the driver from Brother (doesn't matter if WiFi or USB) the printer doesn't work. Cups says "Print-Job successful-ok" every time but the printer does absolutely nothing.
When I use it with Wifi and install it with IPP it works.


Last edited by ace999999 on Wed Jan 16, 2019 7:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
ace999999
n00b
n00b


Joined: 27 Jun 2018
Posts: 30

PostPosted: Wed Jan 16, 2019 6:31 pm    Post subject: Reply with quote

Some progress. The printer at least shows some live and announces that it 'receives data'. But sill not printing anything.

As stated in Gentoo Wiki, after installation you have to copy the cups wrapper to the right location:
Code:
cp /usr/lib64/cups/filter/brother_lpdwrapper_dcpj572dw /usr/libexec/cups/filter/


There was another file in the driver package called 'wrapper' and I just replaced that file with this.
Code:
cp /opt/brother/Printers/dcpj572dw/cupswrapper/cupswrapperdcpj572dw /usr/libexec/cups/filter/brother_lpdwrapper_dcpj572dw


Now at least the printer really receives data. I have read that brother printers will silently fail when they don't get perfectly formed PCL. May that's whats happening.

Other files in dcpj572dwpdrv-1.0.5-0.i386.rpm:
Code:

opt/brother/Printers:
dcpj572dw
mfcj491dw

opt/brother/Printers/dcpj572dw:
LICENSE_ENG.txt
LICENSE_JPN.txt

opt/brother/Printers/dcpj572dw/cupswrapper:
brother_dcpj572dw_printer_en.ppd
brother_lpdwrapper_dcpj572dw
cupswrapperdcpj572dw

opt/brother/Printers/dcpj572dw/inf:
ImagingArea
PaperDimension
brdcpj572dwfunc
brdcpj572dwrc
lut
paperinfij2
setupPrintcapij

opt/brother/Printers/dcpj572dw/inf/lut:
BRPRI17D.BCM
BRPRI17DA.BCM
BRPRI17DD.BCM
BRPRI17DE.BCM
BRPRI17DG.BCM
BRPRI17DH.BCM
BRPRI17DI.BCM
BRPRI17DL.BCM
BRPRI17DN.BCM
BRPRI17DQ.BCM

opt/brother/Printers/dcpj572dw/lpd:
brdcpj572dwfilter
filter_dcpj572dw

usr/bin/
brprintconf_dcpj572dw
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21619

PostPosted: Thu Jan 17, 2019 3:46 am    Post subject: Reply with quote

As a quick warning, directly copying files into directories under /usr/libexec is wrong from a system administration perspective. At best, your changes will be overwritten when you reinstall a package that owns those files. At worst, your changes will cause a future collision when a package tries to install those files and finds unowned copies already on the filesystem.
Back to top
View user's profile Send private message
ace999999
n00b
n00b


Joined: 27 Jun 2018
Posts: 30

PostPosted: Thu Jan 17, 2019 10:15 am    Post subject: Reply with quote

You say it. But I got this practice from here https://wiki.gentoo.org/wiki/Brother_networked_printer
What I didn't realize until now these files are not binaries but just scripts. It's maybe just a wrong path in brother_lpdwrapper_dcpj572dw
Back to top
View user's profile Send private message
ace999999
n00b
n00b


Joined: 27 Jun 2018
Posts: 30

PostPosted: Thu Jan 17, 2019 7:09 pm    Post subject: Reply with quote

I could enable da debug function with in brother_lpdwrapper_dcpj572dw
Code:
tail -f /tmp/br_cupswrapper_ink.log
START
ARG0      = 27
ARG1      = anonymous
ARG2      = Test Page
ARG3      = 1
ARG4      = job-uuid=urn:uuid:04eb4b3f-db07-32f9-5887-3c5a12f180ed job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1547752051 time-at-processing=1547752051
PRINTER   = usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw
PPD       = /etc/cups/ppd/Brother_DCP-J572DW.ppd
BASEPATH  = /usr/libexec/cups/filter/brother_lpdwrapper_dcpj572dw
export PPD=/etc/cups/ppd/Brother_DCP-J572DW.ppd
/usr/libexec/cups/filter/brother_lpdwrapper_dcpj572dw "anonymous"  "Test Page"  "1"  "job-uuid=urn:uuid:04eb4b3f-db07-32f9-5887-3c5a12f180ed job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1547752051 time-at-processing=1547752051"  ""  ""

TEMPRC    = /tmp/brusrlibexeccupsfilterbrother_lpdwrapper_dcpj572dwrc_35868

SET PPD OPTIONS
-jpeg  <=  Recommended  : (Recommended)
-brit  <=  *  : (0)
-cm  <=  Natural  : (Natural)
-pt  <=  A4  : (A4)
-bidir  <=  ON  : (ON)
-green  <=  *  : (0)
-reso  <=  PlainFast  : (PlainFast)
-duplex  <=  DuplexNoTumble  : (DuplexNoTumble)
-ce  <=  OFF  : (OFF)
-md  <=  PlainDuplex  : (PlainDuplex)
-gsx  <=  OFF  : (OFF)
-cont  <=  *  : (0)
-blue  <=  *  : (0)
-red  <=  *  : (0)
-gdx  <=  OFF  : (OFF)
-ht  <=  Diffusion  : (Diffusion)
-corm  <=  Mono  : (Mono)
-thick  <=  Regular  : (Regular)
-sd  <=  OFF  : (OFF)

SET VENDOR COMMAND OPTIONS

SET PPD CMD OPTIONS

SET MEDIA (STANDARD) COMMAND OPTIONS
brprintconf_usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw -blue 0 -rcfile /tmp/brusrlibexeccupsfilterbrother_lpdwrapper_dcpj572dwrc_35868
brprintconf_usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw -thick Regular -rcfile /tmp/brusrlibexeccupsfilterbrother_lpdwrapper_dcpj572dwrc_35868
brprintconf_usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw -jpeg Recommended -rcfile /tmp/brusrlibexeccupsfilterbrother_lpdwrapper_dcpj572dwrc_35868
brprintconf_usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw -bidir ON -rcfile /tmp/brusrlibexeccupsfilterbrother_lpdwrapper_dcpj572dwrc_35868
brprintconf_usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw -green 0 -rcfile /tmp/brusrlibexeccupsfilterbrother_lpdwrapper_dcpj572dwrc_35868
brprintconf_usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw -sd OFF -rcfile /tmp/brusrlibexeccupsfilterbrother_lpdwrapper_dcpj572dwrc_35868
brprintconf_usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw -duplex DuplexNoTumble -rcfile /tmp/brusrlibexeccupsfilterbrother_lpdwrapper_dcpj572dwrc_35868
brprintconf_usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw -gdx OFF -rcfile /tmp/brusrlibexeccupsfilterbrother_lpdwrapper_dcpj572dwrc_35868
brprintconf_usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw -md PlainDuplex -rcfile /tmp/brusrlibexeccupsfilterbrother_lpdwrapper_dcpj572dwrc_35868
brprintconf_usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw -cont 0 -rcfile /tmp/brusrlibexeccupsfilterbrother_lpdwrapper_dcpj572dwrc_35868
brprintconf_usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw -brit 0 -rcfile /tmp/brusrlibexeccupsfilterbrother_lpdwrapper_dcpj572dwrc_35868
brprintconf_usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw -corm Mono -rcfile /tmp/brusrlibexeccupsfilterbrother_lpdwrapper_dcpj572dwrc_35868
brprintconf_usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw -red 0 -rcfile /tmp/brusrlibexeccupsfilterbrother_lpdwrapper_dcpj572dwrc_35868
brprintconf_usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw -cm Natural -rcfile /tmp/brusrlibexeccupsfilterbrother_lpdwrapper_dcpj572dwrc_35868
brprintconf_usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw -pt A4 -rcfile /tmp/brusrlibexeccupsfilterbrother_lpdwrapper_dcpj572dwrc_35868
brprintconf_usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw -ht Diffusion -rcfile /tmp/brusrlibexeccupsfilterbrother_lpdwrapper_dcpj572dwrc_35868
brprintconf_usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw -reso PlainFast -rcfile /tmp/brusrlibexeccupsfilterbrother_lpdwrapper_dcpj572dwrc_35868
brprintconf_usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw -ce OFF -rcfile /tmp/brusrlibexeccupsfilterbrother_lpdwrapper_dcpj572dwrc_35868
brprintconf_usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw -gsx OFF -rcfile /tmp/brusrlibexeccupsfilterbrother_lpdwrapper_dcpj572dwrc_35868

export BRPAPERWIDTH=-1
export BRPAPERHEIGHT=-1
export PPD=/etc/cups/ppd/Brother_DCP-J572DW.ppd
export BRPRINTERRCFILE=/tmp/usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw_latest_print_info
export LPD_DEBUG=2
export PS=1
cat /tmp/br_cupswrapper_ink_input.ps | /usr/libexec/cups/filter/brother_lpdwrapper_dcpj572dwlpd/filter_usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw > /tmp/br_cupswrapper_ink_output.prn
cat  > /tmp/br_cupswrapper_ink_input.ps && cat /tmp/br_cupswrapper_ink_input.ps |/usr/libexec/cups/filter/brother_lpdwrapper_dcpj572dwlpd/filter_usrlibexeccupsfilterbrother_lpdwrapper_dcpj572dw > /tmp/br_cupswrapper_ink_output.prn
Back to top
View user's profile Send private message
ace999999
n00b
n00b


Joined: 27 Jun 2018
Posts: 30

PostPosted: Fri Jan 18, 2019 7:06 pm    Post subject: Reply with quote

Brother releases the driver as rpm and deb. So I have tested it on an Debian machine. Behavior is the same. it doesn't print, but the debug output looks a bit different.
On the Gentoo machine you clearly see some malformed paths in the end, on debian not.
Debian:
Code:

START
ARG0      = 8
ARG1      = anonymous
ARG2      = Test Page
ARG3      = 1
ARG4      = job-uuid=urn:uuid:08b7d633-2d56-3bd6-6f23-d9b14bf886bf job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1547838137 time-at-processing=1547838137
PRINTER   = dcpj572dw
PPD       = /etc/cups/ppd/DCPJ572DW.ppd
BASEPATH  = /opt/brother/Printers/dcpj572dw/
export PPD=/etc/cups/ppd/DCPJ572DW.ppd
/usr/lib/cups/filter/brother_lpdwrapper_dcpj572dw "anonymous"  "Test Page"  "1"  "job-uuid=urn:uuid:08b7d633-2d56-3bd6-6f23-d9b14bf886bf job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1547838137 time-at-processing=1547838137"  ""  ""

TEMPRC    = /tmp/brdcpj572dwrc_1408

SET PPD OPTIONS
-gdx  <=  OFF  : (OFF)
-corm  <=  Color  : (Color)
-brit  <=  *  : (0)
-md  <=  Plain  : (Plain)
-jpeg  <=  Recommended  : (Recommended)
-blue  <=  *  : (0)
-thick  <=  Regular  : (Regular)
-cont  <=  *  : (0)
-reso  <=  PlainNormal  : (PlainNormal)
-duplex  <=  None  : (None)
-red  <=  *  : (0)
-cm  <=  Natural  : (Natural)
-gsx  <=  OFF  : (OFF)
-pt  <=  Letter  : (Letter)
-ht  <=  Diffusion  : (Diffusion)
-bidir  <=  ON  : (ON)
-sd  <=  OFF  : (OFF)
-green  <=  *  : (0)
-ce  <=  OFF  : (OFF)

SET VENDOR COMMAND OPTIONS

SET PPD CMD OPTIONS

SET MEDIA (STANDARD) COMMAND OPTIONS
brprintconf_dcpj572dw -thick Regular -rcfile /tmp/brdcpj572dwrc_1408
brprintconf_dcpj572dw -duplex None -rcfile /tmp/brdcpj572dwrc_1408
brprintconf_dcpj572dw -ht Diffusion -rcfile /tmp/brdcpj572dwrc_1408
brprintconf_dcpj572dw -bidir ON -rcfile /tmp/brdcpj572dwrc_1408
brprintconf_dcpj572dw -sd OFF -rcfile /tmp/brdcpj572dwrc_1408
brprintconf_dcpj572dw -cont 0 -rcfile /tmp/brdcpj572dwrc_1408
brprintconf_dcpj572dw -pt Letter -rcfile /tmp/brdcpj572dwrc_1408
brprintconf_dcpj572dw -green 0 -rcfile /tmp/brdcpj572dwrc_1408
brprintconf_dcpj572dw -gsx OFF -rcfile /tmp/brdcpj572dwrc_1408
brprintconf_dcpj572dw -ce OFF -rcfile /tmp/brdcpj572dwrc_1408
brprintconf_dcpj572dw -md Plain -rcfile /tmp/brdcpj572dwrc_1408
brprintconf_dcpj572dw -gdx OFF -rcfile /tmp/brdcpj572dwrc_1408
brprintconf_dcpj572dw -cm Natural -rcfile /tmp/brdcpj572dwrc_1408
brprintconf_dcpj572dw -blue 0 -rcfile /tmp/brdcpj572dwrc_1408
brprintconf_dcpj572dw -corm Color -rcfile /tmp/brdcpj572dwrc_1408
brprintconf_dcpj572dw -reso PlainNormal -rcfile /tmp/brdcpj572dwrc_1408
brprintconf_dcpj572dw -red 0 -rcfile /tmp/brdcpj572dwrc_1408
brprintconf_dcpj572dw -jpeg Recommended -rcfile /tmp/brdcpj572dwrc_1408
brprintconf_dcpj572dw -brit 0 -rcfile /tmp/brdcpj572dwrc_1408

export BRPAPERWIDTH=-1
export BRPAPERHEIGHT=-1
export PPD=/etc/cups/ppd/DCPJ572DW.ppd
export BRPRINTERRCFILE=/tmp/dcpj572dw_latest_print_info
export LPD_DEBUG=2
export PS=1
cat /tmp/br_cupswrapper_ink_input.ps | /opt/brother/Printers/dcpj572dw/lpd/filter_dcpj572dw > /tmp/br_cupswrapper_ink_output.prn
cat  > /tmp/br_cupswrapper_ink_input.ps && cat /tmp/br_cupswrapper_ink_input.ps |/opt/brother/Printers/dcpj572dw/lpd/filter_dcpj572dw > /tmp/br_cupswrapper_ink_output.prn
Back to top
View user's profile Send private message
mahutti
n00b
n00b


Joined: 30 Oct 2018
Posts: 7

PostPosted: Tue Jan 22, 2019 5:23 pm    Post subject: Reply with quote

Hey, did you find a solution for this problem?
I recently bought a Brother HL-L3210CW and this one is also not working with my gentoo installation.

I did also install it with the installer from the Brother HP and cups also says that printing was successful, but actually nothing happens.
When I copy the "brother_lpdwrapper_hll3210cw" file to /usr/libexec/cups/filter nothing happens.
When I use the "cupswrapperhll3210cw" file, the printer does actually print, but always only one line of text which says "lpadmin -p HLL3210CW -E -v usb://dev/usb/lp0 -P /usr/share/cups/model/Brother/...
No matter what file I choose to print, it's always that line.

My printer is connected via WiFi, didn't try USB.

Would be great if you could share some tips how you solved that problem.

Thanks!
Back to top
View user's profile Send private message
ace999999
n00b
n00b


Joined: 27 Jun 2018
Posts: 30

PostPosted: Tue Jan 22, 2019 6:28 pm    Post subject: Reply with quote

I have copied the original brother_lpdwrapper_dcpj572dw file back as soon as I realized it is just a script and I can maybe find the problem in the script my self. But I couldn't find it.

The only way my printer works is with Wifi and driverless IPP connection. When it is connected with wifi you have to add a new printer with cups and select always "driverless" driver respectively IPP connection. Then it works for me. Through IPP the printer makes it self and his capabilities known and cups generates a filter for it. There is also a method to use this capability through USB, but you need 'ippusbxd' for it to work which is not available for Gentoo.


Last edited by ace999999 on Wed Jan 23, 2019 1:34 am; edited 2 times in total
Back to top
View user's profile Send private message
mahutti
n00b
n00b


Joined: 30 Oct 2018
Posts: 7

PostPosted: Tue Jan 22, 2019 8:03 pm    Post subject: Reply with quote

That helped a lot, thank you!

Actually my CUPS gui doesn't show anything like driverless IPP.
EDIT: CUPS was built without zeroconf, that's why.

I tried to configure it by using an IPP connection and a Generic IPP Everywhere Model.
This made the device starting to print, but a few seconds later, CUPS said that the job was canceled by the printer.

What finally did work was to setup the printer with lpadmin like
Code:
lpadmin -p Brother_HLL3210CW -E -v ipp://MY_IP_ADDRESS/ipp -m everywhere

This was really the first time I was able to print on this device using linux.

Again, thank you very much, your post was the first time I heard of driverless IPP!
Back to top
View user's profile Send private message
ace999999
n00b
n00b


Joined: 27 Jun 2018
Posts: 30

PostPosted: Thu Jan 31, 2019 5:30 pm    Post subject: Reply with quote

I don't know why but this printer just worked today.
I just tried it gain to print something today didn't expect it to do anything but it worked flawlessly. (with Brother driver). Don't know what has changed expect a few system updates..
Back to top
View user's profile Send private message
McQ
n00b
n00b


Joined: 27 Jul 2017
Posts: 5

PostPosted: Thu Mar 14, 2019 5:26 am    Post subject: Reply with quote

I was able to configure my Brother MFC-J4620DW with CUPS GUI over WIFI by choosing:

Internet Printing Protocol (ipp)

For the connection type and then entering the details as:

lpd://[IP_ADDRESS]/queue

Then just continue setup & choose the correct driver, defaults, etc.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum