pdewacht / brlaser

Brother laser printer driver
GNU General Public License v2.0
588 stars 112 forks source link

Is it possible to add DCP-7055 support? #1

Closed queeup closed 6 years ago

queeup commented 9 years ago

I want to know if it's possible to add DCP-7055 support. If it's possible, what do you need to know about this printer?

pdewacht commented 9 years ago

Sorry for taking so long to get back to you. The first step is to install the driver and configure your printer as if it was a DCP-7030, and then check what works and what doesn't. Looking at the specs, the DCP-7055 seems pretty similar, so I expect pretty much everything will work with the driver as it is now.

For proper support, to get plug'n'play working, I'll need to know the printer's IEEE 1284 id. If you're on Linux, the following command should print it:

find /sys/devices -name ieee1284_id | xargs head; echo
queeup commented 9 years ago

I will do it as soon as i get back home from trip.

The reason i asked you to add 7055 is because i am using this printer on raspberry pi print server. As you know there is no arm support from brother. I did raw printer on arm and install drivers to clients. If it works with brlaser i will be happy not to install all drivers to clients :)

I have also 7055 ppd file extracted from osx driver. In case if you need to see ppd file.

Thank you.

queeup commented 9 years ago
linuxmint-desktop ~ $ find /sys/devices -name ieee1284_id | xargs head; echo
MFG:Brother;CMD:PJL,HBP;MDL:DCP-7055;CLS:PRINTER;CID:Brother Laser Type1;
linuxmint-desktop ~ $

PPD file is here. I modified for linux use. If you need original osx ppd I can share that too.

pdewacht commented 9 years ago

Thanks for the ieee1284_id. It looks similar to the others that I've seen, so that is a good sign. Have you tried printing anything yet with the brlaser driver?

queeup commented 9 years ago

It works :) I tried as 7065DN and printing good.

Just curious about how to add other options of my model. Like "Skip Blank Page", "Reduce Ghosting" etc.

pdewacht commented 9 years ago

Well, first you need to know which command to send to the printer. In general, generate a print job with the setting disabled, then one with the setting enabled, and check what the diffference is. With these printers, it's pretty likely to be a PJL configuration command which will be obvious (I expect it will be something like @PJL SET REDUCE_GHOSTING=ON). You might discover it just by running strings on the driver.

To set up print-to-file with CUPS, look here: https://wiki.linuxfoundation.org/en/OpenPrinting/Database/CupsFAQ#How_do_I_print_to_a_file.3F One thing to watch out for is that CUPS is usually run in a sandbox (nobody trusts printer drivers :) ), and it might be that the only place you can create files is in /var/spool/cups/tmp/.

Once you know how to control the feature, you can add a configuration flag to brlaser.drv.in and a check for that flag in the source code. This is actually rather poorly documented. I have one option for toner-save mode which you can emulate, but I really don't know if I'm doing it the proper way.

(For "skip blank page" no printer support is needed of course. It would need a bit of refactoring though, as the driver currently doesn't read in an entire page before it starts outputting print data.)

queeup commented 9 years ago

Thanks for info. I did some tests with Brother Generic LPR driver and PPD file. I can't find "Reduce Ghosting" param. What ever I change, just this params appear.

@PJL JOB NAME="Brother HL-XXX"
@PJL SET RAS1200MODE = OFF
@PJL SET RESOLUTION = 600
@PJL SET ECONOMODE = ON
@PJL SET SOURCETRAY = AUTO
@PJL SET MEDIATYPE = REGULAR
@PJL SET ORIENTATION = PORTRAIT
@PJL SET PAGEPROTECT = AUTO
@PJL ENTER LANGUAGE = PCL

No big dial. Just trying to understand and improve brlaser :)

DamirPorobic commented 7 years ago

The PPD file that you have shared is no longer available, could you share it once more? Also, is there any chance to make the scanner work?

queeup commented 7 years ago

Here it is: http://pastebin.com/HdHUCRm1

No idea about scanner. I just using Brother scanner drivers on my Linux.

DamirPorobic commented 7 years ago

I've installed the x86 brother printer driver on the Raspberry Pi using QEMU emulation and that works fine. The scanner driver is installed to but SANE is unable to open the shared libraries...

gpolitis commented 7 years ago

I've compiled and installed the brlaser driver on a Raspberry Pi and the printer works just fine. I'm even able to print with my iPhone using AirPrint. Should we close this issue?

pdewacht commented 6 years ago

DCP-7055's seem to work fine. This issue has gotten pretty chatty, if there's something that still needs to be dealt with, please open a new issue.