我已经通过 CUPS Web 管理控制台在 Ubuntu 20.04 LTS 上添加了多台 Kyosera 网络打印机。
它们都已设置好并开始工作,但是忽略双面打印设置以及单面打印的文件。
测试结果显示:
下面的测试
sudo ipptool -tv ipp://KM963697.local:631/ipp/print get-printer-attributes.test
导致以下信息说支持双面打印:
job-creation-attributes-supported (1setOf keyword) = orientation-requested,copies,finishings,ipp-attribute-fidelity,job-name,media,media-col,operation-requested,output-bin,print-quality,printer-resolution,sides,print-color-mode,multiple-document-handling,page-ranges,page-content-optimize,page-scaling,feed-orientation,overrides,job-mandatory-attributes
sides-supported (1setOf keyword) = one-sided,two-sided-short-edge,two-sided-long-edge
sides-default (keyword) = one-sided
对 2 页 PDF 文档进行打印测试(https://www.delta-intkey.com/www/printtest.pdf) 通过
ipptool -tv -f printtest.pdf ipp://KM963697.local:631/ipp/print printjob.ipp
打印文档的结果片面和ipptool报告以下内容:“printjob.ipp”:
Print-Job:
attributes-charset (charset) = utf-8
attributes-natural-language (naturalLanguage) = en
**sides (keyword) = two-sided-long-edge**
printer-uri (uri) = ipp://KM963697.local:631/ipp/print
job-name (nameWithoutLanguage) = printtest.pdf
document-name (nameWithoutLanguage) = printtest.pdf
copies (integer) = 1
color (boolean) = false
number-up (integer) = 1
orientation-requested (enum) = portrait
print-scaling (keyword) = fit
printjob [PASS]
RECEIVED: 256 bytes in response
**status-code = successful-ok-ignored-or-substituted-attributes (successful-ok-ignored-or-substituted-attributes)**
attributes-charset (charset) = utf-8
attributes-natural-language (naturalLanguage) = en-us
**sides (unsupported) = unsupported**
copies (unsupported) = unsupported
color (unsupported) = unsupported
number-up (unsupported) = unsupported
orientation-requested (unsupported) = unsupported
job-id (integer) = 1014
job-uri (uri) = ipps://KM963697:443/jobs/1014
job-state (enum) = pending
job-state-reasons (keyword) = job-incoming
通讯员打印作业内容是:
{
OPERATION Print-Job
GROUP operation-attributes-tag
ATTR charset attributes-charset utf-8
ATTR language attributes-natural-language en
ATTR keyword sides two-sided-long-edge
ATTR uri printer-uri $uri
ATTR name job-name $filename
ATTR name document-name $filename
ATTR integer copies 1
ATTR boolean color false
ATTR integer number-up 1
ATTR enum orientation-requested 3
FILE $filename
GROUP job-attributes-tag
ATTR keyword print-scaling "fit"
}
使用的软件版本:Ubuntu 20.04.2 LTS,cups 2.3.1-9ubuntu1.1
打印机型号有:京瓷 ECOSYS P3150dn、京瓷 ECOSYS M2235dn、京瓷 ECOSYS P2040dn 他们的驱动程序从 Kyosera 网站更新:https://www.kyoceradocumentsolutions.ru/ru/support/downloads.name-L3J1L3J1L21mcC9FQ09TWVNNMjIzNURO.html
非常感谢任何关于如何在 Linux 上启用双面打印的建议。
答案1
该问题已通过以下方式解决:
- 使用 gdebi 正确安装具有依赖项的制造商驱动程序
- 在 CUPS 中配置这些驱动程序,并使用打印机的网络 IP 地址通过 ipp 添加它们
- 使用 lp 工具(而不是 ipptool)根据 CUPS 中的打印机名称进行打印
看来 ipptool 绕过了 CUPS 配置,并在通过 ipptool 和打印机地址 ipp:// 进行打印时使用了默认的无驱动打印机
打印后,问题出现在 CUPS 中,因为使用 ipptool 时那里没有出现活动作业。切换到 lp 并通过 CUPS 正确设置打印机后,作业开始出现在那里。