helloSystem / ISO

helloSystem Live and installation ISO
https://github.com/helloSystem/
BSD 3-Clause "New" or "Revised" License
807 stars 58 forks source link

Canon Pixma USB printer does not show up #241

Open probonopd opened 3 years ago

probonopd commented 3 years ago

Canon Pixma USB printer does not show up

image

This does see the printer:

Users-TravelMate-B117-M% sudo /usr/local/libexec/cups/backend/usb
DEBUG: Loading USB quirks from "/usr/local/share/cups/usb".
DEBUG: Loaded 184 quirks.
DEBUG: list_devices
DEBUG: libusb_get_device_list=6
DEBUG2: Printer found with device ID: MFG:Canon;CMD:BJL,BJRaster3,BSCCe,PLI;SOJ:TXT01;MDL:iP4500 series;CLS:PRINTER;DES:Canon iP4500 series;VER:1.020;STA:10;FSI:03;HRI:OTH;MSI:AOFF,BOFF,DAT,E3; Device URI: usb://Canon/iP4500%20series?serial=21178C
direct usb://Canon/iP4500%20series?serial=21178C "Canon iP4500 series" "Canon iP4500 series" "MFG:Canon;CMD:BJL,BJRaster3,BSCCe,PLI;SOJ:TXT01;MDL:iP4500 series;CLS:PRINTER;DES:Canon iP4500 series;VER:1.020;STA:10;FSI:03;HRI:OTH;MSI:AOFF,BOFF,DAT,E3;" ""

What needs to be done so that it shows up in the Printer dialog above?

probonopd commented 3 years ago

Gutenprint seems to be necessary?

sudo pkg install cups-bjnp print/gimp-gutenprint, then enter usb://Canon/iP4500%20series?serial=21178C under "Enter URI", allows me to select the correct Canon driver (Gutenprint).

Getting

M% cat /var/log/cups/error_log | grep -i pixma
E [11/Jul/2021:14:26:24 +0000] [Client 41] Returning IPP client-error-document-format-not-supported for Print-Job (ipp://localhost/printers/Canon-PIXMA-iP4500) from localhost.

Boy, why can't this kind of basic stuff "just work".

probonopd commented 3 years ago

Cannot print. Does not show ink levels.

Is Canon LInux cifip4500 needed?

Installing sudo pkg install cups cups-filters cups-pdf gsfonts foomatic-db-engine foomatic-db gutenprint system-config-printer now...

When trying to print a test page, it says Processing - Waiting for printer to become available. in the Print Settings window. Whatever this means!

probonopd commented 3 years ago

https://forums.freebsd.org/threads/cups-no-local-printer.62762/ seems to describe this exact problem. But no solution.

What needs to be done so that the GUI above shows a USB printer in a halfway decent plug-and-play fashion?

probonopd commented 3 years ago
% sudo lpinfo -v
network ipp
network beh
network ipps
network socket
network http
file cups-pdf:/
network https
network lpd
network bjnp

Seems like the problem is that

direct usb:/dev/ulpt0
direct usb:/dev/unlpt0
direct usb:/dev/ulpt1
direct usb:/dev/unlpt1

are missing there. How to get them?

probonopd commented 3 years ago

https://www.freshports.org/print/cups-base says:

The device URI of USB printers has changed so you have to adjust the printer configuration. Go to http://localhost:631/printers/. Click on your printer and select "Modify Printer" in the Administration drop-down. You should then be able to select the new URI of the printer.

This does not seem to be true for me, there is nothing but the usb://Canon/iP4500%20series?serial=21178C which I had entered manually earlier.

It seems like CUPS is not seeing USB printers! Any help appreciated.

Reference: https://forums.freebsd.org/threads/another-cups-local-printer-issue.14183/