pdewacht / brlaser

Brother laser printer driver
GNU General Public License v2.0
576 stars 109 forks source link

HL-L2300D on CUPS/RPi doesn't print images #139

Open pshabunia opened 2 years ago

pshabunia commented 2 years ago

Strange thing with HL-L2300D model connected via CUPS server on raspberry pi 3. Text files and text-only documents print OK but as soon as it comes to images the printer chokes and silently drops the task. Printer LED indicator blinks 5 times, slightly pauses for 1.5 interval, then another 5 blinks, and that's it.

For some documents it helps to set page scaling from default 100% to somewhat "fit to page" and it goes through. However it doesn't always help as some images or documents just can't be printed.

Looks like a weird scaling or buffering issue. Cups error log contains nothing suspicious except "Unable to encrypt connection: A TLS fatal alert has been received"

Printer works fine when connected directly to workstation.

Let me know if I can gather more information for you. Here's the tutorial for CUPS+printer installation on RPi: https://medium.com/@alexanderbelov/how-to-use-your-brother-printer-with-cups-on-raspberry-pi-5b712cc2b4e6

P.S. Found some related mentions on raspberrypi forum: https://forums.raspberrypi.com/viewtopic.php?t=279465 https://forums.raspberrypi.com/viewtopic.php?t=26925

beezkneezdeez commented 2 years ago

Funny, Im fighting the same problem at this very moment.

pshabunia commented 2 years ago

The package I previously installed via apt-get appears to be outdated. It's version. 4. The latest version is 6.

apt show printer-driver-brlaser
Package: printer-driver-brlaser
Version: 4-1
Priority: optional
...

I re-installed the package from source code and it works perfectly fine, printing all sorts of PDF/PNG/JPEG files.

@beezkneezdeez would you try it and update the thread please?

pshabunia commented 2 years ago

Copy of Issue #52, btw

Jesse-Culver commented 2 years ago

I had the same issue on a HL-L2300D and can confirm that building the current master branch solved it as was reported in #52

shumafuk commented 2 years ago

I have same issue. Please, how can I upgrade to newest version? sudo apt-get upgrade printer-driver-brlaser get me "printer-driver-brlaser is already the newest version (4-1)" which is not true. I need 1-6.

zacs commented 3 months ago

I have same issue. Please, how can I upgrade to newest version? sudo apt-get upgrade printer-driver-brlaser get me "printer-driver-brlaser is already the newest version (4-1)" which is not true. I need 1-6.

You want to install from source. The instructions are on this repo's README, but just to reiterate:

  1. Git clone this repo
  2. cd into the new folder
  3. Make and install using the commands from the README:
cmake .
make
sudo make install

After this you should restart CUPS. This worked fine for me even inside a Docker container. If you've never built anything before you'll want to install build-essential and cmake at least.