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


11

据报道,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

尽管简单的lpr)命令应使用默认选项,但是双面打印无法按预期方式工作,例如,该选项*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

打印短边装订的打印输出。

奇怪的是,将设置BRDuplexNone,会得到相同的短边装订。必须有一些配置选项设置为“ Short-Edge Binding”,以覆盖lpoptions

在何处(其他)设置了双面打印相关选项?


细节

  • 打印机:型号名称Brother MFC-9340CDW,主固件版本K,Sub1固件版本1.02,Sub2固件版本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
    • 默认值:作业表=无,无介质= 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

Answers:


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


无论如何,我仍然无法找到一种方法,让期权-o BRDuplex=DuplexTumble-o BRDuplex=DuplexNoTumble有效果的命令行饲喂时!唯一可行的方法似乎是在brmfc9340cdwrc文件内部。
Nikos Alexandris

(我意识到这是从3年前开始的):您也可以尝试使用普通CUPS选项-o sides=two-sided-long-edge。这适用于我的HLL2380DW(无论rc文件说的是单面)。
derobert

打印机仍然存在,我仍然使用相同的操作系统和设置。但是,打印机目前距离很远:-)。谢谢。
Nikos Alexandris

0

我有一台Brother QL-720NW标签打印机,并且已经安装lprcups使用了Brother的rpm打包驱动程序(我使用的是Centos 7 64bit)。但是,每个标签都会导致第二个空白标签,因为杯子认为设备是双面的。使用以上答案,我能够尝试向添加新行,/opt/brother/PTouch/ql720nw/inf/brql820nwrc以便文件以该行结尾:

BRDuplex=OFF

然后,我发出了:

systemctl restart cups.service 

并且问题已得到解决(至少直到该文件得到更新为止)。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.