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

Steinar Bang sb at dod.no
Mon Dec 12 11:24:45 PST 2022


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


More information about the cups mailing list