From db3a89f3edc81caccf681cedb184e435a99d0db3 Mon Sep 17 00:00:00 2001 From: James Bottomley Date: Wed, 23 Jul 2014 12:11:35 -0700 Subject: [PATCH] SP 204: Add bypass tray support The printer is annoying for this one. Unless you actually print to the bypass tray, it will ignore it, so this must be set in the printer options. The tray is also annoying to use in that it's a manual feed, accepting one sheet at a time. Anyway, add the option to specify the bypass tray in the PPD and filter. Signed-off-by: James Bottomley --- RICOH_Aficio_SP_204.ppd | 5 +++-- pstoricohddst-gdi | 9 +++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/RICOH_Aficio_SP_204.ppd b/RICOH_Aficio_SP_204.ppd index d4de0fe..1e19393 100644 --- a/RICOH_Aficio_SP_204.ppd +++ b/RICOH_Aficio_SP_204.ppd @@ -77,8 +77,9 @@ *CloseUI: *MediaType *OpenUI *InputSlot/Media Source: PickOne *OrderDependency: 10 AnySetup *InputSlot -*DefaultInputSlot: Auto -*InputSlot Auto/Auto: "<>setpagedevice" +*DefaultInputSlot: TRAY1 +*InputSlot MANUALFEED/Bypass Tray: "<>setpagedevice" +*InputSlot TRAY1/Tray 1: "<>setpagedevice" *CloseUI: *InputSlot *OpenUI *Resolution/Resolution: PickOne *OrderDependency: 10 AnySetup *Resolution diff --git a/pstoricohddst-gdi b/pstoricohddst-gdi index 33f9156..f86f9b6 100755 --- a/pstoricohddst-gdi +++ b/pstoricohddst-gdi @@ -37,6 +37,7 @@ options="$5" pagesize="A4" resolution="600" +mediasource="TRAY1" for opt in $options; do case "$opt" in PageSize=*) @@ -45,6 +46,10 @@ for opt in $options; do Resolution=*) resolution=${opt#Resolution=} resolution=${resolution%dpi} + ;; + InputSlot=*) + mediasource=${opt#InputSlot=} + ;; esac done @@ -104,7 +109,7 @@ EOF cat <