Giter Club home page Giter Club logo

brlaser's People

Contributors

cinemast avatar evanmiller avatar hollobon avatar lnussel avatar nico202 avatar pdewacht avatar qortec avatar rkreis avatar stijndw avatar vaukai avatar xc-racer99 avatar xuzhao9 avatar yaxollum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

brlaser's Issues

Brother MFC-1910W

Hi,

As explained in the README.md, my brother MFC-1910W don't show up in the devices, I used a brlaser driver and it prints very well.

I use it through wireless network, I got informations from lpinfo -v -m -l, hope it's good enough.

solene ~ $ doas lpinfo -v  -m -l
network dnssd://Brother%20MFC-1910W%20series._pdl-datastream._tcp.local/?uuid=e3248000-80ce-11db-8000-2c6fc930f2db
network lpd://BRW2C6FC930F2DB/BINARY_P1

Brother MFC 7420 not in driver list

I was able to perform a test print using the following settings and drive config:
Description: Brother MFC-7420
Location:
Driver: Brother MFC-7360N, using brlaser v6 (grayscale)
Connection: usb://Brother/MFC-7420?serial=000K7J122979
Defaults: job-sheets=none, none media=iso_a4_210x297mm sides=one-sided

output of lpinfo below:

lpinfo --include-schemes usb -l -v
Device: uri = usb://Brother/MFC-7420?serial=000K7J122979
class = direct
info = Brother MFC-7420
make-and-model = Brother MFC-7420
device-id = MFG:Brother;CMD:PJL,HBP;MDL:MFC-7420;CLS:PRINTER;
location =

Compile errors w/rt/ Raster.h "header not found" on Rpi4/Manjaro

Hoping to get some guidance on an error I receive when trying to cmake . the package on a Raspberry Pi 4 running Manjaro with (almost) all of the necessary CUPS packages installed.

Essentially, when the package guilder gets to the point of Looking for C++ include cups/raster.h, it throws an error:

<cups/raster.h> header not found.  Are the CUPS development packages
  installed?

Comparing the Debian and Arch package lists for libcups2-dev, the only files not included in the latter (and also not on my Rpi4 machine) are:

/usr/lib/aarch64-linux-gnu/libcups.a
/usr/lib/aarch64-linux-gnu/libcups.so
/usr/include/cups/i18n.h

Notably, /usr/include/cups/raster.h is included in the Arch build and on my machine.

Any idea if these files are the issue or something else is at play?

Brother QL-500 works

Brother QL-500 seems to be working fine as well :)

sudo lpinfo --include-schemes usb -l -v output:

Device: uri = usb://Brother/QL-500?serial=G4Z791159
  class = direct
  info = Brother QL-500
  make-and-model = Brother QL-500
  device-id = MFG:Brother:CMD:PT-CBP;MDL:QL-500;CLS:PRINTER;
  location = 

Confirmed working on DCP-L2540D

Duplexer works too!

sudo lpinfo --include-schemes usb -l -v
Device: uri = usb://Brother/DCP-L2520D%20series?serial=E73800E9N676751
        class = direct
        info = Brother DCP-L2520D series
        make-and-model = Brother DCP-L2520D series
        device-id = MFG:Brother;CMD:PJL,HBP;MDL:DCP-L2520D series;CLS:PRINTER;CID:Brother Laser Type1;
        location = 

Brother HL-L2340D

sudo lpinfo --include-schemes usb -l -v: produced no ouput
print successful

HL-2030 Series confirmed to work.

Thanks so much for this!

On my Brother HL-2030 I had the same artifactural printing experience with the release v5 as reported by #44 and #39 which were fixed by using 7ed0d6f instead.

Device: uri = usb://Brother/HL-2030%20series?serial=F8J920992
        class = direct
        info = Brother HL-2030 series
        make-and-model = Brother HL-2030 series
        device-id = MFG:Brother;CMD:PJL,HBP;MDL:HL-2030 series;CLS:PRINTER;
        location =

Brother DCP-7065DN duplex printing

