You are not logged in.

#1 2020-12-04 11:03:43

No1ne
Member
Registered: 2020-11-30
Posts: 16

[SOLVED] Printer ignores settings

Hi everyone,

Recently I've moved from Ubuntu to Arch and I was doing ok until I tried to print something. I followed the instruction here https://wiki.archlinux.org/index.php/CUPS and looked here https://wiki.archlinux.org/index.php/CU … leshooting but couldn't find any solution to my problem.

My printer is Brother DCP-385C. Because drivers for this model were not present in AUR I followed this guide https://wiki.archlinux.org/index.php/Pa … er_drivers. I've printed the test page and everything seemed to be ok so I've uploaded the packages https://aur.archlinux.org/packages/brot … -cups-bin/ and https://aur.archlinux.org/packages/brot … c-lpr-bin/. A few days later I've tried to print some pictures onto Photo Paper so I went to evince and the quality to Highest and the paper to Photo Paper but the printer printed out with normal quality. It definitely worked on Ubuntu so it's probably possible to make it work on other distros.

Last edited by No1ne (2020-12-05 17:19:50)

Offline

#2 2020-12-04 12:50:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,678

Re: [SOLVED] Printer ignores settings

Can yo control the settings in http://localhost:631 ?

Offline

#3 2020-12-04 12:56:23

No1ne
Member
Registered: 2020-11-30
Posts: 16

Re: [SOLVED] Printer ignores settings

I can see my printer listed there but I don't know how to set the printing with custom options from there.

Last edited by No1ne (2020-12-04 12:56:37)

Offline

#4 2020-12-04 13:10:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,678

Re: [SOLVED] Printer ignores settings

