pdewacht / brlaser

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

HL-2130 works #63

Open jakubgs opened 4 years ago

jakubgs commented 4 years ago

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

pdewacht commented 4 years ago

Good to hear. Can you give to output of this command? That'd give me the information needed to add a new printer definition to the driver.

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

(I'm 80% sure that I'd just need to replace "2140" by "2130", but sometimes Brother does something different...)

jakubgs commented 4 years ago

I actually have it connected via ipp:// over LAN. Not sure how to show that.

If you need it to add it properly I guess I can try getting a longer USB cable and try connecting it via USB.

pdewacht commented 4 years ago

Ah, I guess you can then try sudo lpinfo --include-schemes ipp -l -v. Or maybe just sudo lpinfo -l -v, though that will include a lot of junk. I've never actually encountered an IPP-capable printer in real life, so I'm not sure what to expect here :)

jakubgs commented 4 years ago

Hmmm, doesn't seem right:

 $ sudo lpinfo --include-schemes ipp -l -v
Device: uri = ipp
        class = network
        info = Internet Printing Protocol (ipp)
        make-and-model = Unknown
        device-id = 
        location = 

Neither does this:

 $ sudo lpinfo -l -v
Device: uri = beh
        class = network
        info = Backend Error Handler
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = socket
        class = network
        info = AppSocket/HP JetDirect
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = http
        class = network
        info = Internet Printing Protocol (http)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = https
        class = network
        info = Internet Printing Protocol (https)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = ipp
        class = network
        info = Internet Printing Protocol (ipp)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = lpd
        class = network
        info = LPD/LPR Host or Printer
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = ipps
        class = network
        info = Internet Printing Protocol (ipps)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = smb
        class = network
        info = Windows Printer via SAMBA
        make-and-model = Unknown
        device-id = 
        location =

But I know my printer is configured:

 $ sudo lpstat -l -p HL2130
printer HL2130 is idle.  enabled since Wed 12 Feb 2020 11:08:31 PM CET
    Form mounted:
    Content types: any
    Printer types: unknown
    Description: Brother HL-2130
    Alerts: none
    Location: 
    Connection: direct
    Interface: /etc/cups/ppd/HL2130.ppd
    On fault: no alert
    After fault: continue
    Users allowed:
        (all)
    Forms allowed:
        (none)
    Banner required
    Charset sets:
        (none)
    Default pitch:
    Default page size:
    Default port settings:

I'll try using a USB cable after work.

jakubgs commented 4 years ago

This is weird. I connected it via USB and it doesn't work. It just printed a black line at the top of the page. Here's the output of sudo lpinfo --include-schemes usb -l -v

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

But it doensn't appear to work correctly. I've set it up to use the driver:

Driver: Brother HL-2140 series, using brlaser v6 (grayscale)
Connection: usb://Brother/HL-2130%20series?serial=A4N815370
Defaults:   job-sheets=none, none media=iso_a4_210x297mm sides=one-sided

And it stopped working over the network too. Wtf.

pdewacht commented 4 years ago

That's bizzare, I'm not sure what could explain that. Maybe some print setting (resolution, etc) is different now?

jakubgs commented 4 years ago

Kinda busy during week. I'll try fiddling with it during the weekend.

ebaschiera commented 4 years ago

Hi, me too I have an HL-2130 and the output is the following:

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

The printer works good with both Brother HL-2140 series, using brlaser v6 (grayscale) and Brother HL-2040 series, using brlaser v6 (grayscale) drivers.

Anyway I noticed that setting the print quality at 1200HQ, the printer stops at approximately half page when printing the test page from Cups web admin. At 600dpi the test page looks good. When printing a full page photo, at 1200HQ the printer prints only a few lines (less then half a centimeter), but at 600 dpi the print is fine.

I am using brlaser v6 self compiled on raspbian buster.

Thanks!

juriroemer commented 3 years ago

Hi, I also use an HL-2130 with Brother HL-2140 series, using brlaser v6 (grayscale), self compiled on raspbian (Raspberry Pi Zero), my Cups test print comes out totally fine at 1200HQ (toner saving off). Have not tested anything but the test page at 1200HQ, though. lpinfo is basically the same as @ebaschiera's

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

Thanks for the great work, took me ages until I finally found your drivers, that actually work!

EDIT: I have now encountered the 1200HQ Problem (only with some pages, though). 600 DPI works fine.