Recently I installed latest Raspbian on my RPI and configured my printer Brother DCP-7065DN. But I'm not able to set up duplex printing for it. I can see this on my CUPS administration:

Description: | Brother DCP-7065DN
Brother DCP-7065DN, using brlaser v3 (grayscale)
lpd://192.168.0.150/BINARY_P1
job-sheets=none, none media=iso_a4_210x297mm sides=one-sided

When I printing to this printer from iOS or macOS I can't set two sided (duplex) printing.
Is there anything more that I need to do for duplex printing?

Brother HL-1202R works with this driver

Hi

Brother HL-1202R works with yours driver. Thanks for brlaser project :)

Device: uri = usb://Brother/HL-1200%20series?serial=M7N411923
class = direct
info = Brother HL-1200 series
make-and-model = Brother HL-1200 series
device-id = MFG:Brother;CMD:PJL,HBP;MDL:HL-1200 series;CLS:PRINTER;CID:Brother Laser Type3;
location =

HL-L2375DW Works

brlaser 6, OpenBSD 6.6
Seems to be fine - duplex, multiple pages per side all good.

Device: uri = lpd://BRN3C2AF46E25E9/BINARY_P1
class = network
info = Brother HL-L2375DW series
make-and-model = Brother HL-L2375DW series
device-id = MFG:Brother;CMD:PJL,PCL,PCLXL,URF;MDL:HL-L2375DW series;CLS:PRINTER;CID:Brother Laser Type1;URF:W8,CP1,IS4-1,MT1-3-4-5-8,OB10,PQ3-4-5,RS300-600-1200,V1.4,DM1;
location =

Thanks!

Brother DCP-L2540DW

I was able to get the Brother DCP-L2540DW to print two-sided on a Raspberry Pi.
All I did is to add the definition in the file brlaser.drv.in using the DCP-7065DN as a model before running cmake and make thhen got the .ppd file from Brother.com and configure the printer in cups.
I did not do extensive tests but print LiberOffice calc (pdf) file fine in duplex.
This site was very useful.

Brother DCP-1602 working

Dispositivo: uri = usb://Brother/DCP-1600%20series?serial=U63976J8N739360
classe = direct
info = Brother DCP-1600 series
marca-e-modelo = Brother DCP-1600 series
dispo-id = MFG:Brother;CMD:PJL,XL2HB;MDL:DCP-1600 series;CLS:PRINTER;CID:Brother Laser Type1;
localização =

HL-2280DW works

I used HL-2270DW and worked fine. It seems that the LCD screen and some other cosmetic things are the only difference between the models

used socket://[printer_ip_address]:9200 as URI

BTW sudo lpinfo --include-schemes usb -l -v is returning nothing (this is a network printer. let me know what information I can provide)

Thanks for this project

Brother MFC-7840W

This printer seems to work fine, with CUPS under ArcaOS 5.0.3 (OS/2). I used the MFC-7240 printer selection. Sorry, but I cannot get any output from the lpinfo command. I tested with WiFi, and USB. The machine has a wired network connector, but it is damaged, so I can't test with it.

Hope this helps...

make error

make all-am make[1]: Entering directory '/home/dragon/brlaser' CXX src/main.o CXX src/debug.o CXX src/job.o CXX src/line.o CXXLD src/rastertobrlaser CXX src/brdecode.o src/brdecode.cc: In function ‘int main(int, char**)’: src/brdecode.cc:177:3: error: ‘string’ is not a member of ‘std’ std::string out_prefix; ^~~ src/brdecode.cc:181:5: error: ‘out_prefix’ was not declared in this scope out_prefix = argv[2]; ^~~~~~~~~~ src/brdecode.cc:184:5: error: ‘out_prefix’ was not declared in this scope out_prefix = argv[1]; ^~~~~~~~~~ src/brdecode.cc:187:5: error: ‘out_prefix’ was not declared in this scope out_prefix = "page"; ^~~~~~~~~~ src/brdecode.cc:207:7: error: ‘string’ is not a member of ‘std’ std::string out_filename = out_prefix ^~~ src/brdecode.cc:209:30: error: ‘out_filename’ was not declared in this scope FILE *out_file = fopen(out_filename.c_str(), "wb"); ^~~~~~~~~~~~ make[1]: *** [Makefile:733: src/brdecode.o] Error 1 make[1]: Leaving directory '/home/dragon/brlaser' make: *** [Makefile:568: all] Error 2

