gpt4 book ai didi

cups - CUPS 打印机状态原因的更完整列表

转载 作者:行者123 更新时间:2023-12-02 00:51:46 28 4
gpt4 key购买 nike

RFC8011 p.152 打印机可以有一个常见的状态原因列表。在我的测试中,这个列表似乎非常不完整。是否有更完整的 CUPS 列表?

未列出的打印机状态原因的一些示例:

  • cups 等待作业完成
  • 离线报告

我确信还有更多示例,但这些是我发现并记录的示例。

最佳答案

编辑: M. Sweet 非常友善地提供了 IANA 的此列表:https://www.iana.org/assignments/ipp-registrations/ipp-registrations.xml

cups source code似乎说明了很多未出现在该 RFC 中的状态原因。由于同一作者-M. Sweet作者既是 RFC 又是 CUPS 源代码的维护者,这可能值得在 GitHub 上作为错误报告归档,以了解两者为何存在分歧。

例如,2013 年, cups-waiting-for-completed 添加并大约一天后重命名为 cups-waiting-for-job-completed , 比 2017 年最新发布的 RFC 早了 4 年。

RFC 按以下顺序提到了以下代码:

none
other
developer-low
door-open
fuser-over-temp
fuser-under-temp
input-tray-missing
interlock-open
interpreter-resource-unavailable
marker-supply-empty
marker-supply-low
marker-waste-almost-full
marker-waste-full
media-empty
media-jam
media-low
media-needed
moving-to-paused
opc-life-over
opc-near-eol
output-area-almost-full
output-area-full
output-tray-missing
paused
shutdown
spool-area-full
stopped-partly
stopping
timed-out
toner-empty
toner-low

然而 job.c 的源代码似乎还提到了以下状态(包括问题中提到的两个状态)。我认为这是一个详尽的 list ,直到更多的 list 出现。

connecting-to-device
offline-report
cups-insecure-filter-warning
cups-missing-filter-warning
cups-remote-aborted
cups-remote-canceled
cups-remote-completed
cups-remote-pending
cups-remote-pending-held
cups-remote-processing
cups-remote-stopped
cups-waiting-for-job-completed

至于跟踪新关键字添加的最佳方式,M. Sweet 或许还能够提供有关新州关键字源自何处的信息。以下是似乎提示 cups-waiting-for-job-completed 的提交描述.

msweet committed on Nov 6, 2013 Dropped "dark wake" support on OS X, which was preventing portables from going to sleep when there was a stuck job. We now use a variation of the CUPS 1.4 sleep support to do a cleaner sleep <rdar://problem/14323704> Aside from removing all of the power assertions, we now track a new "cups-waiting-for-completed" state keyword that tells cupsd it can SIGKILL a backend without side-effects - then if we are just waiting for the job to complete we can go to sleep immediately.

关于cups - CUPS 打印机状态原因的更完整列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44687154/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com