If you select the printer you get a dropdown menu labeled "Management" (or similar) and there you can set the defaults.
(No that's not practical, but will tell us whether it works at all)

Offline

#5 2020-12-04 13:20:22

No1ne
Member
Registered: 2020-11-30
Posts: 16

Re: [SOLVED] Printer ignores settings

I've tried it and nothing changed. The settings are still ignored.

Offline

#6 2020-12-04 13:42:42

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,678

Re: [SOLVED] Printer ignores settings

Ramp up the debug level and see whether there're suspicious messages:
https://wiki.archlinux.org/index.php/CU … #Debug_log

Offline

#7 2020-12-04 14:20:05

No1ne
Member
Registered: 2020-11-30
Posts: 16

Re: [SOLVED] Printer ignores settings

I've noticed a strange line:

D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!

I've checked and there is no such file. There is brdcp385crc but without the .old suffix.

Here are the logs related to the printing job I've tried (I removed the "Read n bytes of print data..." so it would be shorter):

D [04/Dec/2020:15:03:06 +0100] [Job 61] Applying default options...
I [04/Dec/2020:15:03:06 +0100] [Job 61] Adding start banner page "none".
I [04/Dec/2020:15:03:06 +0100] [Job 61] Adding end banner page "none".
I [04/Dec/2020:15:03:06 +0100] [Job 61] File of type application/pdf queued by "no1ne".
D [04/Dec/2020:15:03:06 +0100] [Job 61] hold_until=0
I [04/Dec/2020:15:03:06 +0100] [Job 61] Queued on "DCP-385C" by "no1ne".
D [04/Dec/2020:15:03:06 +0100] [Job 61] time-at-processing=1607090586
D [04/Dec/2020:15:03:06 +0100] [Job 61] 3 filters for job:
D [04/Dec/2020:15:03:06 +0100] [Job 61] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66)
D [04/Dec/2020:15:03:06 +0100] [Job 61] pdftops (application/vnd.cups-pdf to application/vnd.cups-postscript, cost 100)
D [04/Dec/2020:15:03:06 +0100] [Job 61] brlpdwrapperdcp385c (application/vnd.cups-postscript to printer/DCP-385C, cost 0)
D [04/Dec/2020:15:03:06 +0100] [Job 61] job-sheets=none,none
D [04/Dec/2020:15:03:06 +0100] [Job 61] argv[0]="DCP-385C"
D [04/Dec/2020:15:03:06 +0100] [Job 61] argv[1]="61"
D [04/Dec/2020:15:03:06 +0100] [Job 61] argv[2]="no1ne"
D [04/Dec/2020:15:03:06 +0100] [Job 61] argv[3]="DnD_BasicRules_2018.pdf"
D [04/Dec/2020:15:03:06 +0100] [Job 61] argv[4]="1"
D [04/Dec/2020:15:03:06 +0100] [Job 61] argv[5]="Resolution=150x150dpi BRGreen=0 BRBiDir=ON BRSlowDrying=OFF BRMonoColor=Color PageSize=A4 BRBrightness=0 BRReverse=OFF BRColorMediaType=Plain BRColorEnhancement=OFF BrMirror=OFF BRBlue=0 BRHalfTonePattern=Diffusion BRContrast=0 noCollate BRJpeg=Recommended BRColorPaperThick=Regular number-up=1 BRRed=0 BRColorMatching=Natural job-uuid=urn:uuid:f1982249-f25e-3346-672b-5872472aa4f8 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1607090586 time-at-processing=1607090586"
D [04/Dec/2020:15:03:06 +0100] [Job 61] argv[6]="/var/spool/cups/d00061-001"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[7]="CUPS_STATEDIR=/run/cups"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[8]="HOME=/var/spool/cups/tmp"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/bin:/bin:/usr/bin"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[10]="SERVER_ADMIN=root@no1ne-pc"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[11]="SOFTWARE=CUPS/2.3.3op1"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[13]="USER=root"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[14]="CUPS_MAX_MESSAGE=2047"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[15]="CUPS_SERVER=/run/cups/cups.sock"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[17]="IPP_PORT=631"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[18]="CHARSET=utf-8"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[19]="LANG=en_US.UTF-8"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[20]="PPD=/etc/cups/ppd/DCP-385C.ppd"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[21]="RIP_MAX_CACHE=128m"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[22]="CONTENT_TYPE=application/pdf"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[23]="DEVICE_URI=usb://Brother/DCP-385C?serial=BROM8F520999"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[24]="PRINTER_INFO=Brother DCP-385C"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[25]="PRINTER_LOCATION=no1ne-pc"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[26]="PRINTER=DCP-385C"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[27]="PRINTER_STATE_REASONS=none"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[28]="CUPS_FILETYPE=document"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[29]="FINAL_CONTENT_TYPE=application/vnd.cups-postscript"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[30]="AUTH_I****"
I [04/Dec/2020:15:03:06 +0100] [Job 61] Started filter /usr/lib/cups/filter/pdftopdf (PID 675393)
I [04/Dec/2020:15:03:06 +0100] [Job 61] Started filter /usr/lib/cups/filter/pdftops (PID 675394)
I [04/Dec/2020:15:03:06 +0100] [Job 61] Started filter /usr/lib/cups/filter/brlpdwrapperdcp385c (PID 675395)
I [04/Dec/2020:15:03:06 +0100] [Job 61] Started backend /usr/lib/cups/backend/usb (PID 675396)
D [04/Dec/2020:15:03:06 +0100] [Job 61] Loading USB quirks from \"/usr/share/cups/usb\".
D [04/Dec/2020:15:03:06 +0100] [Job 61] Loaded 98 quirks.
D [04/Dec/2020:15:03:06 +0100] [Job 61] Printing on printer with URI: usb://Brother/DCP-385C?serial=BROM8F520999
D [04/Dec/2020:15:03:06 +0100] [Job 61] pdftops - copying to temp print file \"/var/spool/cups/tmp/a4e425fd8b31f\"
D [04/Dec/2020:15:03:06 +0100] [Job 61] pdftopdf: Last filter determined by the PPD: brlpdwrapperdcp385c; FINAL_CONTENT_TYPE: application/vnd.cups-postscript => pdftopdf will not log pages in page_log.
D [04/Dec/2020:15:03:06 +0100] [Job 61] PDF interactive form and annotation flattening done via QPDF
D [04/Dec/2020:15:03:06 +0100] [Job 61] libusb_get_device_list=6
D [04/Dec/2020:15:03:06 +0100] [Job 61] STATE: +connecting-to-device
D [04/Dec/2020:15:03:06 +0100] [Job 61] STATE: -connecting-to-device
D [04/Dec/2020:15:03:06 +0100] [Job 61] Device protocol: 2
D [04/Dec/2020:15:03:06 +0100] [Job 61] Sending data to printer.
D [04/Dec/2020:15:03:06 +0100] [Job 61] Set job-printer-state-message to "Sending data to printer.", current level=INFO
D [04/Dec/2020:15:03:06 +0100] [Job 61] PID 675393 (/usr/lib/cups/filter/pdftopdf) exited with no errors.
D [04/Dec/2020:15:03:06 +0100] [Job 61] Printer make and model: Brother DCP-385C
D [04/Dec/2020:15:03:06 +0100] [Job 61] Switching to Poppler\'s pdftops instead of Ghostscript for Brother, Minolta, Konica Minolta, Dell, and Apple LaserWriter 16/600, 4/600, 12/640, 12/600, 12/660 to work around bugs in the printer\'s PS interpreters
D [04/Dec/2020:15:03:06 +0100] [Job 61] Running command line for pstops: pstops 61 no1ne DnD_BasicRules_2018.pdf 1 \'Resolution=150x150dpi BRGreen=0 BRBiDir=ON BRSlowDrying=OFF BRMonoColor=Color PageSize=A4 BRBrightness=0 BRReverse=OFF BRColorMediaType=Plain BRColorEnhancement=OFF BrMirror=OFF BRBlue=0 BRHalfTonePattern=Diffusion BRContrast=0 BRJpeg=Recommended BRColorPaperThick=Regular BRRed=0 BRColorMatching=Natural job-uuid=urn:uuid:f1982249-f25e-3346-672b-5872472aa4f8 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1607090586 time-at-processing=1607090586\'
D [04/Dec/2020:15:03:06 +0100] [Job 61] Using image rendering resolution 150 dpi
D [04/Dec/2020:15:03:06 +0100] [Job 61] Running command line for pdftops: pdftops -level2 -origpagesizes -nocenter -r 150 /var/spool/cups/tmp/a4e425fd8b31f -
D [04/Dec/2020:15:03:06 +0100] [Job 61] Started filter pdftops (PID 675410)
D [04/Dec/2020:15:03:06 +0100] [Job 61] Started filter pstops (PID 675411)
D [04/Dec/2020:15:03:06 +0100] [Job 61] Page = 585x829; 9,9 to 576,820
D [04/Dec/2020:15:03:06 +0100] [Job 61] slow_collate=0, slow_duplex=0, slow_order=0
D [04/Dec/2020:15:03:06 +0100] [Job 61] Before copy_comments - %!PS-Adobe-3.0
D [04/Dec/2020:15:03:06 +0100] [Job 61] %!PS-Adobe-3.0
D [04/Dec/2020:15:03:06 +0100] [Job 61] %Produced by poppler pdftops version: 20.12.0 (http://poppler.freedesktop.org)
D [04/Dec/2020:15:03:06 +0100] [Job 61] %%LanguageLevel: 2
D [04/Dec/2020:15:03:06 +0100] [Job 61] %%DocumentSuppliedResources: (atend)
D [04/Dec/2020:15:03:06 +0100] [Job 61] %%DocumentMedia: A4 595 842 0 () ()
D [04/Dec/2020:15:03:06 +0100] [Job 61] %%BoundingBox: 0 0 596 842
D [04/Dec/2020:15:03:06 +0100] [Job 61] %%Pages: 1
D [04/Dec/2020:15:03:06 +0100] [Job 61] %%EndComments
D [04/Dec/2020:15:03:06 +0100] [Job 61] Before copy_prolog - %%BeginProlog
D [04/Dec/2020:15:03:06 +0100] [Job 61] Before copy_setup - %%BeginSetup
D [04/Dec/2020:15:03:07 +0100] [Job 61] Before page loop - %%Page: 1 1
D [04/Dec/2020:15:03:07 +0100] [Job 61] Copying page 1...
D [04/Dec/2020:15:03:07 +0100] [Job 61] pagew = 567.0, pagel = 811.0
D [04/Dec/2020:15:03:07 +0100] [Job 61] bboxx = 0, bboxy = 0, bboxw = 585, bboxl = 829
D [04/Dec/2020:15:03:07 +0100] [Job 61] PageLeft = 9.0, PageRight = 576.0
D [04/Dec/2020:15:03:07 +0100] [Job 61] PageTop = 820.0, PageBottom = 9.0
D [04/Dec/2020:15:03:07 +0100] [Job 61] PageWidth = 585.0, PageLength = 829.0
D [04/Dec/2020:15:03:07 +0100] [Job 61] Wrote 1 pages...
D [04/Dec/2020:15:03:07 +0100] [Job 61] PID 675411 (pstops) exited with no errors.
D [04/Dec/2020:15:03:07 +0100] [Job 61] PID 675410 (pdftops) exited with no errors.
D [04/Dec/2020:15:03:07 +0100] [Job 61] PID 675394 (/usr/lib/cups/filter/pdftops) exited with no errors.
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:31 +0100] [JoD [04/Dec/2020:15:03:06 +0100] [Job 61] Applying default options...
I [04/Dec/2020:15:03:06 +0100] [Job 61] Adding start banner page "none".
I [04/Dec/2020:15:03:06 +0100] [Job 61] Adding end banner page "none".
I [04/Dec/2020:15:03:06 +0100] [Job 61] File of type application/pdf queued by "no1ne".
D [04/Dec/2020:15:03:06 +0100] [Job 61] hold_until=0
I [04/Dec/2020:15:03:06 +0100] [Job 61] Queued on "DCP-385C" by "no1ne".
D [04/Dec/2020:15:03:06 +0100] [Job 61] time-at-processing=1607090586
D [04/Dec/2020:15:03:06 +0100] [Job 61] 3 filters for job:
D [04/Dec/2020:15:03:06 +0100] [Job 61] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66)
D [04/Dec/2020:15:03:06 +0100] [Job 61] pdftops (application/vnd.cups-pdf to application/vnd.cups-postscript, cost 100)
D [04/Dec/2020:15:03:06 +0100] [Job 61] brlpdwrapperdcp385c (application/vnd.cups-postscript to printer/DCP-385C, cost 0)
D [04/Dec/2020:15:03:06 +0100] [Job 61] job-sheets=none,none
D [04/Dec/2020:15:03:06 +0100] [Job 61] argv[0]="DCP-385C"
D [04/Dec/2020:15:03:06 +0100] [Job 61] argv[1]="61"
D [04/Dec/2020:15:03:06 +0100] [Job 61] argv[2]="no1ne"
D [04/Dec/2020:15:03:06 +0100] [Job 61] argv[3]="DnD_BasicRules_2018.pdf"
D [04/Dec/2020:15:03:06 +0100] [Job 61] argv[4]="1"
D [04/Dec/2020:15:03:06 +0100] [Job 61] argv[5]="Resolution=150x150dpi BRGreen=0 BRBiDir=ON BRSlowDrying=OFF BRMonoColor=Color PageSize=A4 BRBrightness=0 BRReverse=OFF BRColorMediaType=Plain BRColorEnhancement=OFF BrMirror=OFF BRBlue=0 BRHalfTonePattern=Diffusion BRContrast=0 noCollate BRJpeg=Recommended BRColorPaperThick=Regular number-up=1 BRRed=0 BRColorMatching=Natural job-uuid=urn:uuid:f1982249-f25e-3346-672b-5872472aa4f8 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1607090586 time-at-processing=1607090586"
D [04/Dec/2020:15:03:06 +0100] [Job 61] argv[6]="/var/spool/cups/d00061-001"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[7]="CUPS_STATEDIR=/run/cups"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[8]="HOME=/var/spool/cups/tmp"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/bin:/bin:/usr/bin"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[10]="SERVER_ADMIN=root@no1ne-pc"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[11]="SOFTWARE=CUPS/2.3.3op1"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[13]="USER=root"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[14]="CUPS_MAX_MESSAGE=2047"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[15]="CUPS_SERVER=/run/cups/cups.sock"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[17]="IPP_PORT=631"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[18]="CHARSET=utf-8"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[19]="LANG=en_US.UTF-8"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[20]="PPD=/etc/cups/ppd/DCP-385C.ppd"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[21]="RIP_MAX_CACHE=128m"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[22]="CONTENT_TYPE=application/pdf"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[23]="DEVICE_URI=usb://Brother/DCP-385C?serial=BROM8F520999"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[24]="PRINTER_INFO=Brother DCP-385C"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[25]="PRINTER_LOCATION=no1ne-pc"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[26]="PRINTER=DCP-385C"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[27]="PRINTER_STATE_REASONS=none"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[28]="CUPS_FILETYPE=document"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[29]="FINAL_CONTENT_TYPE=application/vnd.cups-postscript"
D [04/Dec/2020:15:03:06 +0100] [Job 61] envp[30]="AUTH_I****"
I [04/Dec/2020:15:03:06 +0100] [Job 61] Started filter /usr/lib/cups/filter/pdftopdf (PID 675393)
I [04/Dec/2020:15:03:06 +0100] [Job 61] Started filter /usr/lib/cups/filter/pdftops (PID 675394)
I [04/Dec/2020:15:03:06 +0100] [Job 61] Started filter /usr/lib/cups/filter/brlpdwrapperdcp385c (PID 675395)
I [04/Dec/2020:15:03:06 +0100] [Job 61] Started backend /usr/lib/cups/backend/usb (PID 675396)
D [04/Dec/2020:15:03:06 +0100] [Job 61] Loading USB quirks from \"/usr/share/cups/usb\".
D [04/Dec/2020:15:03:06 +0100] [Job 61] Loaded 98 quirks.
D [04/Dec/2020:15:03:06 +0100] [Job 61] Printing on printer with URI: usb://Brother/DCP-385C?serial=BROM8F520999
D [04/Dec/2020:15:03:06 +0100] [Job 61] pdftops - copying to temp print file \"/var/spool/cups/tmp/a4e425fd8b31f\"
D [04/Dec/2020:15:03:06 +0100] [Job 61] pdftopdf: Last filter determined by the PPD: brlpdwrapperdcp385c; FINAL_CONTENT_TYPE: application/vnd.cups-postscript => pdftopdf will not log pages in page_log.
D [04/Dec/2020:15:03:06 +0100] [Job 61] PDF interactive form and annotation flattening done via QPDF
D [04/Dec/2020:15:03:06 +0100] [Job 61] libusb_get_device_list=6
D [04/Dec/2020:15:03:06 +0100] [Job 61] STATE: +connecting-to-device
D [04/Dec/2020:15:03:06 +0100] [Job 61] STATE: -connecting-to-device
D [04/Dec/2020:15:03:06 +0100] [Job 61] Device protocol: 2
D [04/Dec/2020:15:03:06 +0100] [Job 61] Sending data to printer.
D [04/Dec/2020:15:03:06 +0100] [Job 61] Set job-printer-state-message to "Sending data to printer.", current level=INFO
D [04/Dec/2020:15:03:06 +0100] [Job 61] PID 675393 (/usr/lib/cups/filter/pdftopdf) exited with no errors.
D [04/Dec/2020:15:03:06 +0100] [Job 61] Printer make and model: Brother DCP-385C
D [04/Dec/2020:15:03:06 +0100] [Job 61] Switching to Poppler\'s pdftops instead of Ghostscript for Brother, Minolta, Konica Minolta, Dell, and Apple LaserWriter 16/600, 4/600, 12/640, 12/600, 12/660 to work around bugs in the printer\'s PS interpreters
D [04/Dec/2020:15:03:06 +0100] [Job 61] Running command line for pstops: pstops 61 no1ne DnD_BasicRules_2018.pdf 1 \'Resolution=150x150dpi BRGreen=0 BRBiDir=ON BRSlowDrying=OFF BRMonoColor=Color PageSize=A4 BRBrightness=0 BRReverse=OFF BRColorMediaType=Plain BRColorEnhancement=OFF BrMirror=OFF BRBlue=0 BRHalfTonePattern=Diffusion BRContrast=0 BRJpeg=Recommended BRColorPaperThick=Regular BRRed=0 BRColorMatching=Natural job-uuid=urn:uuid:f1982249-f25e-3346-672b-5872472aa4f8 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1607090586 time-at-processing=1607090586\'
D [04/Dec/2020:15:03:06 +0100] [Job 61] Using image rendering resolution 150 dpi
D [04/Dec/2020:15:03:06 +0100] [Job 61] Running command line for pdftops: pdftops -level2 -origpagesizes -nocenter -r 150 /var/spool/cups/tmp/a4e425fd8b31f -
D [04/Dec/2020:15:03:06 +0100] [Job 61] Started filter pdftops (PID 675410)
D [04/Dec/2020:15:03:06 +0100] [Job 61] Started filter pstops (PID 675411)
D [04/Dec/2020:15:03:06 +0100] [Job 61] Page = 585x829; 9,9 to 576,820
D [04/Dec/2020:15:03:06 +0100] [Job 61] slow_collate=0, slow_duplex=0, slow_order=0
D [04/Dec/2020:15:03:06 +0100] [Job 61] Before copy_comments - %!PS-Adobe-3.0
D [04/Dec/2020:15:03:06 +0100] [Job 61] %!PS-Adobe-3.0
D [04/Dec/2020:15:03:06 +0100] [Job 61] %Produced by poppler pdftops version: 20.12.0 (http://poppler.freedesktop.org)
D [04/Dec/2020:15:03:06 +0100] [Job 61] %%LanguageLevel: 2
D [04/Dec/2020:15:03:06 +0100] [Job 61] %%DocumentSuppliedResources: (atend)
D [04/Dec/2020:15:03:06 +0100] [Job 61] %%DocumentMedia: A4 595 842 0 () ()
D [04/Dec/2020:15:03:06 +0100] [Job 61] %%BoundingBox: 0 0 596 842
D [04/Dec/2020:15:03:06 +0100] [Job 61] %%Pages: 1
D [04/Dec/2020:15:03:06 +0100] [Job 61] %%EndComments
D [04/Dec/2020:15:03:06 +0100] [Job 61] Before copy_prolog - %%BeginProlog
D [04/Dec/2020:15:03:06 +0100] [Job 61] Before copy_setup - %%BeginSetup
D [04/Dec/2020:15:03:07 +0100] [Job 61] Before page loop - %%Page: 1 1
D [04/Dec/2020:15:03:07 +0100] [Job 61] Copying page 1...
D [04/Dec/2020:15:03:07 +0100] [Job 61] pagew = 567.0, pagel = 811.0
D [04/Dec/2020:15:03:07 +0100] [Job 61] bboxx = 0, bboxy = 0, bboxw = 585, bboxl = 829
D [04/Dec/2020:15:03:07 +0100] [Job 61] PageLeft = 9.0, PageRight = 576.0
D [04/Dec/2020:15:03:07 +0100] [Job 61] PageTop = 820.0, PageBottom = 9.0
D [04/Dec/2020:15:03:07 +0100] [Job 61] PageWidth = 585.0, PageLength = 829.0
D [04/Dec/2020:15:03:07 +0100] [Job 61] Wrote 1 pages...
D [04/Dec/2020:15:03:07 +0100] [Job 61] PID 675411 (pstops) exited with no errors.
D [04/Dec/2020:15:03:07 +0100] [Job 61] PID 675410 (pdftops) exited with no errors.
D [04/Dec/2020:15:03:07 +0100] [Job 61] PID 675394 (/usr/lib/cups/filter/pdftops) exited with no errors.
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:07 +0100] [Job 61] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!
D [04/Dec/2020:15:03:32 +0100] [Job 61] The printer is ready to print.
D [04/Dec/2020:15:03:32 +0100] [Job 61] Set job-printer-state-message to "The printer is ready to print.", current level=INFO
D [04/Dec/2020:15:03:32 +0100] [Job 61] PID 675395 (/usr/lib/cups/filter/brlpdwrapperdcp385c) exited with no errors.
D [04/Dec/2020:15:03:32 +0100] [Job 61] Sent 6136949 bytes...
D [04/Dec/2020:15:03:32 +0100] [Job 61] Waiting for read thread to exit...
D [04/Dec/2020:15:03:32 +0100] [Job 61] PID 675396 (/usr/lib/cups/backend/usb) exited with no errors.
D [04/Dec/2020:15:03:32 +0100] [Job 61] time-at-completed=1607090612
I [04/Dec/2020:15:03:32 +0100] [Job 61] Job completed.
D [04/Dec/2020:15:03:33 +0100] [Job 61] Unloading...
D [04/Dec/2020:15:03:32 +0100] [Job 61] The printer is ready to print.
D [04/Dec/2020:15:03:32 +0100] [Job 61] Set job-printer-state-message to "The printer is ready to print.", current level=INFO
D [04/Dec/2020:15:03:32 +0100] [Job 61] PID 675395 (/usr/lib/cups/filter/brlpdwrapperdcp385c) exited with no errors.
D [04/Dec/2020:15:03:32 +0100] [Job 61] Sent 6136949 bytes...
D [04/Dec/2020:15:03:32 +0100] [Job 61] Waiting for read thread to exit...
D [04/Dec/2020:15:03:32 +0100] [Job 61] PID 675396 (/usr/lib/cups/backend/usb) exited with no errors.
D [04/Dec/2020:15:03:32 +0100] [Job 61] time-at-completed=1607090612
I [04/Dec/2020:15:03:32 +0100] [Job 61] Job completed.
D [04/Dec/2020:15:03:33 +0100] [Job 61] Unloading...