HL-1110 "filter failed"

Hi

I'm trying to print on a HL-1110 connected to a raspberry pi. The lpr command works fine, but it always fails via CUPS. The state in each job is always stopped "Filter failed". Here's the error log:

D [09/Feb/2020:20:35:47 +1000] [Job 88] argv[6]="/var/spool/cups/d00088-001"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[7]="CUPS_STATEDIR=/run/cups"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[8]="HOME=/var/spool/cups/tmp"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[10]="SERVER_ADMIN=root@orangepilite"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[11]="SOFTWARE=CUPS/2.2.7"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[13]="USER=root"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[14]="CUPS_MAX_MESSAGE=2047"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[15]="CUPS_SERVER=/run/cups/cups.sock"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[17]="IPP_PORT=631"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[18]="CHARSET=utf-8"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[19]="LANG=en_US.UTF-8"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[20]="PPD=/etc/cups/ppd/Brother_HL-1110_series.ppd"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[21]="RIP_MAX_CACHE=128m"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[22]="CONTENT_TYPE=application/vnd.cups-raster"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[23]="DEVICE_URI=usb://Brother/HL-1110%20series?serial=H6N434263"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[24]="PRINTER_INFO=Brother HL-1110 series"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[25]="PRINTER_LOCATION="
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[26]="PRINTER=Brother_HL-1110_series"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[27]="PRINTER_STATE_REASONS=none"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[28]="CUPS_FILETYPE=document"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[29]="FINAL_CONTENT_TYPE=printer/Brother_HL-1110_series"
D [09/Feb/2020:20:35:47 +1000] [Job 88] envp[30]="AUTH_I****"
D [09/Feb/2020:20:35:47 +1000] [Job 88] Started filter /usr/lib/cups/filter/rastertobrlaser (PID 2727)
D [09/Feb/2020:20:35:47 +1000] [Job 88] Started backend /usr/lib/cups/backend/usb (PID 2728)
D [09/Feb/2020:20:35:47 +1000] [Job 88] Loading USB quirks from \"/usr/share/cups/usb\".
D [09/Feb/2020:20:35:47 +1000] [Job 88] brlaser version 6
D [09/Feb/2020:20:35:47 +1000] [Job 88] Set job-printer-state-message to "brlaser version 6", current level=INFO
D [09/Feb/2020:20:35:47 +1000] [Job 88] Loaded 88 quirks.
D [09/Feb/2020:20:35:47 +1000] [Job 88] brlaser: Cannot read raster data. Most likely an earlier filter in the pipeline failed.
D [09/Feb/2020:20:35:47 +1000] [Job 88] Printing on printer with URI: usb://Brother/HL-1110%20series?serial=H6N434263
D [09/Feb/2020:20:35:47 +1000] [Job 88] PID 2727 (/usr/lib/cups/filter/rastertobrlaser) stopped with status 1.
D [09/Feb/2020:20:35:47 +1000] [Job 88] Hint: Try setting the LogLevel to "debug" to find out more.
D [09/Feb/2020:20:35:47 +1000] [Job 88] libusb_get_device_list=6
D [09/Feb/2020:20:35:47 +1000] [Job 88] STATE: +connecting-to-device
D [09/Feb/2020:20:35:47 +1000] [Job 88] STATE: -connecting-to-device
D [09/Feb/2020:20:35:47 +1000] [Job 88] Printer found with device ID: MFG:Brother;CMD:PJL,HBP;MDL:HL-1110 series;CLS:PRINTER;CID:Brother Laser Type3; Device URI: usb://Brother/HL-1110%20series?serial=H6N434263
D [09/Feb/2020:20:35:47 +1000] [Job 88] Device protocol: 2
D [09/Feb/2020:20:35:47 +1000] [Job 88] Sending data to printer.
D [09/Feb/2020:20:35:47 +1000] [Job 88] Sent 0 bytes...
D [09/Feb/2020:20:35:47 +1000] [Job 88] Waiting for read thread to exit...
D [09/Feb/2020:20:35:47 +1000] [Job 88] PID 2728 (/usr/lib/cups/backend/usb) exited with no errors.
D [09/Feb/2020:20:35:47 +1000] [Job 88] End of messages
D [09/Feb/2020:20:35:47 +1000] [Job 88] printer-state=3(idle)
D [09/Feb/2020:20:35:47 +1000] [Job 88] printer-state-message="Sending data to printer."
D [09/Feb/2020:20:35:47 +1000] [Job 88] printer-state-reasons=none

The only filter I can see running from the log is the /usr/lib/cups/filter/rastertobrlaser (line: Started filter /usr/lib/cups/filter/rastertobrlaser (PID 2727)), but it's not clear how/why it failed. Anyone know how to fix this?

Thanks

Brother HL-L2390DW works

Device: uri = usb://Brother/HL-L2390DW?serial=U64967F9N815202
        class = direct
        info = Brother HL-L2390DW
        make-and-model = Brother HL-L2390DW
        device-id = MFG:Brother;CMD:PJL,HBP,URF;MDL:HL-L2390DW;CLS:PRINTER;CID:Brother Laser Type1;URF:W8,CP1,IS4-1,MT1-3-4-5-8,OB10,PQ3-4-5,RS300-600-1200,V1.4,DM1;
        location =

Brother MFC-L2750DW works

Brother MFCL2750DW seems to be working OK.
Duplex OK, n-in-1 OK
Arch Linux ARM under Raspberry Pi
CUPS 2.3.0
I cannot see the device with lpinfo.

MFC-8710 DW Works

Not much to say, it just works. I used the drv:///brlaser.drv/br7240.ppd driver.

% sudo lpinfo --include-schemes usb -l -v                                                                                                                     21:45:33

Device: uri = usb://Brother/MFC-8710DW?serial=U63088J3N536298
        class = direct
        info = Brother MFC-8710DW
        make-and-model = Brother MFC-8710DW
        device-id = MFG:Brother;CMD:PJL,PCL,PCLXL,URF;MDL:MFC-8710DW;CLS:PRINTER;CID:Brother Laser Type2;URF:W8,CP1,IS11-19-4,MT1-3-4-5-8-11,OB10,PQ4,RS300-600-1200,DM1;
        location =

Brother HL-2380DW

Would be nice if this one was working as well. Has anyone found a driver that works for it? I'm not using usb, doing wireless.

Make error

I'm getting error's while running 'make'

~/brlaser/brlaser $ make
make  all-am
make[1]: Entering directory '/home/pi/brlaser/brlaser'
  CXX      src/brdecode.o
src/brdecode.cc: In function ‘int main(int, char**)’:
src/brdecode.cc: In function ‘int main(int, char**)’:  
src/brdecode.cc:177:3: error: ‘string’ is not a member of ‘std’
   std::string out_prefix;
   ^~~
src/brdecode.cc:181:5: error: ‘out_prefix’ was not declared in this scope
     out_prefix = argv[2];
     ^~~~~~~~~~
src/brdecode.cc:184:5: error: ‘out_prefix’ was not declared in this scope
     out_prefix = argv[1];
     ^~~~~~~~~~
src/brdecode.cc:187:5: error: ‘out_prefix’ was not declared in this scope
     out_prefix = "page";
     ^~~~~~~~~~
src/brdecode.cc:207:7: error: ‘string’ is not a member of ‘std’
       std::string out_filename = out_prefix
       ^~~
src/brdecode.cc:209:30: error: ‘out_filename’ was not declared in this scope
       FILE *out_file = fopen(out_filename.c_str(), "wb");
                              ^~~~~~~~~~~~
