Re: [opensuse] How to specify paper try in print jobs

On 04/27/2018 04:16 PM, don fisher wrote:
On 04/26/2018 08:56 PM, Carlos E. R. wrote:
On 2018-04-27 01:07, don fisher wrote:
I again hope this is an easy one, but how does one select which tray paper comes from. If I put photo paper in one tray, and plain paper in the another, how does one tell the application which paper to use?
It depends on the printer. You can probably set a default tray, but you can also select the tray somewhere in print options each time you print something.
I have never tried to do this from the command line, but looking at "man lpr" I see "-o option[=value]". You would then have to find the appropriate option and value pair.
So use "lpoptions" to find out. Try "lpoptions -l". On mine I see:
cer@Telcontar:~> lpoptions -l HPServicesWeb/Internet Services: *SupportAndTroubleshooting ProductManuals CheckForDriverUpdates OrderSupplies PageSize/Page Size: Letter Legal Executive w612h935 4x6 5x8 *A4 A5 A6 B5 w283h425 w553h765 w522h737 w558h774 Postcard DoublePostcard Env10 EnvMonarch EnvISOB5 EnvC5 EnvDL Custom.WIDTHxHEIGHT InputSlot/Paper Source: *Auto Tray1 Tray2 Tray1_Man ...
and many more, but you already see a Tray in there.
So let's try:
cer@Telcontar:~> lpoptions -o InputSlot=Tray1 cer@Telcontar:~> lpoptions -l HPServicesWeb/Internet Services: *SupportAndTroubleshooting ProductManuals CheckForDriverUpdates OrderSupplies PageSize/Page Size: Letter Legal Executive w612h935 4x6 5x8 *A4 A5 A6 B5 w283h425 w553h765 w522h737 w558h774 Postcard DoublePostcard Env10 EnvMonarch EnvISOB5 EnvC5 EnvDL Custom.WIDTHxHEIGHT InputSlot/Paper Source: Auto *Tray1 Tray2 Tray1_Man ...
See? Changed.
So to print from tray 1 I would use:
lpr -o InputSlot=Tray1 filetoprint
Thanks. Problem appears to have been with my media type. Types listed under Yast do not appear to match those displayed on the printer. I set all media types to plain, and then the: lpoptions -o InputSlot=Tray3 or Tray2 commands do work. I can remember what type of paper is in each tray.
Thanks again, Don
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (1)
-
don fisher