Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] CANON for linux printing is like NVIDIA for linux 3d acceleration (Read 615 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] CANON for linux printing is like NVIDIA for linux 3d acceleration

hello i am trying to get old Canon laser printer working.
it is not my first frustrating encounter with this printer --i was using it about a year or two ago when i was Ubuntu user yet.
it had printed ten or so pages and after a several days has stopped accepting jobs then i had given up after totally getting out of my hair trying to fix it.

it is iSensys LBP6020 [CAPT-only model] --today i have tried CUPS web interface, CLI tools, GTK settings manager, then i have scanned through Arch and Gentoo wikis [i use OpenRC]
...nothing can get it working --i have "Filter failed" in CUPS web interface.

here is a log:
Code: [Select]
/var/log/cups/error_log

W [21/Mar/2023:08:41:32 +0200] CreateProfile failed: org.freedesktop.DBus.Error.Spawn.ChildExited:Launch helper exited with unknown return code 1
W [21/Mar/2023:08:41:32 +0200] CreateDevice failed: org.freedesktop.DBus.Error.Spawn.ChildExited:Launch helper exited with unknown return code 1
E [21/Mar/2023:08:42:10 +0200] [Job 1] ccp send_data error, exit
W [21/Mar/2023:08:42:10 +0200] [Job 1] Backend returned status 1 (failed)


discussion at AUR capt-src mentioned this particular model in a post from 2020 [maybe it was related to my CAPT setup crashing back then] --he or she mentioned ghostscript must be downgraded to 9.52-1 to make it working again.
i have done it today too but nothing has changed:
Code: [Select]
W [21/Mar/2023:07:07:49 +0200] CreateProfile failed: org.freedesktop.DBus.Error.Spawn.ChildExited:Launch helper exited with unknown return code 1
W [21/Mar/2023:07:07:49 +0200] CreateDevice failed: org.freedesktop.DBus.Error.Spawn.ChildExited:Launch helper exited with unknown return code 1

[2023-03-21T07:53:19+0200] [PACMAN] Running 'pacman -U https://archive.archlinux.org/packages/g/ghostscript/ghostscript-9.52-1-x86_64.pkg.tar.zst'
[2023-03-21T07:53:49+0200] [ALPM] transaction started
[2023-03-21T07:53:49+0200] [ALPM] downgraded ghostscript (10.0.0-6 -> 9.52-1)
[2023-03-21T07:53:50+0200] [ALPM] transaction completed

W [21/Mar/2023:07:57:34 +0200] CreateProfile failed: org.freedesktop.DBus.Error.Spawn.ChildExited:Launch helper exited with unknown return code 1
W [21/Mar/2023:07:57:34 +0200] CreateDevice failed: org.freedesktop.DBus.Error.Spawn.ChildExited:Launch helper exited with unknown return code 1



i have found these checkpoints in article at Arch wiki on HP issues
Quote
CUPS: "Filter failed"
A "filter failed" error can be caused by any number of issues. The CUPS error log (by default /var/log/cups/error_log) should record which filter failed and why.

Missing ghostscript
[i have it for sure]

Missing foomatic-db
[i have it for sure]

Avahi not enabled
[checked for that. OK, but i guess i do not need it with this setup anyway]

Out-of-date plugin
[...]As of hplip-plugin [AUR] v3.17.11 hpijs is not longer available[...]
[does not apply to Canon iSensys]
Client and host both run CUPS with hpcups
[does not apply to Canon iSensys]

web-interface:
Code: [Select]
ID          Name         User        Size Pages                      State
LBP6020-1 Unknown       Withheld 1k    Unknown      pending since
                                                                                 Tue 21 Mar 2023 08:42:10 AM EET
                                                                                 "Filter failed"

now i am deleting it and re-adding via CLI:
Code: [Select]
sov-x550cc:[root]:/home/sov-thade-tage# /etc/init.d/cupsd status
 * status: started
sov-x550cc:[root]:/home/sov-thade-tage# /usr/bin/lpadmin -p LBP6020 -m CNCUPSLBP6020CAPTK.ppd -v ccp://localhost:59687 -E
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
sov-x550cc:[root]:/home/sov-thade-tage# /usr/bin/ccpdadmin -p LBP6020 -o /dev/usb/lp0

 CUPS_ConfigPath = /etc/cups/
 LOG Path        = None
 UI Port         = 59787

 Entry Num  : Spooler : Backend : FIFO path : Device Path : Status
 ----------------------------------------------------------------------------
     [0]    : getmore :                 : /dev/usb/lp0 : invalid Spool Name
     [1]    : LBP6020 : ccp : //localhost:59687 : /dev/usb/lp0 : Modified

sov-x550cc:[root]:/home/sov-thade-tage# ccpdadmin -x getmore
# [getmore was a name made through web interface, it was not removed upon the next deletion. (sov thade tage)]
 CUPS_ConfigPath = /etc/cups/
 LOG Path        = None
 UI Port         = 59787

Entry Num  : Spooler    : Backend   : FIFO path          : Device Path   : Status
 ----------------------------------------------------------------------------
     [0]    : getmore    :               :                 : /dev/usb/lp0  : Delete
     [1]    : LBP6020   : ccp       : //localhost:59687     : /dev/usb/lp0  :


sov-x550cc:[root]:/home/sov-thade-tage# /usr/bin/ccpd status
sov-x550cc:[root]:/home/sov-thade-tage# /usr/bin/ccpd start
sov-x550cc:[root]:/home/sov-thade-tage# /usr/bin/ccpd status
sov-x550cc:[root]:/home/sov-thade-tage# ps awx | grep ccpd
 5662 ?        Ss     0:00 /usr/bin/ccpd status
 5663 ?        S      0:00 /usr/bin/ccpd status
 5674 ?        Ss     0:00 /usr/bin/ccpd start
 5675 ?        S      0:00 /usr/bin/ccpd start
 5685 ?        Ss     0:00 /usr/bin/ccpd status
 5686 ?        S      0:00 /usr/bin/ccpd status
 5726 pts/0    S+     0:00 grep --colour=auto ccpd
sov-x550cc:[root]:/home/sov-thade-tage# /usr/bin/captstatusui -P LBP6020
# [running "Cleaning..." then terminating popup window "LBP6020", initially it shows "Sleeping" surely. (sov thade tage)]
(captstatusui:5745): GLib-CRITICAL **: 10:11:45.413: Source ID 12 was not found when attempting to remove it
sov-x550cc:[root]:/home/sov-thade-tage#


here is the RESULT:
Code: [Select]
LBP6020
LBP6020  (Paused, Accepting Jobs, Not Shared)
Description:    LBP6020
Location:
Driver:         Canon LBP6020 CAPT (UK) (grayscale)
Connection:     ccp://localhost:59687
Defaults:       job-sheets=none, none media=iso_a4_210x297mm sides=one-sided
Jobs


Active jobs listed in processing orderâ–Ľ; held jobs appear first.
ID          Name        User         Size    Pages      State
LBP6020-2   Test Page   anonymous    1k      Unknown    pending since
                                                        Tue 21 Mar 2023 10:39:34 AM EET
                                                        "Filter failed"

...so no i am not "Withheld" but "anonymous".
GREAT!!!









shean shi eth Ynnwn. Aisha

Re: CANON for linux printing is like NVIDIA for linux 3d acceleration

Reply #1
There is a page on the Arch Wiki about this type of printer:
https://wiki.archlinux.org/title/Canon_CAPT
There is an old existing driver, capt-src in the AUR, which requires lib32 to be enabled, for which instructions are given - sometimes there can be lib32 version mismatches which might give a temporary problem I suppose. But also on that page it mentions another new driver under development, captdriver-git in the AUR, this might not need lib32. According to comments on the AUR page it works for some people anyhow.

Re: CANON for linux printing is like NVIDIA for linux 3d acceleration

