Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Canon printer [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Moldmaker
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2010
Posts: 82

PostPosted: Thu May 21, 2020 10:40 am    Post subject: Canon printer [solved] Reply with quote

Hi everybody,

I am trying to get my Canon iP2700 ink printer to work under my Funtoo system (the repositories are different compared to the "real" Gentoo, but basically it is Gentoo).
However, I have the following problem. The printer is connected via USB and it is switched on and I know it is working fine. It is also recognized when i say
Code:
funtoo ~ # lsusb
Bus 002 Device 005: ID 04a9:10d3 Canon, Inc. iP2700 series
Bus 002 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 002: ID 046d:c21c Logitech, Inc. G13 Advanced Gameboard
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 046d:c626 Logitech, Inc. 3Dconnexion Space Navigator 3D Mouse
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0955:0007 NVIDIA Corp. NVIDIA stereo controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 0c4b:0300 Reiner SCT Kartensysteme GmbH cyberJack pinpad(a)
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 046d:08da Logitech, Inc. QuickCam Messanger
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
and when I say
Code:
funtoo ~ # /usr/libexec/cups/backend/usb
DEBUG: Loading USB quirks from "/usr/share/cups/usb".
DEBUG: Loaded 173 quirks.
DEBUG: list_devices
DEBUG: libusb_get_device_list=15
DEBUG2: Printer found with device ID: MFG:Canon;CMD:BJL,BJRaster3,BSCCe,IVEC,IVECPLI;SOJ:TXT01;MDL:iP2700 series;CLS:PRINTER;DES:Canon iP2700 series;VER:1.060;STA:10;FSI:00;HRI:EU;MSI:AOFF,BOFF,DAT,E3;PDR:4; Device URI: usb://Canon/iP2700%20series?serial=2E2B39
direct usb://Canon/iP2700%20series?serial=2E2B39 "Canon iP2700 series" "Canon iP2700 series" "MFG:Canon;CMD:BJL,BJRaster3,BSCCe,IVEC,IVECPLI;SOJ:TXT01;MDL:iP2700 series;CLS:PRINTER;DES:Canon iP2700 series;VER:1.060;STA:10;FSI:00;HRI:EU;MSI:AOFF,BOFF,DAT,E3;PDR:4;" ""
Seems okay I think. There is a driver for the printer included in the Gutenprint package. Now my first problem was how to add the printer on the CUPS configuration page.I tried the following
Code:
usb://Canon/iP2700
(is that correct?), selected the driver, but the printer does nothing. CUPS tells me that the printer is not connected. Same is true after a restart. For testing purposes I downloaded TurboPrint which behaves similarly. During installation, the printer is recognized, it is being connected via
Code:
tpu://Canon/iP2700_series
but it does nothing. Now comes the strange part: It happened two times after a restart that the printer printed (with the TurboPrint driver) and it behaved absolutely normal. After the next restart it was dead again and CUPS told me it was not connected. Regarding TurboPrint I opened a thread in their forum so I do not ask for help with it here, but can someone help me with the Gutenprint driver? Can it be a problem with the permissions? I can not print either when I am root. I also re-emerged CUPS with the use flag usb because it was not set, but to no avail.
Here is the /var/log/cups/error_log
How can it be that the printer is sometimes being recognized and sometimes not? Something with udev scripts? Any help would be appreciated.
_________________
Mm.


Last edited by Moldmaker on Thu May 21, 2020 4:09 pm; edited 2 times in total
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3268

PostPosted: Thu May 21, 2020 11:29 am    Post subject: Reply with quote

Would post 8332264 help solving your problem?
Back to top
View user's profile Send private message
Moldmaker
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2010
Posts: 82

PostPosted: Thu May 21, 2020 11:50 am    Post subject: Reply with quote

charles17 wrote:
Would post 8332264 help solving your problem?
I don't think so. CUPS and the Gutenprint package is installed correctly.
Code:
net-print/cups-2.3.3-r1::localrepo was built with the following:
USE="X acl dbus pam ssl threads usb -abi_riscv_lp64 -abi_riscv_lp64d -debug -kerberos -lprng-compat (-selinux) -static-libs -systemd -xinetd -zeroconf" net-print/gutenprint-5.3.1::desktop-kit was built with the following:
USE="cups gtk nls readline -gimp -ppds -static-libs"
What I am wondering about is the correct syntax for the connection. Is
Code:
usb://Canon/iP2700
correct? And why does CUPS not offer any local connections (like USB) apart from a virtual Braille printer? cups error_log says
Code:
d [21/May/2020:12:34:38 +0200] printer-uri-supported="ipp://localhost/printers/Canon_iP2700"
I tried it within CUPS but it doesn't work. in the whole error_log is no occurence of the string "usb".
_________________
Mm.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3268

PostPosted: Thu May 21, 2020 1:29 pm    Post subject: Reply with quote

What about
Back to top
View user's profile Send private message
Moldmaker
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2010
Posts: 82

PostPosted: Thu May 21, 2020 3:02 pm    Post subject: Reply with quote

This is what it says:
Code:
funtoo ~ # dmesg |grep -i print
[   18.125376] usblp 2-3:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x04A9 pid 0x10D3
[  157.310741] usblp 2-3:1.0: usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x04A9 pid 0x10D3
[  162.070569] usblp 2-3:1.0: usblp0: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x04A9 pid 0x10D3
[  307.264600] usblp 2-3:1.0: usblp0: USB Bidirectional printer dev 8 if 0 alt 0 proto 2 vid 0x04A9 pid 0x10D3
[  315.287258] usblp 2-3:1.0: usblp0: USB Bidirectional printer dev 9 if 0 alt 0 proto 2 vid 0x04A9 pid 0x10D3
[  455.230642] usblp 2-3:1.0: usblp0: USB Bidirectional printer dev 12 if 0 alt 0 proto 2 vid 0x04A9 pid 0x10D3
[  461.158703] usblp 2-3:1.0: usblp0: USB Bidirectional printer dev 13 if 0 alt 0 proto 2 vid 0x04A9 pid 0x10D3
[  575.226508] usblp 2-3:1.0: usblp0: USB Bidirectional printer dev 14 if 0 alt 0 proto 2 vid 0x04A9 pid 0x10D3
Code:
funtoo ~ # lsusb
Bus 002 Device 014: ID 04a9:10d3 Canon, Inc. iP2700 series
Bus 002 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 002: ID 046d:c21c Logitech, Inc. G13 Advanced Gameboard
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 046d:c626 Logitech, Inc. 3Dconnexion Space Navigator 3D Mouse
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0955:0007 NVIDIA Corp. NVIDIA stereo controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 003: ID 0c4b:0300 Reiner SCT Kartensysteme GmbH cyberJack pinpad(a)
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 046d:08da Logitech, Inc. QuickCam Messanger
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Code:
funtoo ~ # lpinfo -v
network beh
network https
network socket
network ipps
file cups-brf:/
network lpd
network http
network ipp
network smb
network bjnp
network lpd://BRWD46A6AB3DB01/BINARY_P1

Code:
funtoo ~ # lpinfo -m
lsb/usr/cupsfilters/Fuji_Xerox-DocuPrint_CM305_df-PDF.ppd Fuji Xerox
gutenprint.5.3://pcl-apollo-p2100/expert Apollo P-2100 - CUPS+Gutenprint v5.3.1
gutenprint.5.3://pcl-apollo-p2150/expert Apollo P-2150 - CUPS+Gutenprint v5.3.1
gutenprint.5.3://pcl-apollo-p2200/expert Apollo P-2200 - CUPS+Gutenprint v5.3.1
gutenprint.5.3://pcl-apollo-p2250/expert Apollo P-2250 - CUPS+Gutenprint v5.3.1
gutenprint.5.3://pcl-apollo-p2500/expert Apollo P-2500 - CUPS+Gutenprint v5.3.1
(....)
gutenprint.5.3://brother-hl-1060/expert Brother HL-1060 - CUPS+Gutenprint v5.3.1
gutenprint.5.3://brother-hl-1070/expert Brother HL-1070 - CUPS+Gutenprint v5.3.1
drv:///brlaser.drv/br1110.ppd Brother HL-1110 series, using brlaser v6
drv:///brlaser.drv/br1200.ppd Brother HL-1200 series, using brlaser v6
gutenprint.5.3://brother-hl-1240/expert Brother HL-1240 - CUPS+Gutenprint v5.3.1
gutenprint.5.3://brother-hl-1250/expert Brother HL-1250 - CUPS+Gutenprint v5.3.1
(...)
gutenprint.5.3://bjc-iP110-series/expert Canon iP110 series - CUPS+Gutenprint v5.3.1
gutenprint.5.3://bjc-iP2000-series/expert Canon iP2000 series - CUPS+Gutenprint v5.3.1
gutenprint.5.3://bjc-iP2700-series/expert Canon iP2700 series - CUPS+Gutenprint v5.3.1
gutenprint.5.3://bjc-iP2800-series/expert Canon iP2800 series - CUPS+Gutenprint v5.3.1
gutenprint.5.3://bjc-iP3300-series/expert Canon iP3300 series - CUPS+Gutenprint v5.3.1
(...)
turboprint/Canon_PIXMA_iP2500.ppd CANON TurboPrint Canon_PIXMA_iP2500 TurboPrint
turboprint/Canon_PIXMA_iP2600.ppd CANON TurboPrint Canon_PIXMA_iP2600 TurboPrint
turboprint/Canon_PIXMA_iP2700.ppd CANON TurboPrint Canon_PIXMA_iP2700 TurboPrint
turboprint/Canon_PIXMA_iP2800series.ppd CANON TurboPrint Canon_PIXMA_iP2800series TurboPrint
turboprint/Canon_PIXMA_iP2900series.ppd CANON TurboPrint Canon_PIXMA_iP2900series TurboPrint
(...)
gutenprint.5.3://xerox-workcentre_c2424/expert Xerox WorkCentre C2424 - CUPS+Gutenprint v5.3.1
gutenprint.5.3://xerox-wc_m118/expert Xerox WorkCentre M118 - CUPS+Gutenprint v5.3.1
drv:///sample.drv/zebracpl.ppd Zebra CPCL Label Printer
drv:///sample.drv/zebraep1.ppd Zebra EPL1 Label Printer
drv:///sample.drv/zebraep2.ppd Zebra EPL2 Label Printer
drv:///sample.drv/zebra.ppd Zebra ZPL Label Printer
everywhere IPP Everywhere
funtoo ~ #
Also interesting
Code:
funtoo ~ # /usr/libexec/cups/backend/usb
DEBUG: Loading USB quirks from "/usr/share/cups/usb".
DEBUG: Loaded 173 quirks.
DEBUG: list_devices
DEBUG: libusb_get_device_list=15
DEBUG2: Printer found with device ID: MFG:Canon;CMD:BJL,BJRaster3,BSCCe,IVEC,IVECPLI;SOJ:TXT01;MDL:iP2700 series;CLS:PRINTER;DES:Canon iP2700 series;VER:1.060;STA:10;FSI:00;HRI:EU;MSI:AOFF,BOFF,DAT,E3;PDR:4; Device URI: usb://Canon/iP2700%20series?serial=2E2B39
direct usb://Canon/iP2700%20series?serial=2E2B39 "Canon iP2700 series" "Canon iP2700 series" "MFG:Canon;CMD:BJL,BJRaster3,BSCCe,IVEC,IVECPLI;SOJ:TXT01;MDL:iP2700 series;CLS:PRINTER;DES:Canon iP2700 series;VER:1.060;STA:10;FSI:00;HRI:EU;MSI:AOFF,BOFF,DAT,E3;PDR:4;" ""
funtoo ~ #

The printer seems to be well known to the system, but CUPS does not see it. It is also strange when I unplug and replug the USB cable of the printer, it starts to do something but stops after 2 or 3 seconds. I suspect there is something with the udev stuff (I am not really knowing what it does but afaik is handles USB devices, right?) Maybe a permission problem?

Update:

I found something here. That is *exactly* what I observe.
Code:
Waiting for printer to become available.
And it is related to the udev system. Can that what is described there help me too?
_________________
Mm.
Back to top
View user's profile Send private message
Moldmaker
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2010
Posts: 82

PostPosted: Thu May 21, 2020 4:07 pm    Post subject: Reply with quote

The problem has been found. It was a missing udev rule. The solution is described here. What I did was to create a file /lib/udev/rules.d/99-usbprinter.rules containing the following:
Code:
LABEL="usbprinter_rules_begin"

ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="10d3", MODE="0660", GROUP="lp"

LABEL="usbprinter_rules_end"
and rebooted. The values for vendor and product come from the output of lsusb. Now the printer works with both drivers, Gutenprint and Turboprint. Thank you for your support and patience.
_________________
Mm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum