Skip to content

Add brlaser driver for Brother host-based (GDI) laser printers - #43

Closed
valveo wants to merge 1 commit into
arest:mainfrom
valveo:add-brlaser
Closed

valveo wants to merge 1 commit into
arest:mainfrom
valveo:add-brlaser

Conversation

@valveo

@valveo valveo commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Brother host-based lasers such as the HL-2130 understand neither PCL nor PostScript, so none of the bundled Gutenprint drivers can drive them: the add-printer list offers only Gutenprint entries and the printer silently ignores every job. Brother's own Linux driver is an i386/glibc binary and does not run on Alpine.

This PR compiles the open-source brlaser driver (v6.2.8, GPL-2.0) into the image, vendored under cups/brlaser/ in the same way as the Kyocera and Dymo drivers.

Changes

  • cups/Dockerfile: build and install brlaser with cmake (build deps removed afterwards). Install paths are pinned to /usr/share/cups and /usr/lib/cups because CUPS_DATADIR points at /share.
  • cups/brlaser/: vendored brlaser v6.2.8 source.
  • Version bumped to 1.3.5 with a CHANGELOG entry; README notes the new driver.

Testing

  • validate_addon.py passes.
  • Built brlaser with the same cmake invocation and ran CUPS with CUPS_DATADIR set as in the image: lpinfo -m lists drv:///brlaser.drv/br2130.ppd Brother HL-2130 series, using Owl-Maintain/brlaser v6.2.8.
  • Ran the CUPS test page through cupsfilter with the generated HL-2130 PPD: ghostscript → rastertobrlaser complete without errors and output valid PJL + Brother raster data.
    -Tested on Home Assistant with a Brother HL-2130 over USB: prints correctly.

Supported models include HL-2130/2140/2030, HL-1110, HL-L2300D, DCP-7030/7055 and many more; see the brlaser README for the full list.

🤖 Generated with Claude Code

https://claude.ai/code/session_01C7wYQMrusytP5SF4yCMZqo

Bundles Owl-Maintain/brlaser v6.2.8 so printers such as the HL-2130
that speak neither PCL nor PostScript can print.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C7wYQMrusytP5SF4yCMZqo
arest-warren-automerge Bot pushed a commit that referenced this pull request Oct 30, 2026
* Add brlaser driver for Brother host-based (GDI) laser printers

Bundles Owl-Maintain/brlaser v6.2.8 so printers such as the HL-2130
that speak neither PCL nor PostScript can print.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C7wYQMrusytP5SF4yCMZqo

* chore: record brlaser build expertise (PR #43 review)

---------

Co-authored-by: Matti Mieskonen <matti.mieskonen@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: arest <1931848+arest@users.noreply.github.com>
@arest arest closed this Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants