I brought a Brother printer one year ago and I am consistently facing an issue. The issue is that the printer works fine sometimes and does not print sometimes. But note that the test page printing always works.
The problem is only with the pages I want to print other than the test page.
The operating system is Ubuntu 20.04.3 LTS. The printer is Brother HL-L2321D.
This printer works well sometimes when I disconnect it, then remove it, and restart the system. Sometimes it stops printing suddenly after printing some pages. Sometimes it will not print but the status shows the printing completed.
Some times printer works after updating (sudo apt-get update
) and upgrading (sudo apt-get upgrade
). Sometimes printer stops printing after the same updating and upgrading.
You may get more information from the following details in the test page
Media Limits: 0.11 x 0.11 to 8.15 x 11.47 inches
Job ID: HL-L2320D-series-337
Driver: br12320d.ppd
Driver Version: 6
Description: Brother HL-L2320D series Printer
Location: .....................
Make and Model: Brother HL-L2320D series, using brlaser v6
Printer: HL-L2320D-series
Created at: Wed Sep 22 13:47:52 2021 Printed at: Wed Sep 22 13:47:52 2021
Now, I want to know the exact file location due to which the issue is arising consistently?
You are using a free driver from the printer-driver-brlaser package. The non-free Brother printer drivers should not be needed. You want to pin down the cause of your issues. You can start by testing the printing system filters.
Execute
sudo cupsfilter -p /etc/cups/ppd/PPD -m printer/foo -e ANY_FILE > out.dat
ANY_FILE is any text, PostScript or PDF file you can lay your hands on. The command can be run as many times as you like with a variety of files. You are looking for all the filters to complete without error.
PPD is the printer's ppd file name. I do not know what it is. You have to replace PPD with what you have.
For a log add
2>log
to the end of the command.If
log
shows all filters running successfully, the USB connection may be tested withcat out.dat > /dev/usb/lp0
. Check that/dev/usb/lp0
exists. The file is sent directly to the printer without filtering.