Canon LPB2900 Printer Installation Problem

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
satsriakal
Level 3
Level 3
Posts: 142
Joined: Mon Jan 12, 2015 2:23 pm
Location: Bari, Italy

Canon LPB2900 Printer Installation Problem

Post by satsriakal »

Hi to Everybody,

it's the first time I'm installing a printer on linux and I'm finding a lot of troubles.

O.S. : Linux Mint LMDE 5 (elsie) 32bit
Printer: CANON LBP2900 (on USB port)

I've installed the drivers I found online. I installed the printer, but it doesn't print even if I can see the printer with a green flag.

What can I do?
Best regards
Beppe
Last edited by LockBot on Thu Jul 27, 2023 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
satsriakal
Level 3
Level 3
Posts: 142
Joined: Mon Jan 12, 2015 2:23 pm
Location: Bari, Italy

Re: Canon LPB2900 Printer Installation Problem

Post by satsriakal »

Hi,
I'm trying in several ways to solve the problem but without success.
Is there any suggestion to try?
Last edited by satsriakal on Sat Feb 11, 2023 4:45 am, edited 1 time in total.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Canon LPB299 Printer Installation Problem

Post by brian_p »

satsriakal wrote: Tue Feb 07, 2023 3:13 pm Hi,
I'm trying in several ways to solve the problem but without success.
Is there any suggestion to try?
The printer name in the subject header does not match what is in the first post. Please edit the subject.

Give the output of

Code: Select all

lpinfo -m | grep 2900 
--
Brian.
satsriakal
Level 3
Level 3
Posts: 142
Joined: Mon Jan 12, 2015 2:23 pm
Location: Bari, Italy

Re: Canon LPB2900 Printer Installation Problem

Post by satsriakal »

Code: Select all

lpinfo -m | grep 2900 

CNCUPSLBP2900CAPTK.ppd Canon LBP2900 CAPT ver.1.5
lsb/usr/CNCUPSLBP2900CAPTK.ppd Canon LBP2900 CAPT ver.1.5
gutenprint.5.3://bjc-MG2900-series/expert Canon MG2900 series - CUPS+Gutenprint v5.3.3
gutenprint.5.3://bjc-PIXMA-G2900/expert Canon PIXMA G2900 - CUPS+Gutenprint v5.3.3
escpr:0/cups/model/epson-inkjet-printer-escpr/Epson-Stylus_CX2900-epson-escpr-en.ppd Epson Stylus CX2900, Epson Inkjet Printer Driver (ESC/P-R) for Linux
Thanks Brian!
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Canon LPB2900 Printer Installation Problem

Post by brian_p »

CNCUPSLBP2900CAPTK.ppd
This a PPD installed by the Canon drivers. Now give the output from

Code: Select all

sudo lpinfo -v
--
Brian.
satsriakal
Level 3
Level 3
Posts: 142
Joined: Mon Jan 12, 2015 2:23 pm
Location: Bari, Italy

Re: Canon LPB2900 Printer Installation Problem

Post by satsriakal »

Code: Select all

file cups-brf:/
network beh
network socket
direct cnusb:/dev/usb/lp1
serial serial:/dev/ttyS0?baud=115200
direct ccp
direct parallel:/dev/lp0
network ipps
network lpd
network ipp
network http
network https
direct hp
direct usb://Canon/LBP2900?serial=0000C15BQE0Y
network smb
direct hpfax
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Canon LPB2900 Printer Installation Problem

Post by brian_p »

From this last output the URI for your printer is

Code: Select all

usb://Canon/LBP2900?serial=0000C15BQE0Y
You already have the PPD to use. It is

Code: Select all

CNCUPSLBP2900CAPTK.ppd
Now execute

Code: Select all

lpadmin -p LBP2900C -v "URI" -E -m PPD
Substute what you have above for URI and PPD in the command.

Test printing with

Code: Select all

