使用 lp 或 lpr 的双面打印选项

Nik*_*ris 11 printing cups lp

据报道,Brother MFC-9340CDW 打印机的默认选项(例如通过 查询lpoptions -l)设置为:

PageSize/Media Size: *A4 Letter Legal Executive A5 A6 B5 JISB5 JISB6 EnvDL EnvC5 Env10 EnvMonarch Br3x5 FanFoldGermanLegal EnvPRC5Rotated Postcard EnvYou4 EnvChou3 210x270mm 195x270mm 184x260mm 197x273mm
BRDuplex/Two-Sided: DuplexTumble *DuplexNoTumble None
BRInputSlot/Paper Source: AutoSelect *Tray1 Manual
BRResolution/Print Quality: 600dpi *600x2400dpi
BRMonoColor/Color / Mono: Auto FullColor *Mono
BRMediaType/Media Type: *Plain Thin Thick Thicker BOND Env EnvThick EnvThin Recycled Label Glossy PostCard
BRColorMatching/Color Mode: *Normal Vivid None
BRGray/Improve Gray Color: OFF *ON
BREnhanceBlkPrt/Enhance Black Printing: OFF *ON
BRTonerSaveMode/Toner Save Mode: OFF *ON
BRImproveOutput/Improve Print Output: OFF *BRLessPaperCurl BRFixIntensity
BRSkipBlank/Skip Blank Page: *OFF ON
BRBrightness/Brightness: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
BRContrast/Contrast: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
BRRed/Red: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
BRGreen/Green: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
BRBlue/Blue: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
BRSaturation/Saturation: -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 *0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Run Code Online (Sandbox Code Playgroud)

虽然简单的lp( r) 命令应该使用默认选项,但双面打印不会按预期工作,例如,该选项*DuplexNoTumble应该导致文档的双面打印,以便沿着纸张的长边翻转纸张。然而,对于 PDF 文档,结果是DuplexTumble一个!

即使直接在命令行中手动设置感兴趣的选项也无法按预期完成,例如

lp -o PageSize=A4 -o BRDuplex=DuplexNoTumble -o BRInputSlot=Tray1 -o BRResolution=600dpi -o BRMonoColor=Auto -o BRMediaType=Plain -o BRColorMatching=Normal -o BRTonerSaveMode=ON -o BRImproveOutput=BRLessPaperCurl SomeDocument.pdf
Run Code Online (Sandbox Code Playgroud)

打印短边装订打印输出。

奇怪的是,将 设置BRDuplexNone,会给出相同的短边绑定。必须有一些配置选项设置为“Short-Edge Binding”覆盖lpoptions.

在哪里(其他)设置双面打印相关选项?


细节

  • 打印机:型号 Brother MFC-9340CDW,主固件版本K,子 1 固件版本1.02,子 2 固件版本F1309271100
  • 操作系统:Funtoo
  • 通过https://github.com/NikosAlexandris/brother-overlay安装的打印机驱动程序
  • http://localhost:631/printers/Brother_MFC-9340CDW然而,报道称:
    • 驱动程序:Brother MFC-9340CDW CUPS(彩色,双面打印)
    • 连接:lpd://192.168.10.6/BINARY_P1
    • 默认值:job-sheets=none,none media=iso_a4_210x297mm 边=单边
  • 文件中感兴趣的部分Brother_MFC-9340CDW.ppd
*%=== BRDuplex ================================
*OpenUI *BRDuplex/Two-Sided: PickOne
*OrderDependency: 25 AnySetup *BRDuplex
*DefaultBRDuplex: DuplexNoTumble
*BRDuplex DuplexTumble/Short-Edge Binding: "          "
*BRDuplex DuplexNoTumble/Long-Edge Binding: "          "
*BRDuplex None/Off: "          "
*CloseUI: *BRDuplex
Run Code Online (Sandbox Code Playgroud)

Nik*_*ris 7

为 (/this) 打印机设置选项的正确位置在/opt/brother/Printers/mfc9340cdw/inf/brmfc9340cdwrc. 总是导致DuplexTumble打印的问题是由此配置文件中的相应代码行 ( )强制造成的。BRDuplex=DuplexTumble

将有问题的选项设置为BRDuplex=DuplexNoTumble,然后重新启动cupsd服务(在我的情况下,rc-service cupsd restart用于 OpenRC)会导致双面打印沿文档的长边装订。


只有在阅读了相关 Ubuntu-Wiki 页面的这一部分后,我才开始检查名为br(model name)rc的文件: http : //wiki.ubuntuusers.de/Brother/Drucker#Problembehebung