EDIT:

The line

D [04/Dec/2020:15:03:06 +0100] [Job 61] argv[5]="Resolution=150x150dpi BRGreen=0 BRBiDir=ON BRSlowDrying=OFF BRMonoColor=Color PageSize=A4 BRBrightness=0 BRReverse=OFF BRColorMediaType=Plain BRColorEnhancement=OFF BrMirror=OFF BRBlue=0 BRHalfTonePattern=Diffusion BRContrast=0 noCollate BRJpeg=Recommended BRColorPaperThick=Regular number-up=1 BRRed=0 BRColorMatching=Natural job-uuid=urn:uuid:f1982249-f25e-3346-672b-5872472aa4f8 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1607090586 time-at-processing=1607090586"

changed to

D [04/Dec/2020:15:22:27 +0100] [Job 62] argv[5]="Resolution=1200x6000dpi BRGreen=0 BRBiDir=ON BRSlowDrying=OFF BRMonoColor=Color PageSize=A4 BRBrightness=0 BRReverse=OFF BRColorMediaType=Glossy BRColorEnhancement=OFF BrMirror=OFF BRBlue=0 BRHalfTonePattern=Diffusion BRContrast=0 noCollate BRJpeg=Recommended BRColorPaperThick=Regular number-up=1 BRRed=0 BRColorMatching=Natural job-uuid=urn:uuid:fbeb45c5-8260-3889-6afa-3daa9ea32e47 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1607091747 time-at-processing=1607091747"

