pdewacht / brlaser

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

DCP-1612W #173

Open aguslr opened 1 year ago

aguslr commented 1 year ago

I've been able to print successfully from both Android and Linux to a DCP-1612W connected via USB to a Raspberry Pi 4. The printer was shared over the network via CUPS Driverless printing and used the driver for the DCP-1600 series. However, I was only able to print at 600DPI, since trying at 1200HQ it fails.

This is the log from CUPS when sending a job to print at 1200HQ:

Output ``` D [16/Jan/2023:14:06:49 +0100] [Job 5] Applying default options... D [16/Jan/2023:14:06:49 +0100] [Job 5] Adding default usb-unidir=true I [16/Jan/2023:14:06:49 +0100] [Job 5] Adding start banner page "none". I [16/Jan/2023:14:06:49 +0100] [Job 5] Queued on "Brother_DCP-1612W" by "agus". I [16/Jan/2023:14:06:53 +0100] [Job 5] File of type application/vnd.cups-raster queued by "agus". I [16/Jan/2023:14:06:53 +0100] [Job 5] Adding end banner page "none". D [16/Jan/2023:14:06:53 +0100] [Job 5] time-at-processing=1673874413 D [16/Jan/2023:14:06:53 +0100] [Job 5] 1 filters for job: D [16/Jan/2023:14:06:53 +0100] [Job 5] rastertobrlaser (application/vnd.cups-raster to printer/Brother_DCP-1612W, cost 33) D [16/Jan/2023:14:06:53 +0100] [Job 5] job-sheets=none,none D [16/Jan/2023:14:06:53 +0100] [Job 5] argv[0]="Brother_DCP-1612W" D [16/Jan/2023:14:06:53 +0100] [Job 5] argv[1]="5" D [16/Jan/2023:14:06:53 +0100] [Job 5] argv[2]="agus" D [16/Jan/2023:14:06:53 +0100] [Job 5] argv[3]="Document from Document Viewer" D [16/Jan/2023:14:06:53 +0100] [Job 5] argv[4]="1" D [16/Jan/2023:14:06:53 +0100] [Job 5] argv[5]="job-uuid=urn:uuid:00deed3f-ef21-321d-4eb3-b44a902aa32c usb-unidir job-originating-host-name=192.168.1.22 date-time-at-creation= date-time-at-processing= time-at-creation=1673874409 time-at-processing=1673874413" D [16/Jan/2023:14:06:53 +0100] [Job 5] argv[6]="/var/spool/cups/d00005-001" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[0]="CUPS_CACHEDIR=/var/cache/cups" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[1]="CUPS_DATADIR=/usr/share/cups" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[4]="CUPS_REQUESTROOT=/var/spool/cups" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[5]="CUPS_SERVERBIN=/usr/lib/cups" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[6]="CUPS_SERVERROOT=/etc/cups" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[7]="CUPS_STATEDIR=/run/cups" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[8]="HOME=/var/spool/cups/tmp" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[10]="SERVER_ADMIN=root@17edcf5ffaff" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[11]="SOFTWARE=CUPS/2.3.3op2" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[12]="TMPDIR=/var/spool/cups/tmp" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[13]="TZ=Europe/Madrid" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[14]="USER=root" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[15]="CUPS_MAX_MESSAGE=2047" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[16]="CUPS_SERVER=/run/cups/cups.sock" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[17]="CUPS_ENCRYPTION=IfRequested" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[18]="IPP_PORT=631" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[19]="CHARSET=utf-8" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[20]="LANG=en_US.UTF-8" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[21]="PPD=/etc/cups/ppd/Brother_DCP-1612W.ppd" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[22]="RIP_MAX_CACHE=128m" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[23]="CONTENT_TYPE=application/vnd.cups-raster" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[24]="DEVICE_URI=usb://Brother/DCP-1610W%20series?serial=XXXXXXXXXXXXXXX" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[25]="PRINTER_INFO=Brother_DCP-1612W" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[26]="PRINTER_LOCATION=Office" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[27]="PRINTER=Brother_DCP-1612W" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[28]="PRINTER_STATE_REASONS=none" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[29]="CUPS_FILETYPE=document" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[30]="FINAL_CONTENT_TYPE=printer/Brother_DCP-1612W" D [16/Jan/2023:14:06:53 +0100] [Job 5] envp[31]="AUTH_I****" I [16/Jan/2023:14:06:53 +0100] [Job 5] Started filter /usr/lib/cups/filter/rastertobrlaser (PID 135) I [16/Jan/2023:14:06:53 +0100] [Job 5] Started backend /usr/lib/cups/backend/usb (PID 136) D [16/Jan/2023:14:06:53 +0100] [Job 5] Loading USB quirks from \"/usr/share/cups/usb\". D [16/Jan/2023:14:06:53 +0100] [Job 5] brlaser version 6 D [16/Jan/2023:14:06:53 +0100] [Job 5] Set job-printer-state-message to "brlaser version 6", current level=INFO D [16/Jan/2023:14:06:53 +0100] [Job 5] Loaded 184 quirks. D [16/Jan/2023:14:06:53 +0100] [Job 5] Printing on printer with URI: usb://Brother/DCP-1610W%20series?serial=XXXXXXXXXXXXXXX D [16/Jan/2023:14:06:53 +0100] [Job 5] brlaser: Cannot read raster data. Most likely an earlier filter in the pipeline failed. D [16/Jan/2023:14:06:53 +0100] [Job 5] PID 135 (/usr/lib/cups/filter/rastertobrlaser) stopped with status 1. D [16/Jan/2023:14:06:53 +0100] [Job 5] libusb_get_device_list=4 D [16/Jan/2023:14:06:53 +0100] [Job 5] STATE: +connecting-to-device D [16/Jan/2023:14:06:53 +0100] [Job 5] STATE: -connecting-to-device D [16/Jan/2023:14:06:53 +0100] [Job 5] Device protocol: 2 D [16/Jan/2023:14:06:53 +0100] [Job 5] Forced uni-directional communication via \"usb-unidir\" option. D [16/Jan/2023:14:06:53 +0100] [Job 5] Uni-directional device/mode, back channel deactivated. D [16/Jan/2023:14:06:53 +0100] [Job 5] Sending data to printer. D [16/Jan/2023:14:06:53 +0100] [Job 5] Sent 0 bytes... D [16/Jan/2023:14:06:53 +0100] [Job 5] PID 136 (/usr/lib/cups/backend/usb) exited with no errors. E [16/Jan/2023:14:06:53 +0100] [Job 5] Job stopped due to filter errors; please consult the stderr file for details. D [16/Jan/2023:14:06:53 +0100] [Job 5] The following messages were recorded from 14:06:53 to 14:06:53 D [16/Jan/2023:14:06:53 +0100] [Job 5] Printer found with device ID: MFG:Brother;CMD:PJL,HBP;MDL:DCP-1610W series;CLS:PRINTER;CID:Brother Laser Type1; Device URI: usb://Brother/DCP-1610W%20series?serial=XXXXXXXXXXXXXXX D [16/Jan/2023:14:06:53 +0100] [Job 5] End of messages D [16/Jan/2023:14:06:53 +0100] [Job 5] printer-state=3(idle) D [16/Jan/2023:14:06:53 +0100] [Job 5] printer-state-message="Sending data to printer." D [16/Jan/2023:14:06:53 +0100] [Job 5] printer-state-reasons=none D [16/Jan/2023:14:06:54 +0100] [Job 5] Unloading... D [16/Jan/2023:14:06:55 +0100] [Job 5] Loading attributes... ```

This may be a limitation on the Raspberry Pi 4 because, if I connect the printer directly to the wireless network and configure it on my Linux desktop using the same driver, I can print both in 600DPI and 1200HQ.

Here's the output of lpinfo --include-schemes usb -l -v on the Raspberry Pi 4 since the printer is not connected via USB to my Linux desktop:

Device: uri = usb://Brother/DCP-1610W%20series?serial=XXXXXXXXXXXXXXX
        class = direct
        info = Brother DCP-1610W series
        make-and-model = Brother DCP-1610W series
        device-id = MFG:Brother;CMD:PJL,HBP;MDL:DCP-1610W series;CLS:PRINTER;CID:Brother Laser Type1;
        location = 
QORTEC commented 1 year ago

Thank you for your report, I've added your printer to my pull request #179 in commit b7dac7507f846467edfa37c735a7357b40248a39.