每次重启或重新插入 USB 电缆后,打印机仅打印一次

每次重启或重新插入 USB 电缆后,打印机仅打印一次

我正在尝试让 HP LaserJet 600 m602 在 Lubuntu 14.04 机器上运行,该机器通过 USB 电缆连接到该机器。它可以正常打印第一个作业,但是当我发送另一个作业时,它的行为就像断开了连接一样,直到我重新启动或拔下并重新插入 USB 电缆。之后它也只打印一个作业(如果我释放它,则是我之前发送的作业,如果我从队列中删除旧作业,则是新作业)。

有趣的是,只有在连接到打印机的一端重新插入 USB 电缆时才有效。该电缆是延长 USB 电缆,另一端连接到较短的电缆,该电缆连接到打印机。如果我断开延长电缆与较短电缆的末端,或将较短的电缆与打印机的末端重新连接,它就不起作用了。它只在机器端起作用,但这种行为似乎过于一致和具体,不像是由电缆故障引起的。

延长线是 Delock 82446 线 USB 2.0 延长线,有效长度 10 米。

这是我的 cupsd.conf 文件:

LogLevel warn
MaxLogSize 1m
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
Browsing On
BrowseLocalProtocols dnssd
DefaultAuthType Basic
WebInterface Yes
<Location />
  # Allow remote administration...
  Order allow,deny
  Allow all
</Location>
<Location /admin>
  # Allow remote administration...
  Order allow,deny
  Allow all
</Location>
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  # Allow remote access to the configuration files...
  Order allow,deny
  Allow all
</Location>
<Policy default>
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
  </Limit>
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
<Policy authenticated>
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Default
    Order deny,allow
  </Limit>
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
MaxJobs 50

这是我的 Printers.conf 文件:

# Printer configuration file for CUPS v1.7.2
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<Printer ThPhyPrint>
UUID urn:uuid:9674b29c-6fbe-33f6-7dd6-8e4d0a1baca2
Info 
Location 
MakeModel HP LaserJet 600 M601 M602 M603 Postscript (recommended)
DeviceURI hp:/usb/HP_LaserJet_600_M602?serial=CNBVD26086
PPDTimeStamp *
State Idle
StateTime 1424099214
Type 8425684
Accepting Yes
Shared Yes
ColorManaged Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>

此外,当打开打印对话框时,Evince(我使用的 PDF 查看器)有时会显示“需要身份验证才能获取打印机打印的属性”,并要求输入用户名和密码一次或两次,但行为似乎与我是否输入用户名和密码或只是按取消按钮无关。

答案1

事实证明主板可能太旧了(华硕 P4P800),无法为电缆提供足够的电力。点击时lsusb一直显示打印机,直到打印完成,因此可能是最后的通信导致连接中断。

旧主板似乎是罪魁祸首,因为将带有外部电源的 USB 集线器(充当旧主板的“假体”)插入计算机并将电缆插入集线器解决了这个问题。

相关内容