when I've changed the print quality so at least the arguments are passed correctly.

Last edited by No1ne (2020-12-04 14:25:58)

Offline

#8 2020-12-04 14:54:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,678

Re: [SOLVED] Printer ignores settings

What does /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc look like and what happens if you create an .old copy?

Offline

#9 2020-12-04 15:01:38

No1ne
Member
Registered: 2020-11-30
Posts: 16

Re: [SOLVED] Printer ignores settings

The file looks like printer settings

[DCP385C]
Media=Plain
Resolution=600
RResolution=600x600dpi
BiDirPrint=ON
ReversePrinting=OFF
MirrorPrint=False
PaperType=Letter
PaperThick=Regular
Copies=0
ColorOrMono=Color
Collate=OFF
Document=Photo
ColorMatch=Natural
JpegPrinting=Recommended
HalfTone=Diffusion
ColorEnhance=OFF
SlowDrying=OFF
Brightness=0
Contrast=0
RedKey=0
GreenKey=0
BlueKey=0
Language=us

When I've created the .old copy nothing changed, the error still appeared in logs

D [04/Dec/2020:15:59:16 +0100] [Job 64] Error: /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old :cannot open file !!

Offline

#10 2020-12-04 15:50:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,678

Re: [SOLVED] Printer ignores settings

