Re: Cups automatic duplex printing problems

Valentijn Sessink <[email protected]> Tue, 23 Jan 2024 13:16:14 +0100
Newsgroups dev.linux.lists.printing-users
Message-ID <[email protected]>
Hi Michael, hi list,

As per your advice, I set up Cups debugging. I removed all printers, 
waited a while, saw the printers added to Cups:

I sent a duplex job - which printed non-duplex. Please find the debug 
logging entries of the print job below. I'm seeing 
"Duplex=DuplexNoTumble", but also "sides=one-sided".

Is the latter the problem? Or is that just coincidence? What can I do 
more to find the culprit?

Best regards,

Valentijn

D [22/Jan/2024:10:30:49 +0100] [Job 1335] 3 filters for job:
D [22/Jan/2024:10:30:49 +0100] [Job 1335] pdftopdf (application/pdf to 
application/vnd.cups-pdf, cost 66)
D [22/Jan/2024:10:30:49 +0100] [Job 1335] - (application/vnd.cups-pdf to 
printer/Xerox_AltaLink_C8155_A0_6A_FC/application/pdf, cost 0)
D [22/Jan/2024:10:30:49 +0100] [Job 1335] - 
(printer/Xerox_AltaLink_C8155_A0_6A_FC/application/pdf to 
printer/Xerox_AltaLink_C8155_A0_6A_FC, cost 0)
D [22/Jan/2024:10:30:49 +0100] [Job 1335] job-sheets=none,none
D [22/Jan/2024:10:30:49 +0100] [Job 1335] print-color-mode=color, 
print-quality=normal
D [22/Jan/2024:10:30:49 +0100] [Job 1335] Adding preset option 
ColorModel=RGB
D [22/Jan/2024:10:30:49 +0100] [Job 1335] Adding preset option 
cupsPrintQuality=Normal
D [22/Jan/2024:10:30:49 +0100] [Job 1335] 
argv[0]="Xerox_AltaLink_C8155_A0_6A_FC"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] argv[1]="1335"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] argv[2]="valentyn"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] argv[3]="Naamloos 2"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] argv[4]="2"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] argv[5]="collate 
Duplex=DuplexNoTumble InputSlot=Auto PageSize=A4 
job-uuid=urn:uuid:8fe40f6e-e621-3ced-40a5-677427ef2efa cups-browsed 
finishings=0 media=iso_a4_210x297mm number-up=1 orientation-requested=0 
output-bin=auto print-color-mode=color print-quality=0 
printer-resolution=600x600dpi sides=one-sided 
job-originating-host-name=localhost date-time-at-creation= 
date-time-at-processing= time-at-creation=1705915849 
time-at-processing=1705915849 document-name-supplied=ZuoKLF 
ColorModel=RGB cupsPrintQuality=Normal OutputBin=Auto"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] 
argv[6]="/var/spool/cups/d01335-001"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] 
envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] 
envp[1]="CUPS_DATADIR=/usr/share/cups"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] 
envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] 
envp[3]="CUPS_REQUESTROOT=/var/spool/cups"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] 
envp[4]="CUPS_SERVERBIN=/usr/lib/cups"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] 
envp[5]="CUPS_SERVERROOT=/etc/cups"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] envp[6]="CUPS_STATEDIR=/run/cups"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] envp[7]="HOME=/var/spool/cups/tmp"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] 
envp[8]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] 
envp[9]="SERVER_ADMIN=root@X1-carbon"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] envp[10]="SOFTWARE=CUPS/2.4.1"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] 
envp[11]="TMPDIR=/var/spool/cups/tmp"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] envp[12]="USER=root"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] envp[13]="CUPS_MAX_MESSAGE=2047"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] 
envp[14]="CUPS_SERVER=/var/run/cups/cups.sock"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] 
envp[15]="CUPS_ENCRYPTION=IfRequested"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] envp[16]="IPP_PORT=631"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] envp[17]="CHARSET=utf-8"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] envp[18]="LANG=en_US.UTF-8"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] 
envp[19]="PPD=/etc/cups/ppd/Xerox_AltaLink_C8155_A0_6A_FC.ppd"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] 
envp[20]="CONTENT_TYPE=application/pdf"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] 
envp[21]="DEVICE_URI=implicitclass://Xerox_AltaLink_C8155_A0_6A_FC/"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] 
envp[22]="PRINTER_INFO=Xerox_AltaLink_C8155_A0_6A_FC"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] 
envp[23]="PRINTER_LOCATION=Lunchkamer"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] 
envp[24]="PRINTER=Xerox_AltaLink_C8155_A0_6A_FC"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] 
envp[25]="PRINTER_STATE_REASONS=none"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] envp[26]="CUPS_FILETYPE=document"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] 
envp[27]="FINAL_CONTENT_TYPE=application/pdf"
D [22/Jan/2024:10:30:49 +0100] [Job 1335] envp[28]="AUTH_I****"
I [22/Jan/2024:10:30:49 +0100] [Job 1335] Started filter 
/usr/lib/cups/filter/pdftopdf (PID 134008)
I [22/Jan/2024:10:30:49 +0100] [Job 1335] Started backend 
/usr/lib/cups/backend/implicitclass (PID 134010)


On 16-01-2024 12:26, Michael Sweet wrote:
> I would also advise that you enable debug logging (cupsctl --debug-logging) and then look at the /var/log/cups/error_log file to see what is happening during a print job.

-- 
Durgerdamstraat 29, 1507 JL Zaandam; telefoon 075-7100071