Canon/CUPS problem

this post Canon LBP 5000 - Gentoo Linux Wiki

has several interesting points: how to make the canon drivers work on a 64 bit system:
how one should use ghostscript-gpl instead of ghostscript-esp;
details on setup

hmmmmmmm; still reading on this;

the steps to install are:

  1. probably best to go for 32bit install
  2. download rpms from Canon site; install;
  3. stop CUPS:

$ sudo /etc/init.d/cupsys stop

4.check it is stopped:

$ sudo ps ax | grep cupsd

  1. if it says

… /usr/sbin/cupsd
it has NOT stopped

  1. if it says

grep cupsd
it HAS stopped

  1. if it has NOT stopped, stop it with

$ sudo killall cupsd

8.Make fifo0 accessable to everyone:

$ sudo chmod 777 /var/ccpd/fifo0

9.Change the owner of fifo0 into root (failing to do so gives you an error: Unable to copy PPD file in step 11):

$ sudo chown root /var/ccpd/fifo0

10.start CUPS again:

$ sudo /etc/init.d/cupsys start

11.Register the printer driver with the print spooler eg for 3300"

$ sudo /usr/sbin/lpadmin -p LBP3300 -P CNCUPSLBP3300CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E

  1. Register the printer with ccpd daemon

$ sudo /usr/sbin/ccpdadmin -p LBP3300 -o /dev/usblp0

  1. it should work now …
    this is from an Ubuntu forum, canon lbp-3000 - Page 2 - Ubuntu Forums

but the very important step seems to be step 8:

Make fifo0 accessable to everyone
and step 9:
Change the owner of fifo0 into root

Hi, many, many thanks for your assistance. I really appreciate it. Anyway, to answer your questions:

Question 1:

cd /var
and then at the prompt after entering that

ls
and hit enter, what do you get?

drwxr-xr-x 9 root root 4.0K 2008-09-20 11:12 adm
drwxr-xr-x 19 root root 4.0K 2008-09-20 13:09 cache
drwxr-xr-x 2 lp lp 4.0K 2008-09-20 13:20 captmon
drwxr-xr-x 2 root root 4.0K 2008-09-20 13:20 ccpd
drwxrwxr-x 2 games games 4.0K 2008-06-07 00:20 games
drwxr-xr-x 34 root root 4.0K 2008-09-20 11:11 lib
drwxrwxr-t 5 root uucp 4.0K 2008-09-21 20:21 lock
drwxr-xr-x 10 root root 4.0K 2008-09-21 20:20 log
lrwxrwxrwx 1 root root 10 2008-09-20 10:53 mail -> spool/mail
drwxr-xr-x 2 root root 4.0K 2008-06-07 00:20 opt
drwxr-xr-x 19 root root 4.0K 2008-09-21 20:22 run
drwxr-xr-x 12 root root 4.0K 2008-09-20 10:57 spool
drwxrwxrwt 6 root root 4.0K 2008-09-21 20:22 tmp
drwxr-xr-x 3 root root 4.0K 2008-06-10 14:24 X11R6
drwxr-xr-x 3 root root 4.0K 2008-06-10 14:54 yp

Question 2

and if you do get ccpd amongst others, and you go
cd /ccpd
and hit enter
ls

As you can see, CCPD exists:
the rights of fifo0 are different because I modified them with chmod 777 /var/ccpd/fifo0

prwxrwxrwx 1 root lp 0 2008-09-20 13:20 fifo0
prw------- 1 lp lp 0 2008-09-20 13:20 fifo1
prw------- 1 lp lp 0 2008-09-20 13:20 fifo2
prw------- 1 lp lp 0 2008-09-20 13:20 fifo3
prw------- 1 lp lp 0 2008-09-20 13:20 fifo4
prw------- 1 lp lp 0 2008-09-20 13:20 fifo5
prw------- 1 lp lp 0 2008-09-20 13:20 fifo6
prw------- 1 lp lp 0 2008-09-20 13:20 fifo7

Question 3

and what does http://localhost:631/ in the browser give you, if you click “manager printer”?

LBP3300 (Default Printer) “Filter “pstocapt2” for printer “LBP3300” not available: No such file or directory”
Description: LBP3300
Location:
Printer Driver: Canon LBP3300 CAPT ver.1.5
Printer State: stopped, rejecting jobs, published.
Device URI: file:/dev/null