The config certainly looks interesting and is perhaps used by the /usr/lib/cups/filter/brlpdwrapperdcp385c filter
"cannot open file" could indicate a permission problem (that may extend to the not-old version)

stat /usr/local/Brother/Printer/dcp385c/inf/brdcp385crc.old

?

Offline

#11 2020-12-04 15:53:48

No1ne
Member
Registered: 2020-11-30
Posts: 16

Re: [SOLVED] Printer ignores settings

Looks like everyone has read access.

  File: brdcp385crc.old
  Size: 363       	Blocks: 8          IO Block: 4096   regular file
Device: 10306h/66310d	Inode: 13511723    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2020-12-04 15:56:42.916558670 +0100
Modify: 2020-12-04 15:56:42.916558670 +0100
Change: 2020-12-04 15:56:42.916558670 +0100
 Birth: 2020-12-04 15:56:42.916558670 +0100

Offline

#12 2020-12-04 15:59:42

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,678

Re: [SOLVED] Printer ignores settings

It's readable for all but possible attempted to be written by the filter - what if you put it "666"?
(Does the error message disappear and what if you also loosen permissions for the non-old version?)

Offline

#13 2020-12-04 16:31:01

No1ne
Member
Registered: 2020-11-30
Posts: 16

Re: [SOLVED] Printer ignores settings