Reply #2
There is a page on the Arch Wiki about this type of printer:
https://wiki.archlinux.org/title/Canon_CAPT
There is an old existing driver, capt-src in the AUR, which requires lib32 to be enabled, for which instructions are given - sometimes there can be lib32 version mismatches which might give a temporary problem I suppose.
mmm ...what? could you please explain it? it is EXACTLY what i have installed by now and it is this package from Canon that stopped working for me; i did not see any warnings about lib32 during install [maybe i missed them, though --the output was HUGE].
But also on that page it mentions another new driver under development, captdriver-git in the AUR, this might not need lib32. According to comments on the AUR page it works for some people anyhow.
oh, i have tried installing it before taking capt-src but it does not have a driver for Canon LBP6020 as i have found on their GitHub page [in the long list of targets titled 'CAPT-only devices'], so i did not tried printing with this open-source package.
they say they 'plan a support for more devices in future'.

however they advise trying nearest model number driver [i.e.they have the driver for LBP2018] but either Gentoo or Arch wiki tells to use 'the exact match or driver may not work'.
maybe i would try installing it back; i would tinker a little more with that stale version from Canon --i had my audio interface on next USB socket during those attempts --maybe it matters ...but i don`t think so.


p.s.: i have not mentioned THIS
during that last attempt i described in OP the printer has accepted 'Test Page' job and has taken the paper sheet but it has not printed anything--the page was filled with some bleak horizontal stripes;
it was very dark in the room and i was in my headphones so i was not aware of that while asking for help at this thread;
also it HAS NOT taken any paper during my earlier attempts that day when i was trying to print Nicki Minaj`s photo.
shean shi eth Ynnwn. Aisha

Re: CANON for linux printing is like NVIDIA for linux 3d acceleration

Reply #3
About lib32, it says this on the wiki page:
"Install the capt-srcAUR package. It depends on 32-bit library packages and requires enabling multilib."
This is done as described here:
https://wiki.artixlinux.org/Main/Repositories

There does seem to be ongoing work to provide support for 6xxx printers in captdriver-git so that might start working at some point soon if it doesn't already:
https://github.com/mounaiban/captdriver/issues/11

I've had issues with some printers and scanners I've come across in the past where I've only been able to get them to work properly in Windows with the supplied drivers (ie a Brother laser printer that worked fine but wouldn't recognise a new toner cartridge until a page was printed in Windows, and a Canon scanner that has bad color balance and makes funny noises on some settings in Linux) so not all of these devices do work in Linux, as a last resort you could always sell them and get a Linux compatible replacement, although given the value of a used printer vs the shipping cost it might not be a great trade!

 

[SOLVED]: CANON for linux printing is like NVIDIA for linux 3d acceleration

