我有一台 HP Deskjet 1510,通过 USB 连接到 Ubuntu Server 12.04 LTS。我已关闭“2 小时后自动关闭打印机以节省能源”功能,方法是将打印机连接到 Windows 计算机并通过 HP 软件禁用此功能。因此,即使服务器关闭,打印机也会全天候开机(LED 灯亮起等)。
打印机正在通过 cups 共享到我的本地网络。共享正常,我实际上可以从网络中的各种 Windows 设备进行打印,没有任何问题。
问题是,当我打开服务器(我指的是实际的机器)时,如果我开始将文件发送到 HP Deskjet 进行打印,它们只会被填满 windows 队列。我的意思是它说
x document(s) pending for User
如果我必须
https://192.168.2.15:631/printers/HP_Deskjet_1510
(192.168.2.15
这是我的服务器的本地 IP)
这是我得到的屏幕
没有排队的作业。
我在互联网上搜索后,在服务器上尝试了以下命令。每执行完一个命令后,我都会从 Microsoft Word 发送一页进行打印,看看是否可行。结果没有
# hp-probe
HP Linux Imaging and Printing System (ver. 3.15.7)
Printer Discovery Utility ver. 4.1
Copyright (c) 2001-15 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------
Num Connection Description
Type
-------- ---------- ----------------------------------------------------------
0* usb Universal Serial Bus (USB)
1 net Network/Ethernet/Wireless (direct connection or JetDirect)
Enter number 0...1 for connection type (q=quit, enter=usb*) ? 0
Using connection type: usb
--------------------
| DEVICE DISCOVERY |
--------------------
warning: No devices found on the 'usb' bus. If this isn't the result you are expecting,
warning: check to make sure your devices are properly connected and powered on.
Done.
# sudo /usr/lib/cups/backend/usb
DEBUG: list_devices
DEBUG: libusb_get_device_list=7
DEBUG2: Printer found with device ID: MFG:HP;MDL:Deskjet 1510 series;CMD:PCL3GUI,PJL,Automatic,DW-PCL,DESKJET,DYN;CLS:PRINTER;DES:B2L57C;CID:HPDeskjet_P976D;LEDMDIS:USB#FF#CC#00,USB#07#01#02,USB#FF#04#01;SN:CN5192F06B05XJ;S:038000C484a01021002c1f00046c288005a;J: ;Z:0102,0503872800b048,0600,0c0,0e00000000,0f00000000,10000008000008,12000,147,150,16361a3872000316da186a0003,17000000000000,180; Device URI: usb://HP/Deskjet%201510%20series?serial=CN5192F06B05XJ&interface=1
direct usb://HP/Deskjet%201510%20series?serial=CN5192F06B05XJ&interface=1 "HP Deskjet 1510 series" "HP Deskjet 1510 series" "MFG:HP;MDL:Deskjet 1510 series;CMD:PCL3GUI,PJL,Automatic,DW-PCL,DESKJET,DYN;CLS:PRINTER;DES:B2L57C;CID:HPDeskjet_P976D;LEDMDIS:USB#FF#CC#00,USB#07#01#02,USB#FF#04#01;SN:CN5192F06B05XJ;S:038000C484a01021002c1f00046c288005a;J: ;Z:0102,0503872800b048,0600,0c0,0e00000000,0f00000000,10000008000008,12000,147,150,16361a3872000316da186a0003,17000000000000,180;" ""
# sudo usb_printerid /dev/usb/lp0
GET_DEVICE_ID string:
MFG:HP;MDL:Deskjet 1510 series;CMD:PCL3GUI,PJL,Automatic,DW-PCL,DESKJET,DYN;CLS:PRINTER;DES:B2L57C;CID:HPDeskjet_P976D;LEDMDIS:USB#FF#CC#00,USB#07#01#02,USB#FF#04#01;SN:CN5192F06B05XJ;S:038000C484a01021002c1f00046c288005a;J: ;Z:0102,0503872800b048,0600,0c0,0e00000000,0f00000000,10000008000008,12000,147,150,16361a3872000316da186a0003,17000000000000,180;
# lpstat -t
scheduler is running
no system default destination
device for HP_Deskjet_1510: usb://HP/Deskjet%201510%20series?serial=CN5192F06B05XJ&interface=1
HP_Deskjet_1510 accepting requests since Fri 27 Nov 2015 03:54:47 PM EET
printer HP_Deskjet_1510 is idle. enabled since Fri 27 Nov 2015 03:54:47 PM EET
# lpstat -v
device for HP_Deskjet_1510: usb://HP/Deskjet%201510%20series?serial=CN5192F06B05XJ&interface=1
# sudo cupsenable HP_Deskjet_1510
# lpc status
HP_Deskjet_1510:
printer is on device 'usb' speed -1
queuing is enabled
printing is enabled
no entries
daemon present
# sudo service cups restart
cups stop/waiting
cups start/running, process 2706
正如我所说,打印机会保持这种 derp 模式约 10-30 分钟。在那之后,如果我开始打印,它会正常打印。我感觉打印作业没有发送到服务器?我在 Windows 中使用的驱动程序是 Public Image Setter(它是唯一有效的驱动程序)。