Thanks for all your help and patience.

Hmm, this is a bit advanced for me but I’ll take a bash at it over the next few days.

Ah, I followed these precise steps a thousand times. On the 8.04.1 Ubuntu (32 bit) it works perfectly. On OpenSuse 11.0 I get that bad device URI.

whilst checking out drivers for another printer, I saw this website today; DriversCollection.com

and remembering the Canon LBP problems, checked out what it had; Canon LBP3300 drivers

and when you talked of a different distro; I saw that they said this LBP driver installed on Red Hat enterprise;

that reminded me of the guy who offered the 64-bit Fedora drivers for the Canon; Fedora, as you may know, is the community spinoff of Red Hat; and like Suse, runs on rpms;

would it be worth giving the drivers this guy wrote a spin, to see if they get anywhere; they are mentioned in an earlier post: just a suggestion;

he posted here: David Latham: Canon LBP 3300 Driver for Fedora 9 x86_64

and says to download from here: forum.thelinuxcdstore.com • View topic - Canon LBP-3300

Fedora uses yum as install command; I believe #yast2 is the Suse equivalent

i just want to told you about some trick how printer canon LBP2900 is perfectly work for me… it works on opensuse 11 with both 1.6 and 1.7 drivers

first of all it should be installed exectly like is writen in the docs that goes with drivers…

the main problem for me was that i could not understand some things…
general:
when printer is switch of the driver (or what ccpd is) ccpd stop working.
i installing printer when printer was off and turn it on after installation of software. of course it does not working.
when you turn printer on it could appear window with something about new printer found… you must ignore this every time (even if i configured it with yast, gnome and cups it stil appears after restarting of printer)

then it needed stopping of ccpd

sudo /etc/init.d/ccpd stop# maybe it is not really important but just for shure

after that you should restart cups
sudo /etc/init.d/cups restart

then start ccpd

sudo /etc/init.d/ccpd start

that’s all

you could be know is everithing ok with your printer for shure
you could start gui monitor
sudo captstatusui -P <your printer name>&

i did

sudo captstatusui -P LBP2900&

it is important that captstatusui was run by super user…

i hope it will be helpfull for someone

i am crosspost this quote from Canon CAPT goes OSS? - openSUSE Forums
this thread…
so i found one more small problem… when i start(or restart) my opensuse and printers was turned on… nothing helps from above quote…
what you need, it is turn off you printer and turn it on then you should restart cups and run ccpd…
all works

thanks for this didencool; if you become the resident canon LBP guru; we could have done with your with jodebono; sadly, joedebono couldn’t get his printer going I think; and he went off to Ubuntu; we may see him back

thanks pdc_2 :slight_smile:
i do my best… :slight_smile:
so one more solve

sometimes my system start freezes
i run top and see where the problem is and see 3-4 processes of captmon2 each is 21% of cpu usage
so it looks like this


~>top

top - 14:00:23 up  4:37,  4 users,  load average: 5.66, 5.65, 5.71
Tasks: 127 total,   4 running, 123 sleeping,   0 stopped,   0 zombie
Cpu(s): 39.2%us, 59.1%sy,  0.3%ni,  0.0%id,  0.0%wa,  0.0%hi,  1.3%si,  0.0%st
Mem:   2075236k total,  2016736k used,    58500k free,    10324k buffers
Swap:  2120540k total,     3060k used,  2117480k free,   455648k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                          
 3841 root      20   0 12000 1664 1088 S 20.3  0.1  54:24.00 captmon2                                                         
 8253 root      20   0  3548 1140  924 R 20.3  0.1  53:33.51 captmon2                                                         
 8169 root      20   0  3548 1140  924 S 19.9  0.1  54:22.49 captmon2                                                         
11078 root      20   0  3548 1144  924 R 19.9  0.1  35:04.53 captmon2                                                         
 2500 root      20   0 70528  46m  15m R  4.3  2.3   3:08.33 X                                                                
<skipped>

normally i restart computer… because no killall kill X restart and runlevel 3 is not help with this

i google some and found solution at debian

killall -9 captmon

there is script that afaiu make working with LBP printer like in windows…
here is it
Debian User Forums :: View topic - Canon LBP2900B on Etch amd64 - Printer Error
i dig it myself and tell later how it work for me…