The same error appears even after I've given 666 to brdcp385crc and brdcp385crc.old.

Last edited by No1ne (2020-12-04 16:33:19)

Offline

#14 2020-12-04 22:28:29

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,678

Re: [SOLVED] Printer ignores settings

Let's see whether the file has any relevance.
Try to change

ColorOrMono=Color

to

ColorOrMono=Mono

and see whether you're printing B&W now.

Offline

#15 2020-12-05 07:37:27

No1ne
Member
Registered: 2020-11-30
Posts: 16

Re: [SOLVED] Printer ignores settings

It indeed makes the printer print in B&W. I've tried changing the printing resolution there too and it also affects the printing, taking precedence over the settings chosen in evince.

Offline

#16 2020-12-05 13:42:41

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,678

Re: [SOLVED] Printer ignores settings

What if you look the other side and suid /usr/lib/cups/filter/brlpdwrapperdcp385c ?

Offline

#17 2020-12-05 15:00:05

No1ne
Member
Registered: 2020-11-30
Posts: 16

Re: [SOLVED] Printer ignores settings

The printer refuses to accept job after I've suid /usr/lib/cups/filter/brlpdwrapperdcp385c. There is error in error log stating:

E [05/Dec/2020:15:54:38 +0100] [Job 84] Unable to start filter "brlpdwrapperdcp385c" - Success.
E [05/Dec/2020:15:54:38 +0100] [Job 84] Stopping job because the scheduler could not execute a filter.