lp -d LBP2900C /etc/nsswitch.conf
How is that?
--
Brian.
satsriakal
Level 3
Level 3
Posts: 142
Joined: Mon Jan 12, 2015 2:23 pm
Location: Bari, Italy

Re: Canon LPB2900 Printer Installation Problem

Post by satsriakal »

Now when I send the test command, I can see the document in the printing queue in the status "processing".
but it doesn't print....it is stuck in processing status...
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Canon LPB2900 Printer Installation Problem

Post by brian_p »

satsriakal wrote: Tue Feb 14, 2023 3:19 pm Now when I send the test command, I can see the document in the printing queue in the status "processing".
but it doesn't print....it is stuck in processing status...
Please give the test command used and the command you used to set up the print queue. The second command begins with lpadmin.
--
Brian.
satsriakal
Level 3
Level 3
Posts: 142
Joined: Mon Jan 12, 2015 2:23 pm
Location: Bari, Italy

Re: Canon LPB2900 Printer Installation Problem

Post by satsriakal »

Code: Select all

 lpadmin -p LBP2900C -v "usb://Canon/LBP2900?serial=0000C15BQE0Y" -E -m CNCUPSLBP2900CAPTK.ppd  

Code: Select all

 lp -d LBP2900C /etc/nsswitch.conf 
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Canon LPB2900 Printer Installation Problem

Post by brian_p »

Try changing the PPD used in the lpadmin command to:

Code: Select all

-m lsb/usr/CNCUPSLBP2900CAPTK.ppd
--
Brian.
satsriakal
Level 3
Level 3
Posts: 142
Joined: Mon Jan 12, 2015 2:23 pm
Location: Bari, Italy

Re: Canon LPB2900 Printer Installation Problem

Post by satsriakal »

I gave this command and I got the following result:

Code: Select all

$ lpadmin -p LBP2900C -v "usb://Canon/LBP2900?serial=0000C15BQE0Y" -E -m lsb/usr/CNCUPSLBP2900CAPTK.ppd

lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
I can see the printing document in the printer queue, but stuck in processing status.
In addition, I see that in "user" field there is "Uknown"
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Canon LPB2900 Printer Installation Problem

Post by brian_p »

satsriakal wrote: Fri Feb 17, 2023 5:45 am Ilpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
[/code]
A warning. Ignore it.
I can see the printing document in the printer queue, but stuck in processing status.
In addition, I see that in "user" field there is "Uknown"
You appear to have done everything correctly to set up a print queue. Let's look at what happens when a file is sent.

Code: Select all

sudo cupsfilter -p /etc/cups/ppd/LBP2900C.ppd -m printer/foo -e /etc/nsswitch.conf > out.dat 2> log.txt
Send log.txt here as an attachment. You can view it with

Code: Select all

less log.txt
--
Brian.
satsriakal
Level 3
Level 3
Posts: 142
Joined: Mon Jan 12, 2015 2:23 pm
Location: Bari, Italy

Re: Canon LPB2900 Printer Installation Problem

Post by satsriakal »

Code: Select all

sudo cupsfilter -p /etc/cups/ppd/LBP2900C.ppd -m printer/foo -e /etc/nsswitch.conf > out.dat 2> log.txt
After the execution of this command nothing happens: no feedback messages, no file in the printer queue.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Canon LPB2900 Printer Installation Problem

Post by brian_p »

satsriakal wrote: Fri Feb 17, 2023 2:39 pm

Code: Select all

sudo cupsfilter -p /etc/cups/ppd/LBP2900C.ppd -m printer/foo -e /etc/nsswitch.conf > out.dat 2> log.txt
After the execution of this command nothing happens: no feedback messages, no file in the printer queue.
no feedback messages indicates no execution errors. The purpose of the command is to produce the file log.txt and for you to send it here. log.txt should be in your home directory.
--
Brian.
satsriakal
Level 3
Level 3
Posts: 142
Joined: Mon Jan 12, 2015 2:23 pm
Location: Bari, Italy

Re: Canon LPB2900 Printer Installation Problem