Makefile:734: recipe for target 'src/brdecode.o' failed
make[1]: *** [src/brdecode.o] Error 1
make[1]: Leaving directory '/home/pi/brlaser/brlaser'
Makefile:569: recipe for target 'all' failed
make: *** [all] Error 2

Rpi 2 running Raspbian.

Brother HL-2220 Series

I got this working with my Brother HL-2220 series printer. It does seem to have the same problem that #39 has, and I'll try the solution there.

Device: uri = usb://Brother/HL-2220%20series?serial=M0N113163
        class = direct
        info = Brother HL-2220 series
        make-and-model = Brother HL-2220 series
        device-id = MFG:Brother;CMD:PJL,HBP;MDL:HL-2220 series;CLS:PRINTER;
        location =

HL-L2360DW

Device: uri = usb://Brother/HL-L2360D%20series?serial=U63883G5N939629
class = direct
info = Brother HL-L2360D series
make-and-model = Brother HL-L2360D series
device-id = MFG:Brother;CMD:PJL,PCL,PCLXL,URF;MDL:HL-L2360D series;CLS:PRINTER;CID:Brother Laser Type1;URF:W8,CP1,IS4-1,MT1-3-4-5-8,OB10,PQ4,RS300-600,V1.3,DM1;
location =

Brother HL-5030; print issues

Hi,

Here is informations for Brother HL-5030, printer started working after I added HL-5030 informations in to brlaser.drv.in file and build the driver.

pi@raspberrypi:/tmp/brlaser $ sudo lpinfo --include-schemes usb -l -v
Device: uri = usb://Brother/HL-5030%20series?serial=B3J200238
        class = direct
        info = Brother HL-5030 series
        make-and-model = Brother HL-5030 series
        device-id = MFG:Brother;CMD:PJL,PCL;MDL:HL-5030 series;CLS:PRINTER;
        location = 

{
  ModelName "HL-5030"
  Attribute "NickName" "" "Brother HL-5030 series, $USING"
  Attribute "1284DeviceID" "" "MFG:Brother;CMD:PJL,PCL;MDL:HL-5030 series;CLS:PRINTER;"
  PCFileName "hl5030.ppd"
}

Thank you!!

Brother DCP-L2500D works

Dear mr de Wacht,
Thank you for you're awesome work! I've got my printer Brother DCP-L2500D working with you're driver (brlaser v3 (grayscale)). Below the output from the lpinfo:

Device: uri = usb://Brother/DCP-L2500D%20series?serial=E73908C6N326411
class = direct
info = Brother DCP-L2500D series
make-and-model = Brother DCP-L2500D series
device-id = MFG:Brother;CMD:PJL,HBP;MDL:DCP-L2500D series;CLS:PRINTER;CID:Brother Laser Type1;
location =

HL-L2370DN (partially) works

Thank you very much for this driver!

I used it with the Brother HL-L2370DN on a system with Guix. While the CUPS test page is printed without the image (only the border and the text appear) and CUPS throws an error when trying to print the self test page (see below), I managed to print a monochrome PDF file was generated with LaTeX.

I selected the driver "Brother HL-L2360D series, using brlaser v4 (grayscale, 2-sided printing)".

In case it is of interest, printing the self test page resulted in this error message:

Unable to send command to printer driver:
  Unsupported document-format "application/vnd.cups-command

Ignoring the failure to print the test pages, the driver really does work, so for the first time in 6 months this printer is more than just a paper weight. Thanks a lot!

Works with MFC7365DN

brlaser works with the MFC7365DN

Device: uri = usb://Brother/MFC-7365DN?serial=U63681H3N826477
class = direct
info = Brother MFC-7365DN
make-and-model = Brother MFC-7365DN
device-id = MFG:Brother;CMD:PJL,HBP;MDL:MFC-7365DN;CLS:PRINTER;CID:Brother Laser Type1;
location =

Thank you!!

Not an issue but I was having a serious headache to get my DCP 7030 work with Solus since there is no official support... I tried brlaser and it worked flawlessly! Thank you so much for distributing this!!