Hello all
I want pick up this theme once more time sorry if this incorrect place. I use opensuse 11.2 RC2 now

but for x86-64

maybe somebody have any expierience in canon LBP printers in x86-64 system
one more time I carefully install latest drivers that I found


~> rpm -qa |grep cndrv
cndrvcups-capt-1.80-1.i386
cndrvcups-common-1.80-1.i386

the problem is in stage when I try to register the printer with command


~> sudo /usr/sbin/lpadmin -p LBP2900 -P CNCUPSLBP2900CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E

i have a problem that was described here
Canon/CUPS problem - openSUSE Forums


lpadmin: Bad device-uri "ccp:/var/ccpd/fifo0"!

I have made chmod and chown to root:root 777


~> ls -l /var/ccpd/fifo0
prwxrwxrwx 1 root root 0 2009-10-30 11:05 /var/ccpd/fifo0


~> ls -l /usr/share/cups/model/CNCUPSLBP2900CAPTK.ppd
-rw-r--r-- 1 root root 12650 2008-10-29 02:36 /usr/share/cups/model/CNCUPSLBP2900CAPTK.ppd

just to be sure


~> sudo chmod 777 -v /usr/share/cups/model/CNCUPSLBP2900CAPTK.ppd
mode of `/usr/share/cups/model/CNCUPSLBP2900CAPTK.ppd' retained as 0777 (rwxrwxrwx)

conclusion: this does not help


sudo /usr/sbin/lpadmin -p MYLBP2900 -P /usr/share/cups/model/CNCUPSLBP2900CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E
lpadmin: Bad device-uri "ccp:/var/ccpd/fifo0"!

it seems to me that problem with ccpd
it does not starts…
some log from /var/log/cups/error_log


~>cat /var/log/cups/error_log
<skipped>
I [30/Oct/2009:14:39:34 +0200] Loaded configuration file "/etc/cups/cupsd.conf"
I [30/Oct/2009:14:39:34 +0200] Using default TempDir of /var/spool/cups/tmp...
I [30/Oct/2009:14:39:34 +0200] Configured for up to 100 clients.
I [30/Oct/2009:14:39:34 +0200] Allowing up to 100 client connections per host.
I [30/Oct/2009:14:39:34 +0200] Full reload is required.
I [30/Oct/2009:14:39:34 +0200] Loaded MIME database from '/etc/cups': 37 types, 41 filters...
E [30/Oct/2009:14:39:34 +0200] Filter "pstocapt" for printer "LBP2900" not available: No such file or directory
E [30/Oct/2009:14:39:34 +0200] Filter "pstocapt" for printer "MYLBP2900" not available: No such file or directory
I [30/Oct/2009:14:39:34 +0200] Loading job cache file "/etc/cups/yes/job.cache"...
I [30/Oct/2009:14:39:34 +0200] Full reload complete.
I [30/Oct/2009:14:39:34 +0200] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [30/Oct/2009:14:39:34 +0200] Listening to ::1:631 on fd 4...
I [30/Oct/2009:14:39:34 +0200] Listening to 127.0.0.1:631 on fd 7...
I [30/Oct/2009:14:39:34 +0200] Listening to /var/run/cups/cups.sock on fd 8...
I [30/Oct/2009:14:39:34 +0200] Resuming new connection processing...
E [30/Oct/2009:14:39:57 +0200] CUPS-Add-Modify-Printer: Unauthorized
E [30/Oct/2009:14:39:57 +0200] Filter "pstocapt" for printer "MYLBP2900" not available: No such file or directory
I [30/Oct/2009:14:39:57 +0200] Saving printers.conf...
I [30/Oct/2009:14:39:57 +0200] Printer "MYLBP2900" modified by "root".
E [30/Oct/2009:14:44:04 +0200] CUPS-Add-Modify-Printer: Unauthorized
E [30/Oct/2009:14:44:04 +0200] Filter "pstocapt" for printer "MYLBP2900" not available: No such file or directory
I [30/Oct/2009:14:44:04 +0200] Saving printers.conf...
I [30/Oct/2009:14:44:04 +0200] Printer "MYLBP2900" modified by "root".

I am frustrated with this…

Filter “pstocapt” for printer “MYLBP2900” not available: No such file or

looks like that is a problem
found some bug
https://bugzilla.novell.com/show_bug.cgi?id=218975
I am try to look on closely
tnx sory for a looooong post