Post by satsriakal »

Sorry for my stupid observation....

Code: Select all

cupsfilter: File "/usr/lib/cups/filter/pstocapt" permessi OK (040755/uid=0/gid=0).
cupsfilter: File "/usr/lib/cups/filter/commandtops" permessi OK (040755/uid=0/gid=0).
DEBUG: argv[0]="cupsfilter"
DEBUG: argv[1]="1"
DEBUG: argv[2]="root"
DEBUG: argv[3]="nsswitch.conf"
DEBUG: argv[4]="1"
DEBUG: argv[5]=""
DEBUG: argv[6]="/etc/nsswitch.conf"
DEBUG: envp[0]="<CFProcessPath>"
DEBUG: envp[1]="CONTENT_TYPE=text/plain"
DEBUG: envp[2]="CUPS_DATADIR=/usr/share/cups"
DEBUG: envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
DEBUG: envp[4]="CUPS_SERVERBIN=/usr/lib/cups"
DEBUG: envp[5]="CUPS_SERVERROOT=/etc/cups"
DEBUG: envp[6]="LANG=it_IT.UTF8"
DEBUG: envp[7]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
DEBUG: envp[8]="PPD=/etc/cups/ppd/LBP2900C.ppd"
DEBUG: envp[9]="PRINTER_INFO=cupsfilter"
DEBUG: envp[10]="PRINTER_LOCATION=Unknown"
DEBUG: envp[11]="PRINTER=cupsfilter"
DEBUG: envp[12]="RIP_MAX_CACHE=128m"
DEBUG: envp[13]="USER=root"
DEBUG: envp[14]="CHARSET=utf-8"
DEBUG: envp[15]="FINAL_CONTENT_TYPE=application/vnd.cups-postscript"
INFO: texttopdf (PID 2460) started.
INFO: pdftopdf (PID 2461) started.
INFO: pdftops (PID 2462) started.
INFO: pstocapt (PID 2463) started.
DEBUG: Page = 595x842; 14,14 to 581,828
DEBUG: pstocapt start.
DEBUG: pdftops - copying to temp print file "/tmp/0099e63fcb3d9"
DEBUG: pdftopdf: Last filter determined by the PPD: pstocapt; FINAL_CONTENT_TYPE: application/vnd.cups-postscript => pdftopdf will not log pages in page_log.
INFO: texttopdf (PID 2460) exited with no errors.
DEBUG: PDF interactive form and annotation flattening done via QPDF
INFO: pdftopdf (PID 2461) exited with no errors.
DEBUG: Printer make and model: Canon LBP2900
DEBUG: Running command line for pstops: pstops 1 root nsswitch.conf 1 
DEBUG: Using image rendering resolution 600 dpi
DEBUG: Running command line for gs: gs -q -dNOPAUSE -dBATCH -dSAFER -dNOMEDIAATTRS -sstdout=%stderr -sDEVICE=ps2write -dShowAcroForm -sOUTPUTFILE=%stdout -sProcessColorModel=DeviceGray -sColorConversionStrategy=Gray -dLanguageLevel=3 -r600 -dCompressFonts=false -dNoT3CCITT -dNOINTERPOLATE -c 'save pop' -f /tmp/0099e63fcb3d9
DEBUG: Started filter gs (PID 2464)
DEBUG: Started filter pstops (PID 2465)
DEBUG: Page = 595x842; 14,14 to 581,828
DEBUG: slow_collate=0, slow_duplex=0, slow_order=0
DEBUG: Before copy_comments - %!PS-Adobe-3.0
DEBUG: %!PS-Adobe-3.0
DEBUG: %%Invocation: gs -q -dNOPAUSE -dBATCH -dSAFER -dNOMEDIAATTRS -sstdout=? -sDEVICE=ps2write -dShowAcroForm -sOUTPUTFILE=? -sProcessColorModel=DeviceGray -sColorConversionStrategy=Gray -dLanguageLevel=3 -r600 -dCompressFonts=false -dNoT3CCITT -dNOINTERPOLATE ?
DEBUG: %%+ ? -f ?
DEBUG: %%BoundingBox: 0 0 595 842
DEBUG: %%HiResBoundingBox: 0 0 595.00 842.00
DEBUG: %%Creator: GPL Ghostscript 9533 (ps2write)
DEBUG: %%LanguageLevel: 2
DEBUG: %%CreationDate: D:20230217193631+01'00'
DEBUG: %%Pages: 1
DEBUG: %%EndComments
DEBUG: Before copy_prolog - %%BeginProlog
DEBUG: PID 2464 (gs) exited with no errors.
DEBUG: Before copy_setup - %%Page: 1 1
DEBUG: Before page loop - %%Page: 1 1
DEBUG: Copying page 1...
DEBUG: pagew = 566.7, pagel = 813.7
DEBUG: bboxx = 0, bboxy = 0, bboxw = 595, bboxl = 842
DEBUG: PageLeft = 14.2, PageRight = 580.8
DEBUG: PageTop = 827.8, PageBottom = 14.2
DEBUG: PageWidth = 595.0, PageLength = 842.0
DEBUG: Wrote 1 pages...
DEBUG: PID 2465 (pstops) exited with no errors.
INFO: pdftops (PID 2462) exited with no errors.
INFO: pstocapt (PID 2463) exited with no errors.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Canon LPB2900 Printer Installation Problem