Brother DCP-7060D works

Tested using the CUPS test page.

$ lpinfo --include-schemes usb -l -v
Device: uri = usb://Brother/DCP-7060D?serial=U62711E3N517418
        class = direct
        info = Brother DCP-7060D
        make-and-model = Brother DCP-7060D
        device-id = MFG:Brother;CMD:PJL,HBP;MDL:DCP-7060D;CLS:PRINTER;CID:Brother Laser Type1;
        location = 

HL-2140 Does not work --> But listed on main page as working

First, this awesome what you are doing. Thank you!

Second, running Raspbian on an Rpi3 (note: I have a different issue with installation on an Rpi4 that is discussed here), I installed using sudo apt install printer-driver-brlaser. All seemed to go well. But the list of printers with brlaser support in CUPS is limited to only 1 HL printer (e.g., HL-L2300D) and six DCP printers. I tried the closest to the HL-2140 (and actually all of the brlaser printers listed), but each time the printout had a weird text rendering where the bottom or middle 2/3 of a letter were missing or hollow

In case you can add the HL-2140 specifically, here is the output of sudo lpinfo --include-schemes usb -l -v:

Device: uri = usb://Brother/HL-2140%20series?serial=E0J623111
        class = direct
        info = Brother HL-2140 series
        make-and-model = Brother HL-2140 series
        device-id = MFG:Brother;CMD:PJL,HBP;MDL:HL-2140 series;CLS:PRINTER;
        location = 

HL-1202; PDF Printing

Hi, i’m really new on Linux. My printer is a Brother HL-1202. Currently using a raspberry pi zero W to connect my Brother HL but having trouble to use it with CUPS.

I clone the git and did everything right (I guess), Cups shows Brlaser V6, and currently using HL-1200 series.

I manage to print the Test Print, and some text documents, and vector files. But i’m having a hard time to print ANY PDF file.

This error shows up
Fri Oct 11 21:38:29 2019
"/var/spool/cups/d00006-001 (object 20 0): object has offset 0"

More informations about my printer, if this is helpful.

uri = usb://Brother/HL-1200%20series?serial=F9N305579
class = direct
info = Brother HL-1200 series
make-and-model = Brother HL-1200 series
device-id = MFG:Brother;CMD:PJL,HBP;MDL:HL-1200 series;CLS:PRINTER;CID:Brother Laser Type3;
location =

If you need some log, please, write it down step-by-step how to capture it, i’m really new on this.

Thanks for the help.

Brlaser project saved me, i wasn’t able to print anything without using this driver before.

Brother HL-2140; print issues

$ lpinfo --include-schemes usb -l -v
Device: uri = usb://Brother/HL-2140%20series?serial=A9J283210
        class = direct
        info = Brother HL-2140 series
        make-and-model = Brother HL-2140 series
        device-id = MFG:Brother;CMD:PJL,HBP;MDL:HL-2140 series;CLS:PRINTER;
        location = 

printing works with very poor quality. there's bits missing.
IMG_20190314_121935

Brother HL-L2300D not available

Need advice.
Installed printer-driver-brlaser via yast (opensuse leap 15.1) but 2300 driver still missing. Only a few are listed when I search for 'brlaser'.

sudo lpinfo --include-schemes usb -l -v output:

Device: uri = usb://Brother/HL-L2300D%20series?serial=E73860C7N506806
        class = direct
        info = Brother HL-L2300D series
        make-and-model = Brother HL-L2300D series
        device-id = MFG:Brother;CMD:PJL,HBP;MDL:HL-L2300D series;CLS:PRINTER;CID:Brother Laser Type1;
        location = 

What can I do?

Screenshot_20191016_182300

Unlisted ghostscript dependency

At least, for me it was required for this to work. Otherwise all I get from CUPS is:

Can't read raster data

Using a Brother HL-L2300D series

Make fails on FreeBSD

I tried to use this drivers with FreeBSD. This is what I did:

./autogen.sh
./configure
make

But make fails with the following error:

make  all-am
  CXXLD    src/rastertobrlaser
src/main.o: In function `main':
/usr/home/jo/brlaser/src/main.cc:68: undefined reference to `libiconv_open'
/usr/home/jo/brlaser/src/main.cc:78: undefined reference to `libiconv'
/usr/home/jo/brlaser/src/main.cc:84: undefined reference to `libiconv_close'
collect2: error: ld returned 1 exit status
*** Error code 1

Stop.
make[1]: stopped in /usr/home/jo/brlaser
*** Error code 1

DCP-7080 also works!

Dear sir,
I have tired brlaser v4 for my Brother DCP-7080 printer on raspberry pi 3b, I choose the model as DCP-7055, it works well. Thank you so much for your work!
btw, DCP-7080 is a special model in Asia area.
Best regards,
Z

Device info:
Device: uri = usb://Brother/DCP-7080?serial=E70207G7J000000
class = direct
info = Brother DCP-7080
make-and-model = Brother DCP-7080
device-id = MFG:Brother;CMD:PJL,HBP;MDL:DCP-7080;CLS:PRINTER;CID:Brother Laser Type1;
location =

HL-L2300D Problem

Hi,
i have a Problem with the HL-L2300D Printer:

-cups 2.2.1 on debian 9
-printing from linux is working fine, local and network
-printing von windows is not working:
D [10/Sep/2019:21:23:23 +0200] [Job 50] gstopdf argv[6] = 50 labor Testseite 1 job-uuid=urn:uuid:4388551e-66e5-3112-6f63-0a50bf2de54c usb-no-reattach usb-unidir job-originating-host-name=10.20.25.8 date-t
ime-at-creation= date-time-at-processing= time-at-creation=1568143403 time-at-processing=1568143403 /var/spool/cups/d00050-001
D [10/Sep/2019:21:23:23 +0200] [Job 50] PPD: /etc/cups/ppd/HLL2300D.ppd
D [10/Sep/2019:21:23:23 +0200] [Job 50] Loading USB quirks from "/usr/share/cups/usb".
D [10/Sep/2019:21:23:23 +0200] [Job 50] Loaded 132 quirks.
D [10/Sep/2019:21:23:23 +0200] [Job 50] Printing on printer with URI: usb://Brother/HL-L2300D%20series?serial=E73860M5N460828
D [10/Sep/2019:21:23:23 +0200] [Job 50] pdftopdf: Last filter determined by the PPD: brother_lpdwrapper_HLL2300D; FINAL_CONTENT_TYPE: application/vnd.cups-pdf => pdftopdf will not log pages in page_log.
D [10/Sep/2019:21:23:23 +0200] [Job 50] OUTFORMAT="PDF", so output format will be PDF
D [10/Sep/2019:21:23:23 +0200] [Job 50] libusb_get_device_list=4
D [10/Sep/2019:21:23:23 +0200] [Job 50] STATE: +connecting-to-device
D [10/Sep/2019:21:23:23 +0200] [Job 50] STATE: -connecting-to-device
E [10/Sep/2019:21:23:23 +0200] [Job 50] Can't detect file type
D [10/Sep/2019:21:23:23 +0200] [Job 50] PID 32089 (/usr/lib/cups/filter/gstopdf) stopped with status 1.
E [10/Sep/2019:21:23:23 +0200] [Job 50] loadFile failed: temp file: not a PDF file

Is there any solution ?
Regards
Georg

Brother HL1110; 600x300 dpi mode

Weird, GitHub deleted this issue. IIRC this printer had an odd 600x300 resolution mode, which is necessary to support, as this printer has very little RAM. Needs more investigation.

Device: uri = usb://Brother/HL-1110%20series?serial=dontlookhere
class = direct
info = Brother HL-1110 series
make-and-model = Brother HL-1110 series
device-id = MFG:Brother;CMD:PJL,HBP;MDL:HL-1110 series;CLS:PRINTER;CID:Brother Laser Type3;
location =

Brother HL-1210W; 1200HQ mode

Hi,

