Saturday, January 6, 2018

How to set a default tray for a printer in Linux?


When there are multiple trays available in the printer and we want the printer to pick papers from a specific tray we can use the below command.

Syntax:
# lpoptions -p <printer name> -o InputSlot=<TrayN>

Example:
# lpoptions -p billing -o InputSlot=Tray2

Here the printer billing will use Tray2 as the default tray.

You can check it to make sure if the printer billing is using the Tray2.
# lpoptions -p billing -l | grep  InputSlot
  InputSlot/Media Source: Auto Tray1 *Tray2 Tray3 Tray4

Note that the asterisk (*) in front of the Tray2.

No comments:

Post a Comment