I tried the fix in https://github.com/OpenPrinting/cups-filters/issues/193
but it didn't work.

What I did was:
 1. Edit /etc/cups/ppd/HP_Color_LaserJet_Pro_M252dw_501595_.ppd with the
    following changes:

--- 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

 2. Restart cups with
     systemctl restart cups

 3. Try printing a testpage from the printers properties, with the
    printer's media source set to "Automatic" (the default)

 4. The printer was waiting for the manual tray/slot to be fed, and "OK"
    to be pressed on the front panel

 5. I fed the printer a sheet of paper and pressed "OK"

 6. I selected "Tray 2" as the media source and pressed "Apply"

 7. I tried printing a test page

 8. Again the printer was waiting for the manual tray/slot to be fed,
    and "OK" to be pressed on the front panel

 9. I fed the printer a sheet of paper and pressed "OK"

10. I selected "Tray 1" as the media source and pressed "Apply" (just to
    have tried it)

11. Again the printer was waiting for the manual tray/slot to be fed,
    and "OK" to be pressed on the front panel

When I checked the diffs again after the experiment, I found that my
changes to /etc/cups/ppd/HP_Color_LaserJet_Pro_M252dw_501595_.ppd
had been overwritten.

Reply via email to