I own a brother HL-1210W printer. The printer prints the test page in cups correctly when installed. However, it silently fails for me for more complex documents. The printer LED will blink and then stop with the printer seemingly returning a succesful status, as all such jobs are presented as successful in the CUPS system.

However, I noticed that I can tweak your driver to get it to print complex documents. The following change seems to do the trick:

diff --git a/src/block.h b/src/block.h
index 13daea1..e5dbd8d 100644
--- a/src/block.h
+++ b/src/block.h
@@ -59,7 +59,7 @@ class block {
 
  private:
   static const unsigned max_block_size_ = 16350;
-  static const unsigned max_lines_per_block_ = 128;
+  static const unsigned max_lines_per_block_ = 64;
 
   std::vector<std::vector<uint8_t>> lines_;
   int line_bytes_;

The 64 seems to be a sharp limit; with any higher value it doesn't work. Tested with generating a 4958x7008 1-bit image in gimp, filling it with 50% random black pixels, saving as .ps (default options) and then using gstoraster followed by rastertobrlaser. Also tested with a simple printed web page from firefox that resulted in a raster file of the same dimensions from gstoraster.

Hope this helps and thanks for writing the driver.

Duplex Support

I've been able to use this to make my Raspberry Pi Zero W work as a wireless print server for my Brother DCP-7060D. Thanks! It might be worth marking this device as supported.

However, there is no Duplex support when using AirPrint. I notice you're working on it - I tried your test duplex code and that didn't seem to work for me (blank pages printed out). Is this still in the works?

HL-2130 works

By using the HL-2140 series driver I could use my HL-2130.

[HL-L2300D] Doesn't print all of a sudden

I guess, that's not really a bug report but rather a support request - unfortunately I didn't find a better place for it.

I recently bought an HL-L2300D and want to use it on a Raspi (running Raspbian and CUPS 1.5.3) which makes it available in the local network. I followed the steps described here to compile and install the driver: https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=116509 Initially it worked and I could use the printer both locally and over the network without any problems.

However, after literally just a few days, without any changes or updates, the printer stopped working. Now, when sending a print job, the "Ready" LED blinks for quite a long time but then just stops blinking and nothing is printed. CUPS reports the job as completed without error. I just tested the printer on my PC using the official drivers and it works, so it's not a hardware issue. Unfortunately the binary drivers won't work on a Raspi, therefore any help in making the brlaser drivers work is greatly appreciated!

Here is some information I saw being useful in one of the other bug reports, don't know whether it will help here:

$ find /sys/devices -name ieee1284_id | xargs head; echo
MFG:Brother;CMD:PJL,HBP;MDL:HL-L2300D series;CLS:PRINTER;CID:Brother Laser Type1;

Brother MFC-L2710DW

This driver saved me tearing my hair out. The official drivers didn't work, and I spent about 4 hours trying different CUPS drivers and hit on brlaser4. Here's the required output:

Device: uri = usb://Brother/MFC-L2710DW%20series?serial=E78102G8N298258
class = direct
info = Brother MFC-L2710DW series
make-and-model = Brother MFC-L2710DW series
device-id = MFG:Brother;CMD:PJL,HBP,URF;MDL:MFC-L2710DW series;CLS:PRINTER;CID:Brother Laser Type1;URF:W8,CP1,IS4-1,MT1-3-4-5-8,OB10,PQ3-4-5,RS300-600-1200,V1.4,DM1;
location =
I ended up successfully using "Brother DCP-7065DN, using brlaser v4"

Cheers!

HL-L2320D works too

Below is output of sudo lpinfo --include-schemes usb -l -v:

brittger@pallas:~ $ sudo lpinfo --include-schemes usb -l -v
Device: uri = usb://Brother/HL-L2320D%20series?serial=U63877M4N610239
class = direct
info = Brother HL-L2320D series
make-and-model = Brother HL-L2320D series
device-id = MFG:Brother;CMD:PJL,HBP;MDL:HL-L2320D series;CLS:PRINTER;CID:Brother Laser Type1;
location =

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.