And on http://localhost:631/ the status of the printer is

Idle - "File "/usr/lib/cups/filter/brlpdwrapperdcp385c" has insecure permissions (0104755/uid=0/gid=0)."

Here's the stat of brlpdwrapperdcp385c

  File: brlpdwrapperdcp385c
  Size: 4647      	Blocks: 16         IO Block: 4096   regular file
Device: 10306h/66310d	Inode: 13116036    Links: 1
Access: (4755/-rwsr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2020-12-05 15:45:50.758609716 +0100
Modify: 2020-11-30 12:44:27.809074104 +0100
Change: 2020-12-05 15:50:31.361933627 +0100
 Birth: 2020-11-30 12:44:27.809074104 +0100

Offline

#18 2020-12-05 15:44:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,678

Re: [SOLVED] Printer ignores settings

"Great"…

What if you put /usr/local/Brother/Printer/dcp385c/inf 777 instead? (so you've writing access to the directory)?

Offline

#19 2020-12-05 17:09:29

No1ne
Member
Registered: 2020-11-30
Posts: 16

Re: [SOLVED] Printer ignores settings

Now everything worked fine. I've noticed that user cups created the file brdcp385crc (all other files including brdcp385crc before printing were created by root).

File: brdcp385crc
  Size: 361       	Blocks: 8          IO Block: 4096   regular file
Device: 10306h/66310d	Inode: 13511723    Links: 1
Access: (0666/-rw-rw-rw-)  Uid: (  209/    cups)   Gid: (  209/    cups)
Access: 2020-12-05 18:04:46.191929742 +0100
Modify: 2020-12-05 18:04:46.178596410 +0100
Change: 2020-12-05 18:04:46.178596410 +0100
 Birth: 2020-12-05 18:04:46.178596410 +0100

Last edited by No1ne (2020-12-05 17:09:55)

Offline

#20 2020-12-05 17:14:52

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,678

Re: [SOLVED] Printer ignores settings

So that path needs to be writable by cups - you could chown it to cups:users and make it 755 in your PKGBUILD.

Offline

#21 2020-12-05 17:19:10

No1ne
Member
Registered: 2020-11-30
Posts: 16

Re: [SOLVED] Printer ignores settings

Okay, I think I'll manage. Thank you a lot for the help. I'll mark it as solved.

Offline

#22 2020-12-05 18:26:27

MountainX
Member
Registered: 2016-02-08
Posts: 371

Re: [SOLVED] Printer ignores settings

seth wrote:

So that path needs to be writable by cups - you could chown it to cups:users and make it 755 in your PKGBUILD.

Seth, that was really good troubleshooting! You are a great help to people on this forum (including me). Thank you.

Offline

Board footer

Powered by FluxBB