[cups] Problem with cups selecting manual tray on HP laserjet

Helge Blischke helgeblischke at web.de
Tue Dec 13 09:27:25 PST 2022


Well, from HP there is no hope to get diagnostics without having the real printer ready.
So, I’d suggest you do the following:


—	execute 
	cupsctl —debug-logging

—	print a test job to your printer
	and save the job ID (up top 5 digits, I think).

—	select all the lines containing  
	Job nnnn
	(where nnnn is the jib ID mentioned above; the space between Job and nnnn
	is mandatory)
	
—	The resulting text might be quite large; you could send it off the list to me.
	I then  can check which printer settings the printer sends to cups.

Note that the „driverless“ setup (from openprinting.org <http://openprinting.org/>) reduces the possible
PDLs to URF, PWGRQASTER,, PDF (and a bitmap only PDF variant); no PostScript.

Helge  

> Am 12.12.2022 um 20:24 schrieb Steinar Bang <sb at dod.no>:
> 
> Platform:
> debian 11.5 "bullseye", amd64
> cups 2.3.3op2-3+deb11u2,
> cups-filters 1.28.7-1+deb11u1,
> HP Color LaserJet Pro M252dw (native PostScript printer, with LAN connection)
> 
> I'm apparently using something called "driverless" here...?
> 
> I have an HP Color LaserJet printer that currently selects the manual
> tray, not matter what I try selecting, "Automatic", "Tray 1" and "Tray 2".
> 
> It doesn't matter if I try printing from a program or if I try printing
> a test page from http://localhost:631/ it ends up trying to use the
> manual feed, anyway.
> 
> Does anyone know how to effectively debug this on cups?
> 
> According to the printer front panel display "Tray 1" is the manual feed slot.
> 
> Printing from an iPhone works (i.e. it automatically selects the regular
> sheet tray, presumably "Tray 2" according to the print panel.
> 
> Printing from a windows PC using the "HP Universal Printing PS" driver,
> works.  But I have to explictly select "Tray 2", all other choices,
> including "Automatic" ends up trying to use the manual feed slot.
> 
> I opened a debian bug back in August 2022
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1018265
> 
> In this bug it lists the many things I've tried.
> 
> In a comment to the I was told to report the problem upstream to
> cups-filters, so I did:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1018265
> 
> One of the many things I've tried is to edit the PPD file as outlined
> here
> https://github.com/OpenPrinting/cups-filters/issues/193
> 
> I.e. change /etc/cups/ppd/HP_Color_LaserJet_Pro_M252dw_501595_.ppd with
> the following diff:
> 
> --- HP_Color_LaserJet_Pro_M252dw_501595_.ppd	2022/08/28 10:29:57	1.1
> +++ HP_Color_LaserJet_Pro_M252dw_501595_.ppd	2022/08/28 10:47:19
> @@ -144,8 +144,8 @@
> *DefaultInputSlot: Auto
> *InputSlot Auto/Automatic: "<</MediaPosition 0>>setpagedevice"
> *InputSlot Manual/Manual: "<</MediaPosition 4>>setpagedevice"
> -*InputSlot Tray1/Tray 1: "<</MediaPosition 20>>setpagedevice"
> -*InputSlot Tray2/Tray 2: "<</MediaPosition 21>>setpagedevice"
> +*InputSlot Tray-1/Tray 1: "<</MediaPosition 20>>setpagedevice"
> +*InputSlot Tray-2/Tray 2: "<</MediaPosition 21>>setpagedevice"
> *CloseUI: *InputSlot
> *% ColorModel from urf-supported
> *OpenUI *ColorModel/Print Color Mode: PickOne
> 
> But "systemctl restart cups" overwrite my changes.
> 
> Is there a master PPD somewhere?
> 
> Thanks!
> 
> 
> - Steinar
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://lists.cups.org/mailman/listinfo/cups



More information about the cups mailing list