Recently we started rolling out some new printers, this has been done using the script i’ve detailed here.
Normally we just create the printer on the macs & point the queue to the right PPD. This doesn’t enforce any default settings, & in doing so things have been going smoothly.
However, when deploying a Canon imageRUNNER ADVANCE C5240i B2 we noticed that the Mac’s were defaulting to duplex.
After checking the on board B2 Fiery, we saw this setting was enabled.. so we disabled it & hoped that would apply to the Mac clients.. sadly it didn’t.
Below is how we overcome this
What was happening?
After some further digging, it appeared that the printers driver was itself defaulting to duplex.
A quick lesson in “lpoptions” & I ran the below command against a locally mapped instance of the printer:
lpoptions -p <insert_printer_name> -l
This give’s a massive list of options;
EFFinisher/Sorter and stapler: *False Finisher Finisher2 Finisher3 Finisher4 Booklet EFPaperDeckOpt/Paper source option: *False True Option1 Option2 EFPunchOpt/Puncher unit option: *False 2Even 3Even 4Even 4Grouped EFCopyTrayOpt/Output option (right): *False CopyTray EFEmbeddedPackageOpt/Fiery Productivity Package option: *None PP1 EFTrappingOpt/Auto trapping option: *True EFNoAccountBW/Do not use job accounting for B&W printing: *False True EFDestination/Destination: *Printer Mailbox SecuredPrint FormStore EFRaster/Print queue action: *False Hold True RipNHold PrintNDelete EFControlBar/Control Bar: *EFControlBarDEF False True EFPostFlight/Postflight: *False ReportConcise TestPage ColorCodedJob All InputSlot/Paper source: *AutoSelect ManualFeed Tray1 Tray2 Tray3 Tray4 HighCapacityInputBin1 EFCoverTray/Front cover source: *None ManualFeed Tray1 Tray2 Tray3 Tray4 HighCapacityInputBin1 EFBkCoverTray/Back cover source: *None ManualFeed Tray1 Tray2 Tray3 Tray4 HighCapacityInputBin1 EFPrintSize/Output paper size: *SameAsPageSize A3 B4 A4 B5 A5 Tabloid Legal Letter Statement SRA3 TabloidExtra Executive A4Tab 9x11 Env10 EnvMonarch EnvC5 EnvDL CustomPrintSize EFMediaType/Media type: *Any Thin Recycled Color Plain Plain2 Heavy Extraheavy Heavy3 Translucent OneSidedCoated1 OneSidedCoated2 TwoSidedCoated1 TwoSidedCoated2 Labels Prepunched Transparency Bond Envelope Tabpaper1 Letterhead EFTrayAlignment/Tray alignment: *False True EFCover/Front cover mode: *False Blank Side1 Side2 Both EFBkCover/Back cover mode: *False Blank Side1 Side2 Both EFMediaInterlv/Transparency interleaving: *False Blank Printed EFMMInUse/Mixed media in use: *False True EFMMTabShift/Tab shift: *False True EFMMInsType/Mixed media insertion type: *None Blank EFMMCover/Cover page mode: PrintBoth *PrintFront PrintBack EFAutoScaling/Scale to fit: *False True EFEngRotate180/Rotate 180: *False True LargePaperOnly SmallPaperOnly EFDuplex/2-sided printing: False *LongEdge ShortEdge EFNUpBoundingBox/Print border: *False True EFNUpOption/N-up options: *1UP 2ULH 2URV 4ULH 4ULV 4URH 4URV 6ULH 6ULV 6URH 6URV 9ULH 9ULV 9URH 9URV 16ULH 16ULV 16URH 16URV 2ULV 2URH EFRIPBooklet/Booklet type: *False TwoUp TwoUpRight Perfect PerfectRight NestSaddleL NestSaddleR Speed Double NestSaddleT PerfectTop TwoUpTop EFBookCoverEnabled/Cover enabled: *False True EFBookFrCover/Front cover: *None Side1 Side2 Both Blank EFBookBkCover/Back cover: *None Side2 Side1 Both Blank EFBookCoverInType/Content input: *MultiPageNoSpine PrePrinted EFBookletCreep/Creep adjustment: *False Plain Thick EFBookletReduce/Shrink to fit: *True False EFBookNumSheetPerSubset/Number of sheets in a subset (saddle): *2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 EFBookCentering/Centering adjustment: *Bottom Middle EFBookCoverTray/Cover source: *AutoSelect ManualFeed Tray1 Tray2 Tray3 Tray4 HighCapacityInputBin1 EFEmbeddedRGB/Use embedded profile when present (RGB): *EFEmbeddedRGBDEF OFF ON EFEmbeddedCMYK/Use embedded profile when present (CMYK): *EFEmbeddedCMYKDEF OFF ON EFColorMode/Color mode: *CMYK Grayscale EFRGBOverride/RGB source profile: *EFRGBOverrideDEF FIERYRGB EFIRGB SRGB APPLE13 ADOBERGB ECIRGB RGB1 RGB2 RGB3 RGB4 RGB5 RGB6 RGB7 RGB8 RGB9 RGB10 EFColorRendDict/Rendering intent: *EFColorRendDictDEF PHOTOGRAPHIC PRESENTATION RELATIVE ABSOLUTE EFRGBSep/Separate RGB/Lab to CMYK source: *EFRGBSepDEF SEPSIM SEPOUT EFSimulation/CMYK source profile: *EFSimulationDEF GRACOLCOATED1 SWOPCOATED3 SWOPCOATED5 FOGRA39L FOGRA29L DIC JAPANCOLOR3 TOYOCOATED SIMNONE CUSTOM1 CUSTOM2 CUSTOM3 CUSTOM4 CUSTOM5 CUSTOM6 CUSTOM7 CUSTOM8 CUSTOM9 CUSTOM10 MATCHCOPY EFSimSpeed/CMYK processing method: *EFSimSpeedDEF BETR S4X4 XGAM EFOutProfile/Output profile: *EFOutProfileDEF DEFAULT_MEDIA OUT1 OUT2 OUT3 OUT4 OUT5 OUT6 OUT7 OUT8 OUT9 OUT10 EFSpotColors/Spot color matching: *EFSpotColorsDEF OFF ON EFPureBlack/Black text and graphics: *EFPureBlackDEF BLACKPUREON BLACKRICHON BLACKNORMAL EFBlkOvpCtrl/Black overprint (for pure black): *EFBlkOvpCtrlDEF OFF TEXTONLY TEXTGRAPHICS EFCompOverprint/Composite overprint: *False True EFKOnlyGrayCMYK/CMYK gray processing: *EFKOnlyGrayCMYKDEF OFF TEXTGRAPHICS TEXTGRAPHICSIMAG EFKOnlyGrayRGB/RGB gray processing: *EFKOnlyGrayRGBDEF OFF TEXTGRAPHICS TEXTGRAPHICSIMAG EFSubstColors/Substitute colors: *False True EFSeparations/Combine separations: *False True EFTrapping/Auto trapping: *EFTrappingDEF True False EFPaperSim/Paper simulation: ON *OFF EFColorLineCtrl/Color graphics/Line control: *EFColorLineCtrlDEF Off On EFResolution/Resolution: *EFResolutionDEF 600x600dpi 1200x1200dpi EFCopierMode/Printer's halftone: *EFCopierModeDEF Standard Resolution ErrorDiffusion Gradation Pattern1 Pattern2 Pattern3 Pattern4 Pattern5 Pattern6 Pattern7 EFSharpness/Sharpness: *EFSharpnessDEF Sharpest Sharper Sharp Normal None Soft Softer EFImageSmooth/Image smoothing: *False True EFBrightness/Brightness: 0.24 0.16 0.08 *00.00 -0.08 -0.16 -0.24 EFDensFineAdj/Density fine adjustment: *EFDensFineAdjDEF Lighter Light Normal Dark Darker EFNoiseSource/Gradation smoothing: *EFNoiseSourceDEF False Adjustment-1 Adjustment-2 EFTonerSave/Toner saving: *EFTonerSaveDEF False Level1 EFCompRatio/Image compression: *EFCompRatioDEF Quality Standard Performance EFAdvSmooth/Advanced smoothing: *EFAdvSmoothDEF Off Smooth1 Smooth2 EFMaxPrintDensity/Use maximum printer density: *False True EFImageWiseRange/Apply image enhancement: *False True EFImageWise_RangeType/Image enhance range type: *AllPages Pages Sheets Collate/Collated: *False True EFSubsetFinishingInUse/Subset finishing in use: *False True EFPageDelivery/Output delivery: *SameOrderFaceDown ReverseOrderFaceDown EFSort/Sorter mode: *Collate Group CollateWithShift GroupWithShift CrossCollate CrossGroup EFOutputBin/Paper output: *AutoSelect Outbin5 Outbin6 Outbin7 Outbin8 Outbin10 Outbin11 EFFold/Folding: *False Crease EFImageFlag/Image shift: *False True EFImageAlign/Align front and back images: *False True EFImageUnit/Units: *MM Inches Points EFStapler/Stapler mode: *False 1UpLeftS 1UpRightS 2Left 2Right 2Up Stitch EFPunchEdge/Hole punch location: *None Left Right Top EFPunchHoleType/Number of holes: *None 2Even R2-generic 3Even 4Even R4-generic EFCreateMaster/Create master: *None formC1 formC2 formC3 formC4 formC5 formC6 formC7 formC8 formC9 formC10 formC11 formC12 formC13 formC14 formC15 formC16 formC17 formC18 formC19 formC20 formC21 formC22 formC23 formC24 formC25 formC26 formC27 formC28 formC29 formC30 formC31 formC32 formC33 formC34 formC35 formC36 formC37 formC38 formC39 formC40 formC41 formC42 formC43 formC44 formC45 formC46 formC47 formC48 formC49 formC50 formC51 formC52 formC53 formC54 formC55 formC56 formC57 formC58 formC59 formC60 formC61 formC62 formC63 formC64 formC65 formC66 formC67 formC68 formC69 formC70 formC71 formC72 formC73 formC74 formC75 formC76 formC77 formC78 formC79 formC80 formC81 formC82 formC83 formC84 formC85 formC86 formC87 formC88 formC89 formC90 formC91 formC92 formC93 formC94 formC95 formC96 formC97 formC98 formC99 formC100 EFUseMaster/Use master: *None formU1 formU2 formU3 formU4 formU5 formU6 formU7 formU8 formU9 formU10 formU11 formU12 formU13 formU14 formU15 formU16 formU17 formU18 formU19 formU20 formU21 formU22 formU23 formU24 formU25 formU26 formU27 formU28 formU29 formU30 formU31 formU32 formU33 formU34 formU35 formU36 formU37 formU38 formU39 formU40 formU41 formU42 formU43 formU44 formU45 formU46 formU47 formU48 formU49 formU50 formU51 formU52 formU53 formU54 formU55 formU56 formU57 formU58 formU59 formU60 formU61 formU62 formU63 formU64 formU65 formU66 formU67 formU68 formU69 formU70 formU71 formU72 formU73 formU74 formU75 formU76 formU77 formU78 formU79 formU80 formU81 formU82 formU83 formU84 formU85 formU86 formU87 formU88 formU89 formU90 formU91 formU92 formU93 formU94 formU95 formU96 formU97 formU98 formU99 formU100 EFPrintMaster/Print master: *EFPrintMasterDEF False True EFPPTSlide/Remove white PPT background: *False True EFEnhancedFF/Enable enhanced FreeForm: *False True EFSplitToRec/Define record length: *False True EFTrustMark/Use secure watermarks of device: *False Type1 EFCopyNumMode/Copy set numbering: *None Auto PageSize/Document size: A3 B4 *A4 B5 A5 Tabloid Legal Letter Statement SRA3 TabloidExtra Executive A4Tab 9x11 Env10 EnvMonarch EnvC5 EnvDL Custom.WIDTHxHEIGHT
The bit that we’re concerned with is;
EFDuplex/2-sided printing: False *LongEdge ShortEdge
That’s the duplex setting.
So in order to turn off duplex I needed to disable it when mapping the printer in the 1st instance the below will suffice in being added to the mapping when mapping via the lpadmin command:
-o EFDuplex=False
Below is the code i used in the context of my AppleScript:
With the old queue deleted & the script re-run, I then ran the below again:
lpoptions -p <insert_printer_name> -l
This time duplex is showing as being set to false.
EFDuplex/2-sided printing: *False LongEdge ShortEdge
Reblogged this on Sutoprise Avenue, A SutoCom Source.
If the printers have already been installed, what would a shell script look like to accomplish the same thing? We just took delivery of a fleet of Fiery controlled Canon C5535’s. Our macs are not bound to our AD.
Only by removing & re-adding the queues.
I don’t know how it behaved in older macOS, but in Sierra I can change options (PPD) of an existing printer with “lpadmin -p -o =”. It’s relevant though you use the name of the particular .ppd file in /etc/cups/ppd/ that belongs to the printer you want to alter default settings.
We use macOS Server with Profile Manager to distribute printers to the clients. Unfortunately Apple made it only half way (like often with Enterprise features). Neither drivers nor settings from the macOS Server (where all printers are already properly configured) are propagated to the clients (which is possible with Windows print servers for over a decade). So we use a postinstall script to change all relevant default settings on the clients. Even worse when distributed with Configuration Profiles, the printer names (ppd files) are all “mcx_<ongoing_number_starting_with_0)". In the GUI the printers have the correct names, but not the ppd files. Sometimes I'm really surprised how unprofessional Apple is.