Post by brian_p »

satsriakal wrote: Fri Feb 17, 2023 4:39 pm Sorry for my stupid observation....
No problem. From log.txt
INFO: texttopdf (PID 2460) started.
INFO: pdftopdf (PID 2461) started.
INFO: pdftops (PID 2462) started.
INFO: pstocapt (PID 2463) started.
Four filters stated
INFO: texttopdf (PID 2460) exited with no errors.
INFO: pdftopdf (PID 2461) exited with no errors.
INFO: pdftops (PID 2462) exited with no errors.
INFO: pstocapt (PID 2463) exited with no errors.
All four filters complete successfully.

The printing system produces a file to be sent to the printer. It doesn't print. Maybe the commection to the printer is defective? First check with

Code: Select all

lsusb
--
Brian.
satsriakal
Level 3
Level 3
Posts: 142
Joined: Mon Jan 12, 2015 2:23 pm
Location: Bari, Italy

Re: Canon LPB2900 Printer Installation Problem

Post by satsriakal »

Code: Select all

Bus 002 Device 005: ID 04a9:2676 Canon, Inc. LBP2900
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 058f:9360 Alcor Micro Corp. 8-in-1 Media Card Reader
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 003: ID 1bcf:0007 Sunplus Innovation Technology Inc. Optical Mouse
Bus 003 Device 002: ID 413c:2005 Dell Computer Corp. RT7D50 Keyboard
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Canon LPB2900 Printer Installation Problem

Post by brian_p »

satsriakal wrote: Sat Feb 18, 2023 12:49 am

Code: Select all

Bus 002 Device 005: ID 04a9:2676 Canon, Inc. LBP2900
At this stage we have:
  • Looks like Canon drivers are installed correctly.
  • Queue is set up correctly.
  • Filters operate correctly.
  • A USB link exists
  • Therefore a file should print.
I suppose trying different USB ports would do no harm, but I am running out of easy to implement ideas. Give the output of

Code: Select all

ls -l dev/usb/
--
Brian.
satsriakal
Level 3
Level 3
Posts: 142
Joined: Mon Jan 12, 2015 2:23 pm
Location: Bari, Italy

Re: Canon LPB2900 Printer Installation Problem

Post by satsriakal »

Code: Select all

ls -l /dev/usb/

Code: Select all

crw------- 1 root root 180, 0 23 feb 16.12 hiddev0
crw-rw---- 1 root lp   180, 1 23 feb 16.17 lp1
Locked

Return to “Printers & Scanners”