Reply #4
WE`VE DONE IT! [me and my machine]
Code: [Select]
LBP6020 (Idle, Accepting Jobs, Shared)
Description:    LBP6020
Location:  
Driver: Canon LBP6020 CAPT (UK) (grayscale)
Connection: ccp://localhost:59687
Defaults:   job-sheets=none, none media=iso_a4_210x297mm sides=one-sided
Jobs

Search in LBP6020:

Completed jobs in order of completion or cancellationâ–˛
ID              Name           User        Size       Pages     State
LBP6020-17      Test Page   anonymous      1k        Unknown     completed at
                                                              Sun 26 Mar 2023 04:02:25 PM EEST

oh i am so thankful to you [Hash? 8) ]
neither Arch nor Gentoo wikis` articles on Canon CAPT mention lib32-libcups MUST be installed --they probably were writing that before drinking their morning coffee [in a great hurry, i mean] :o
but after i have read that at two different points on some older Ubuntu/Mint forums [1] i have realized you are right and it WAS THE PACKAGE I MISSED i have installed it [i already had lib32-glibc and lib32-popt].
and everything is working perfectly!!!  :)  ;)  :D  ;D  >:(  :(  :o  8)  ???  :P  :-[  :-X  :-\  :-*  :'(
About lib32, it says this on the wiki page:
"Install the capt-srcAUR package. It depends on 32-bit library packages and requires enabling multilib."
This is done as described here:
https://wiki.artixlinux.org/Main/Repositories
oh yes, i already knew it and i have enabled those repos just after [re-]installing my Artix system not so long ago [i have moved from KDE Plasma to XFCE].

There does seem to be ongoing work to provide support for 6xxx printers in captdriver-git so that might start working at some point soon if it doesn't already:
https://github.com/mounaiban/captdriver/issues/11
no i have checked that repo thoroughly --they don`t have a support for this particular model yet [issue #22 Support LBP6020].
they move in this direction but it is different from other models so it requires using Wireshark and working setup for reverse engineering it.
so it is a lot work to be done yet.

I've had issues with some printers and scanners I've come across in the past [...] not all of these devices do work in Linux, as a last resort you could always sell them and get a Linux compatible replacement, although given the value of a used printer vs the shipping cost it might not be a great trade!
i imagine in a short future they would drop support for CAPT/drivers in entire after going to IPP Everywhere --but my model is to be left out then...
i`ve found ippeveprinter utility in cups but i do not understand it :o  :'(
ippeveprinter - an ipp everywhere printer application for cups

now to print my Nicki Minaj photo[2][3]


EDIT: i have done it in this way
Code: [Select]
sov-x550cc:[root]:/home/sov-thade-tage# pacman -Syu --needed cups cups-openrc lib32-popt lib32-libcups lib32-glibc foomatic-db-engine foomatic-db foomatic-db-nonfree foomatic-db-ppds foomatic-db-nonfree-ppds gutenprint foomatic-db-gutenprint-ppds system-config-printer cups-pk-helper cups-pdf ghostscript

sov-x550cc:[sov-thade-tage]:~$ cd .builds
sov-x550cc:[sov-thade-tage]:~$ git clone https://aur.archlinux.org/capt-src.git
sov-x550cc:[sov-thade-tage]:~$ cd capt-src
sov-x550cc:[sov-thade-tage]:~$ makepkg -sic

sov-x550cc:[root]:/home/sov-thade-tage# usermod -aG lp sov-thade-tage
sov-x550cc:[root]:/home/sov-thade-tage# groupadd lpadmin
sov-x550cc:[root]:/home/sov-thade-tage# usermod -aG lpadmin sov-thade-tage
# then reboot, or relogin
# Connect the printer to your computer, turn it on and start CUPS, or restart it if it was already running
sov-x550cc:[root]:/home/sov-thade-tage# /etc/init.d/cupsd status
sov-x550cc:[root]:/home/sov-thade-tage# /etc/init.d/cupsd start
sov-x550cc:[root]:/home/sov-thade-tage# /usr/bin/lpadmin -p LBP6020 -m CNCUPSLBP6020CAPTK.ppd -v ccp://localhost:59687 -E
# check usb interface name
sov-x550cc:[root]:/home/sov-thade-tage# ls -l /dev/usb/
sov-x550cc:[root]:/home/sov-thade-tage# /usr/bin/ccpdadmin -p LBP6020 -o /dev/usb/lp0
sov-x550cc:[root]:/home/sov-thade-tage# /usr/bin/ccpd start
# to check it run this
sov-x550cc:[root]:/home/sov-thade-tage# /usr/bin/captstatusui -P LBP6020
# if needed you may add ccpd service to default level but it may cause 100% processor time consumption
# if started before cupsd or udevd --so you may need a workaround then [ https://wiki.gentoo.org/wiki/Canon_CAPT_Printer ]
# [if using OpenRC [possibly UNSAFE]]
sov-x550cc:[root]:/home/sov-thade-tage# rc-update add ccpd default



EDIT by SGOrava: remove the inappropriate picture.
REPLY by Sov Thade Tage: your "SMOKING JACKET" is inappropriate! are you a conservative right? my land has its own dress code! this picture was modest! stop censoring basing on your own religious/cultural views!!!
they had different issues and solutions so not linking here
sadly it is a B/W printer
then we would do my bass guitar build plans!!!
shean shi eth Ynnwn. Aisha