Eu comprei recentemente uma impressora Canon I-SENSYS LBP7010C, mas estou tendo problemas para fazer isso funcionar no meu sistema Linux Mint 17. Eu instalei os drivers do site da Canon com sucesso, mas quando tento imprimir algo, ele fica preso em "Enviando dados para a impressora".
Este é o driver que eu instalei no site da Canon. É chamado Driver de impressora CAPT para Linux versão 2.70 (64 bits).
A impressora está conectada e ligada.
Open a terminal/console and check if the usb kernel modules are loaded
$ lsmod | grep usb
usblp 22891 0
usbhid 52659 0
hid 106148 2 hid_generic,usbhid
Unplug the USB printer cable from your computer and enter this command:
$ tail -f /var/log/syslog
Reconnect the USB printer cable, you should see some messages appearing.
Mar 30 14:55:09 mm-desktop kernel: [ 506.224058] usb 1-8: new high-speed USB device number 5 using ehci-pci
Mar 30 14:55:09 mm-desktop kernel: [ 506.361176] usb 1-8: New USB device found, idVendor=04a9, idProduct=271c
Mar 30 14:55:09 mm-desktop kernel: [ 506.361182] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 30 14:55:09 mm-desktop kernel: [ 506.361186] usb 1-8: Product: Canon CAPT USB Device
Mar 30 14:55:09 mm-desktop kernel: [ 506.361189] usb 1-8: Manufacturer: Canon
Mar 30 14:55:09 mm-desktop kernel: [ 506.361192] usb 1-8: SerialNumber: 0000A2F0Q78n
Mar 30 14:55:09 mm-desktop kernel: [ 506.362903] usblp 1-8:1.0: usblp1: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x04A9 pid 0x271C
Mar 30 14:55:09 mm-desktop mtp-probe: checking bus 1, device 5: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8"
Mar 30 14:55:09 mm-desktop mtp-probe: bus: 1, device: 5 was not an MTP device
Mar 30 14:55:09 mm-desktop udev-configure-printer: add /devices/pci0000:00/0000:00:1d.7/usb1/1-8
Mar 30 14:55:09 mm-desktop udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1d.7/usb1/1-8
Mar 30 14:55:09 mm-desktop udev-configure-printer: MFG:Canon MDL:LBP7010C/7018C SERN:- serial:0000A2F0Q78n
Mar 30 14:55:10 mm-desktop kernel: [ 507.492381] usblp1: removed
Mar 30 14:55:10 mm-desktop kernel: [ 507.496039] usblp 1-8:1.0: usblp1: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x04A9 pid 0x271C
Mar 30 14:55:10 mm-desktop hp[13602]: io/hpmud/pp.c 627: unable to read device-id ret=-1
Mar 30 14:55:10 mm-desktop python: io/hpmud/pp.c 627: unable to read device-id ret=-1
Mar 30 14:55:10 mm-desktop udev-configure-printer: URI contains USB serial number
Mar 30 14:55:10 mm-desktop udev-configure-printer: URI match: usb://Canon/LBP7010C/7018C?serial=0000A2F0Q78n
Mar 30 14:55:10 mm-desktop udev-configure-printer: URI of detected printer: usb://Canon/LBP7010C/7018C?serial=0000A2F0Q78n, normalized: canon lbp7010c 7018c serial 0000a2f0q78n
Mar 30 14:55:10 mm-desktop udev-configure-printer: URI of print queue: ccp://localhost:59787, normalized: ccp localhost 59787
Mar 30 14:55:10 mm-desktop udev-configure-printer: URI of print queue: usb://Canon/LBP7010C/7018C?serial=0000A2F0Q78n, normalized: canon lbp7010c 7018c serial 0000a2f0q78n
Mar 30 14:55:10 mm-desktop udev-configure-printer: Queue ipp://localhost:631/printers/LBP7010C-7018C has matching device URI
Como você pode ver na saída, adicionei duas entradas diferentes do CUPS para esta impressora. Uma foi adicionada porque a impressora foi detectada automaticamente pelo CUPS e uma pelas etapas listadas em CanonCaptDrv190 .
Check whether the printer gets correctly detected by the USB subsystem and determine its USB vendor/product IDs and the USB bus and device addresses:
$ lsusb
Bus 001 Device 006: ID 04a9:271c Canon, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0603:00f2 Novatek Microelectronics Corp. Keyboard (Labtec Ultra Flat Keyboard)
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Check whether the device files for the printer get created and the ownerships ("root lp") and permissions (non-HP: "crw-rw-r--", HP: "crw-rw-r--+") correctly set:
$ ls -l /dev/usb/lp* /dev/bus/usb/*/*
crw-rw-r-- 1 root root 189, 0 mar 30 14:46 /dev/bus/usb/001/001
crw-rw-r-- 1 root lp 189, 5 mar 30 14:57 /dev/bus/usb/001/006
crw-rw-r-- 1 root root 189, 128 mar 30 14:46 /dev/bus/usb/002/001
crw-rw-r-- 1 root root 189, 129 mar 30 14:46 /dev/bus/usb/002/002
crw-rw-r-- 1 root root 189, 256 mar 30 14:46 /dev/bus/usb/003/001
crw-rw-r-- 1 root root 189, 257 mar 30 14:46 /dev/bus/usb/003/002
crw-rw-r-- 1 root root 189, 384 mar 30 14:46 /dev/bus/usb/004/001
crw-rw-r-- 1 root root 189, 512 mar 30 14:46 /dev/bus/usb/005/001
crw-rw---- 1 root lp 180, 1 mar 30 14:57 /dev/usb/lp1
Parece haver um problema aqui que eu não vi antes. /dev/usb/lp1
está realmente sem permissão de leitura para outras pessoas.
Determine the printer's device ID strings:
$ sudo usb_printerid /dev/usb/lp1
GET_DEVICE_ID string:
MFG:Canon;MDL:LBP7010C/7018C;CMD:CAPT;VER:3.0;CLS:PRINTER;DES:Canon LBP7010C/7018C
Find out if your printer gets detected by CUPS:
$ lpinfo -v
network ipp14
direct usb://Canon/LBP7010C/7018C?serial=0000A2F0Q78n
direct ccp
network lpd
network http
network ipp
network https
network socket
serial serial:/dev/ttyS0?baud=115200
network ipps
network smb
direct parallel:/dev/lp0
O que segue é o meu syslog para o processo de ligar e ligar a impressora, adicionando-a através de system-config-printer e, em seguida, tentando imprimir uma página de teste quando solicitado.
Mar 23 15:29:39 mm-desktop kernel: [ 4318.648033] usb 1-8: new high-speed USB device number 9 using ehci-pci
Mar 23 15:29:39 mm-desktop kernel: [ 4318.783740] usb 1-8: New USB device found, idVendor=04a9, idProduct=271c
Mar 23 15:29:39 mm-desktop kernel: [ 4318.783746] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 23 15:29:39 mm-desktop kernel: [ 4318.783749] usb 1-8: Product: Canon CAPT USB Device
Mar 23 15:29:39 mm-desktop kernel: [ 4318.783753] usb 1-8: Manufacturer: Canon
Mar 23 15:29:39 mm-desktop kernel: [ 4318.783756] usb 1-8: SerialNumber: 0000A2F0Q78n
Mar 23 15:29:39 mm-desktop kernel: [ 4318.785433] usblp 1-8:1.0: usblp1: USB Bidirectional printer dev 9 if 0 alt 0 proto 2 vid 0x04A9 pid 0x271C
Mar 23 15:29:39 mm-desktop mtp-probe: checking bus 1, device 9: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8"
Mar 23 15:29:39 mm-desktop mtp-probe: bus: 1, device: 9 was not an MTP device
Mar 23 15:29:39 mm-desktop udev-configure-printer: add /devices/pci0000:00/0000:00:1d.7/usb1/1-8
Mar 23 15:29:39 mm-desktop udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1d.7/usb1/1-8
Mar 23 15:29:39 mm-desktop udev-configure-printer: MFG:Canon MDL:LBP7010C/7018C SERN:- serial:0000A2F0Q78n
Mar 23 15:29:40 mm-desktop kernel: [ 4319.829770] usblp1: removed
Mar 23 15:29:40 mm-desktop kernel: [ 4319.832654] usblp 1-8:1.0: usblp1: USB Bidirectional printer dev 9 if 0 alt 0 proto 2 vid 0x04A9 pid 0x271C
Mar 23 15:29:40 mm-desktop hp[3477]: io/hpmud/pp.c 627: unable to read device-id ret=-1
Mar 23 15:29:40 mm-desktop python: io/hpmud/pp.c 627: unable to read device-id ret=-1
Mar 23 15:29:40 mm-desktop udev-configure-printer: no corresponding CUPS device found
Mar 23 15:30:13 mm-desktop dbus[520]: [system] Activating service name='org.freedesktop.hostname1' (using servicehelper)
Mar 23 15:30:13 mm-desktop dbus[520]: [system] Successfully activated service 'org.freedesktop.hostname1'
Mar 23 15:30:13 mm-desktop kernel: [ 4352.312742] systemd-hostnamed[3500]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
Mar 23 15:30:18 mm-desktop dbus[520]: [system] Activating service name='org.opensuse.CupsPkHelper.Mechanism' (using servicehelper)
Mar 23 15:30:18 mm-desktop dbus[520]: [system] Successfully activated service 'org.opensuse.CupsPkHelper.Mechanism'
Mar 23 15:30:18 mm-desktop kernel: [ 4357.479407] usblp1: removed
Mar 23 15:30:18 mm-desktop kernel: [ 4357.490463] usblp 1-8:1.0: usblp1: USB Bidirectional printer dev 9 if 0 alt 0 proto 2 vid 0x04A9 pid 0x271C
Mar 23 15:30:18 mm-desktop hp[3524]: io/hpmud/pp.c 627: unable to read device-id ret=-1
Mar 23 15:30:18 mm-desktop python: io/hpmud/pp.c 627: unable to read device-id ret=-1
Mar 23 15:30:43 mm-desktop colord: Profile added: Canon-LBP7010C-7018C-Gray..
Mar 23 15:30:43 mm-desktop colord: Profile added: Canon-LBP7010C-7018C-RGB..
Mar 23 15:30:43 mm-desktop colord: Device added: cups-Canon-LBP7010C-7018C
Mar 23 15:30:47 mm-desktop kernel: [ 4386.398394] usblp1: removed
Não há mensagens em /var/log/cups/error_log
.
printer-driver-cjet
. lp
e lpadmin
. lpadmin
(veja abaixo) e instalei uma dependência quebrada para captfilter
. Ao fazer isso, descobri uma nova entrada em /dev/usb/lp1
(mostrada acima). lpadmin
Usando a nova impressora que adicionei, os trabalhos são concluídos, mas nada é realmente impresso. A execução de captstatusui -P LBP7010C
mostra a interface do usuário dizendo "Erro de comunicação".
/dev
entradas Depois de fazer algumas alterações, descobri uma nova entrada: /dev/usb/lp1
. Eu tentei definir isso e /dev/lp0
como devpath em ccpd.conf
.
# Canon Printer Daemon for CUPS Configuration Data
<Path>
# CUPS configuration file path.
# Default /etc/cups/
CUPS_ConfigPath /etc/cups/
# Log directory path.
# LogDirectoryPath /var/log/CCPD/
</Path>
<Printer LBP7010C>
DevicePath /dev/usb/lp0
</Printer>
<Ports>
# Status monitoring socket port.
# Default 59787
UI_Port 59787
PDATA_Port 59687
</Ports>
Eu não sei exatamente o que fiz, mas às vezes posso imprimir páginas. Ele funciona pelo menos depois de reiniciar a impressora, embora as páginas impressas sejam muito fracas. Eu não sei a causa disso, mas seguindo A FAQ da Canon sugere que os cartuchos de toner se esgotaram. Não consigo ver como isso pode ser o caso de uma nova impressora, mas nada mais nessa lista parece plausível.
Tags printing cups printer linux-mint