FedoraForum.org - Fedora Support Forums and Community
Results 1 to 11 of 11
  1. #1
    Join Date
    Aug 2016
    Location
    Iraq
    Posts
    770

    Canon Printer LBP6000/6018: few steps to solve it's problem, please help me!

    Hi.

    I already post a guide how to install this problematic printer:

    https://forums.fedoraforum.org/showthread.php?t=314533

    The problem is that, after installation the printer work very very well as long as you do not power off your PC & start it again. Just if you power laptop off then relaunched it, printer will not print more (will stay in "pending" state when you give "print" order !

    I discovered, by chance, a link deal with this problem & it seem thart it is old long standing problem. But I need your kind help to explain somethings.

    Let we see link 1st:

    https://askubuntu.com/questions/4737...u-14-04-64-bit

    from it I will take following 2 paragraphs that I feel that they solve the problem (one or both of them I'm not so sure):

    UPDATE 2 (SOLVED)

    I followed the procedure described in this answer. (Though I had downloaded the drivers directly from Canon site.)

    Now my printer prints again. Big sigh of relief.

    The next printer I will buy will not be a Canon. The hassle I had to go through was perhaps acceptable twenty years back. In this era, I will want my printer to simply plug-in and work.

    Observations

    When I submit the first print job in a login session, it waits. The queue says, Processing since ..... Then I need to kill the ccpd and captmoncnabc processes and start the ccpd daemon again.

    Wonder why I have to do it.

    Actually, I made a script for that.

    #!/bin/bash

    pkill -9 -x ccpd
    pkill -9 -x captmoncnabc
    /etc/init.d/ccpd start
    /etc/init.d/ccpd status
    I followed Masroor/bain instructions; after installing EVERY SINGLE (hidden) DEPENDENCY, I was able to get it to work, but ran into the "kill ccpd once every boot" issue.

    If you go here and look at the very end of the page, they say:

    Only one ccpd process running after system startup For normal operation two ccpd processes should be running in a system. The ccpd daemon depends on running cups daemon before forking the second process. You can use the following method to workaround the problem:

    Enable the cups init script (update-rc.d cups defaults).

    Instruct the ccpd init script to run after the cups init (update-rc.d ccpd defaults 99), or add "sleep 10 && /etc/init.d/ccpd start" in /etc/rc.local script.
    Also, from 1st paragraph, there is the following link:
    https://askubuntu.com/questions/4632.../464334#464334

    from it I take the following:

    And configure your system to start the Canon ccpd daemon automatically:

    # update-rc.d ccpd defaults
    &

    Problem: ccpd hangs

    Sometimes ccpd hangs and the queue just says "Processing since ..."

    Try a manual restart:

    pkill -9 -x ccpd
    pkill -9 -x captmoncnabc
    /etc/init.d/ccpd start
    /etc/init.d/ccpd status
    --------------------------------------

    From read me file associated with driver of this printer there is the following paragraph:

    Code:
    4. Auto startup setting procedure for ccpd daemon -------------------------------
    When setting the Status Monitor to start automatically, ccpd daemon must be set
    to start automatically as well.
    Set ccpd daemon to start automatically in the following procedure.
    
    <For a distribution with a /etc/rc.local file>
    Log in as 'root' and add the '/etc/init.d/ccpd start' command to the
    /etc/rc.local file.
    
    <For a distribution with a /sbin/insserv command>
    Log in as 'root', add the following comments to the third line in
    /etc/init.d/ccpd, and execute the 'insserv ccpd' command.
    
    ### BEGIN INIT INFO
    # Provides:          ccpd
    # Required-Start:    $local_fs $remote_fs $syslog $network $named
    # Should-Start:      $ALL
    # Required-Stop:     $syslog $remote_fs
    # Default-Start:     3 5
    # Default-Stop:      0 1 2 6
    # Description:       Start Canon Printer Daemon for CUPS
    ### END INIT INFO
    
    <For a distribution with a /usr/bin/systemctl command> 
    Log in as 'root', create a /etc/rc.local file in the editor, and add 
    the following. 
      #!/bin/sh
      /etc/init.d/ccpd start
    
    Next, execute the command below and update the version of the 
    /etc/rc.d/rc.local file.
      # chmod 777 /etc/rc.d/rc.local
    I will start to ask my question in the next post in this thread, one by one, till reach to goal, to avoid confusion.
    Last edited by User808; 18th September 2017 at 08:47 AM.
    Fedora 26 X64 bit Cinnamon edition on Lenovo ThinkPad e550 with Intel core i7 5500 CPU @ 2.40 GH X 2, RAM = 8 GB, HHD = 1 TB, Hybrid VGA (Intel Corporation HD Graphic 5500 + Radeon R7 M265 2GB)

  2. #2
    Join Date
    Aug 2016
    Location
    Iraq
    Posts
    770

    Re: Canon Printer LBP6000/6018: few steps to solve it's problem, please help me!

    Q1) regarding following paragrah:

    Code:
    4. Auto startup setting procedure for ccpd daemon -------------------------------
    When setting the Status Monitor to start automatically, ccpd daemon must be set
    to start automatically as well.
    Set ccpd daemon to start automatically in the following procedure.
    
    <For a distribution with a /etc/rc.local file>
    Log in as 'root' and add the '/etc/init.d/ccpd start' command to the
    /etc/rc.local file.
    
    <For a distribution with a /sbin/insserv command>
    Log in as 'root', add the following comments to the third line in
    /etc/init.d/ccpd, and execute the 'insserv ccpd' command.
    
    ### BEGIN INIT INFO
    # Provides:          ccpd
    # Required-Start:    $local_fs $remote_fs $syslog $network $named
    # Should-Start:      $ALL
    # Required-Stop:     $syslog $remote_fs
    # Default-Start:     3 5
    # Default-Stop:      0 1 2 6
    # Description:       Start Canon Printer Daemon for CUPS
    ### END INIT INFO
    
    <For a distribution with a /usr/bin/systemctl command> 
    Log in as 'root', create a /etc/rc.local file in the editor, and add 
    the following. 
      #!/bin/sh
      /etc/init.d/ccpd start
    
    Next, execute the command below and update the version of the 
    /etc/rc.d/rc.local file.
      # chmod 777 /etc/rc.d/rc.local
    A) does the part that I marked by BOLD RED is what I should used in Fedora Linux or not ? I suspected that it is the appropriate one for Fedora, so isn't it or not ?

    B) it say at it's end "and update the version of the /erc/rc.d/rc.local file"
    So, how can I perform this update ? What I should enter in terminal to achieve this update ?

    C) in Ubuntu links, it say at end of installation:

    And configure your system to start the Canon ccpd daemon automatically:

    # update-rc.d ccpd defaults
    Is this equivalent to what described in READ ME file about "method to autostart for ccpd daemon OR it is a completion to it OR it is something else ?

    D) is "/etc/rc.local" file already existing in Fedora 26 or I will create it ?

    E) if "/etc/rc.local" file is NOT found by default on Fedora 26, & I will create it from scratch, then does system upgrade, say from Fedora 26 to Fedora 28, will undo it or it will not effected by upgrade process ?

    Please, kindly, answer the above as A, B, C, D, E to avoid confusion.
    Fedora 26 X64 bit Cinnamon edition on Lenovo ThinkPad e550 with Intel core i7 5500 CPU @ 2.40 GH X 2, RAM = 8 GB, HHD = 1 TB, Hybrid VGA (Intel Corporation HD Graphic 5500 + Radeon R7 M265 2GB)

  3. #3
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    5,522

    Re: Canon Printer LBP6000/6018: few steps to solve it's problem, please help me!

    A - yes
    B - run the following command as it says to as a root user

    Code:
    chmod 777 /etc/rc.d/rc.local
    C - Don't know

    D - if it isn't there, make it

    E - it will not be removed if you upgrade

  4. #4
    Join Date
    Aug 2016
    Location
    Iraq
    Posts
    770

    Re: Canon Printer LBP6000/6018: few steps to solve it's problem, please help me!

    Quote Originally Posted by antikythera
    B - run the following command as it says to as a root user

    Code:
    chmod 777 /etc/rc.d/rc.local
    C - Don't know
    Regarding (A) so it was single step not 2 step as I imagined ! It will be better for Canon to re-write it as following:

    Next, update the version of the /erc/rc.d/rc.local file by running the following command:
    sudo chmod 777 /etc/rc.d/rc.local

    This will be much clearer !

    Regarding (C) we need someone to clarify this point because it seem to be vital to fix problem of this printer - see what it will come in next posts (not this post).
    Last edited by User808; 18th September 2017 at 01:07 PM. Reason: I delete question already I'm discovered it's answer (this mistake due to confusion)
    Fedora 26 X64 bit Cinnamon edition on Lenovo ThinkPad e550 with Intel core i7 5500 CPU @ 2.40 GH X 2, RAM = 8 GB, HHD = 1 TB, Hybrid VGA (Intel Corporation HD Graphic 5500 + Radeon R7 M265 2GB)

  5. #5
    Join Date
    Aug 2016
    Location
    Iraq
    Posts
    770

    Re: Canon Printer LBP6000/6018: few steps to solve it's problem, please help me!

    O.K let we continue:

    Q3) Regarding following paragraph:

    Code:
    <For a distribution with a /usr/bin/systemctl command> 
    Log in as 'root', create a /etc/rc.local file in the editor, and add 
    the following. 
      #!/bin/sh
      /etc/init.d/ccpd start
    A) I'm already tested:

    sudo /etc/init.d/ccpd start

    from terminal as independent command & it did not work. Instead, I have to run:

    sudo service ccpd start

    as an equivalent.

    So, what I put in RED BOLD I think - please correct to me - it is NOT appropriate to Fedora & should be replaced by:

    service ccpd start

    Is what I concluded above is correct or not ?

    B) if "etc/init.d/ccpd start" should be replaced by "service ccpd start" in above script, do it need sudo before it within script or not ? I mean does script should be:

    Code:
    #!/bin/sh
    service ccpd start
    or it should be:

    Code:
    #!/bin/sh
    sudo service ccpd start
    I'm not familiar with such script located in /etc location that deal with autostart of services (is it safe & O.K to put sudo within such script or no need to it at all). Please your kind help.
    Last edited by User808; 18th September 2017 at 02:00 PM.
    Fedora 26 X64 bit Cinnamon edition on Lenovo ThinkPad e550 with Intel core i7 5500 CPU @ 2.40 GH X 2, RAM = 8 GB, HHD = 1 TB, Hybrid VGA (Intel Corporation HD Graphic 5500 + Radeon R7 M265 2GB)

  6. #6
    Join Date
    Aug 2016
    Location
    Iraq
    Posts
    770

    Re: Canon Printer LBP6000/6018: few steps to solve it's problem, please help me!

    Quote Originally Posted by antikythera
    C - Don't know
    Hi. I discover the following:

    "update-rc.d" is a command line utility FOR DEBIAN & not available for Redhat distro including Fedora. But for Redhat distros. there is a corresponding command which is:

    chkconfig

    I run "chkconfig --help" & got the following:
    Code:
    chkconfig --help
    chkconfig version 1.10 - Copyright (C) 1997-2000 Red Hat, Inc.
    This may be freely redistributed under the terms of the GNU Public License.
    
    usage:   chkconfig [--list] [--type <type>] [name]
             chkconfig --add <name>
             chkconfig --del <name>
             chkconfig --override <name>
             chkconfig [--level <levels>] [--type <type>] <name> <on|off|reset|resetpriorities>
    To solve & fix problem of Canon printer (the problem of kill ccpd once every boot: ccpd does not work - only one ccpd process running after system startup). That is to say: For normal operation two ccpd processes should be running in a system. The ccpd daemon depends on running cups daemon before forking the second process.

    This mean we need to make cups service run 1st (before ccpd service) then ccpd service run after that. To achieve this on Debian we have to do the following:

    a) Enable the cups init script:
    sudo update-rc.d cups defaults
    b) Instruct the ccpd init script to run after the cups init:
    sudo update-rc.d ccpd defaults 99
    So, how can I use "chkconfig" command to enable both cups & ccpd services autostart at boot BUT with following priority: cups service run 1st, then after run ccpd sevice ?

    I suspect that the following command - please correct to me if wrong - could be equivalent on Fedora:

    chkconfig [--level <levels>] [--type <type>] <name> <on|off|reset|resetpriorities>
    Or, we can ask in the following way:
    "chkconfig --add cups" on Fedora is = to "update-rc.d cups default" on Debian

    so, what is the equivalent for "update.rc.d ccpd defaults 99" ?

    But how can put it exactly I can not get it ! Please any further help.
    Last edited by User808; 19th September 2017 at 08:25 AM.
    Fedora 26 X64 bit Cinnamon edition on Lenovo ThinkPad e550 with Intel core i7 5500 CPU @ 2.40 GH X 2, RAM = 8 GB, HHD = 1 TB, Hybrid VGA (Intel Corporation HD Graphic 5500 + Radeon R7 M265 2GB)

  7. #7
    Join Date
    Aug 2016
    Location
    Iraq
    Posts
    770

    Re: Canon Printer LBP6000/6018: few steps to solve it's problem, please help me!

    Hi. New progression with partial failure.

    1) chief problem is that when printer unplug then plugin (or reboot PC while printer still connecting to laptop & powered ON) a second printer will appear !! 1st printer that appear just after complete installation called: LBP6000 It is the healthy printer. While 2nd printer is LBP6000-LBP6018 Last one is unhealthy by the fact that selecting it (LBP6000-LBP6018) will lead to failure of printing !

    Even if I delete 2nd printer (LBP6000-LBP6018) it will re-added when printer unplug then replugin (or reboot PC while printer still connecting to laptop & powered ON)

    User need NOT to use 2nd printer (LBP6000-LBP6018) at all. If user use it by chance then need to delete 2nd printer then reboot PC & replugin printer where 2nd printer re-appear. Just not use 2nd printer. Only use 1st printer.

    2) 2nd problem is that I can not make ccpd service run automatically at startup ! I tried the following:

    A) I tried following solution:

    <For a distribution with a /usr/bin/systemctl command>
    Log in as 'root', create a /etc/rc.local file in the editor, and add
    the following.
    #!/bin/sh
    /etc/init.d/ccpd start

    Next, execute the command below and update the version of the
    /etc/rc.d/rc.local file.
    # chmod 777 /etc/rc.d/rc.local
    I got failure when I used chmod command. I received following error: /etc/rc.d/rc.local file NOT EXISTING

    Indeed there must be a wrong in Canon documentation. Look for 2 lines:

    /etc/init.d/ccpd start

    # chmod 777 /etc/rc.d/rc.local

    Look for RED BOLD. So, where error: in 1st line so that it should be /etc/rc.d/rc.local or error in 2nd line that should be "chmod 777 /etc/rc.local" ??

    From my side I used "chmod 777 /etc/rc.local" & command run without error but ccpd service NEVER STARTED AT BOOT !!

    B) I tried:

    sudo chkconfig --add ccpd

    but I received message said "ccpd service not support chkconfig" !!

    Without automated ccpd service to start at boot, user need to start it manually BEFORE printing by:

    sudo service ccpd start

    then print !

    With above limitations there are 2 cases causes failure of print & COMPLETE BLOCK OF PRINTER NOT REMOVED BY REBOOT SYSTEM:

    1) 1st case: if user use 2nd printer (LBP6000-LBP6018)

    2) 2nd case: if user "print" before start ccpd service by "sudo service ccpd start".

    In both cases, treatment is by deleting 2nd printer then reboot system !!

    ----------------------------
    So, we need to solution:

    1) how can we prevent generation of 2nd printer ?

    2) how can we make ccpd service automatically started at boot ?
    Fedora 26 X64 bit Cinnamon edition on Lenovo ThinkPad e550 with Intel core i7 5500 CPU @ 2.40 GH X 2, RAM = 8 GB, HHD = 1 TB, Hybrid VGA (Intel Corporation HD Graphic 5500 + Radeon R7 M265 2GB)

  8. #8
    Join Date
    Aug 2016
    Location
    Iraq
    Posts
    770

    Re: Canon Printer LBP6000/6018: few steps to solve it's problem, please help me!

    Hi. Isuue solved finally after 2 years struggle !
    Look for this post:

    https://www.forums.fedoraforum.org/s...d.php?t=315636

    Solution & fix is by enabling ccpd diamon at system boot automatically using systemV as following:

    Create new file:
    sudo vi /etc/rc.d/rc.local

    Then add to this new file the following:
    #!/bin/sh
    /etc/init.d/ccpd start

    Then type following command:
    sudo chmod 777 /etc/rc.d/rc.local

    And that is all !!

    Error was from Canon company which wrote wrongly in official document of it's printer: create new file: /etc/rc.local (while correct is /etc/rc.d/rc.local).

    I will update guide of how to install Canon printer later on.

    Best.
    Fedora 26 X64 bit Cinnamon edition on Lenovo ThinkPad e550 with Intel core i7 5500 CPU @ 2.40 GH X 2, RAM = 8 GB, HHD = 1 TB, Hybrid VGA (Intel Corporation HD Graphic 5500 + Radeon R7 M265 2GB)

  9. #9
    Join Date
    Jun 2005
    Location
    Montreal, Que, Canada
    Posts
    4,720

    Re: Canon Printer LBP6000/6018: few steps to solve it's problem, please help me!

    Quote Originally Posted by User808
    Hi. Isuue solved finally after 2 years struggle !
    Look for this post:

    https://www.forums.fedoraforum.org/s...d.php?t=315636

    Solution & fix is by enabling ccpd diamon at system boot automatically using systemV as following:

    Create new file:
    sudo vi /etc/rc.d/rc.local

    Then add to this new file the following:
    #!/bin/sh
    /etc/init.d/ccpd start

    Then type following command:
    sudo chmod 777 /etc/rc.d/rc.local

    And that is all !!

    Error was from Canon company which wrote wrongly in official document of it's printer: create new file: /etc/rc.local (while correct is /etc/rc.d/rc.local).

    I will update guide of how to install Canon printer later on.

    Best.
    Its a Fedora/RH practice, when there is the possibilility to have more than just rc.local, within /etc, to create a type d directory (example rc.d, yum.repos.d) etc. Cannon may be correct, except for RedHat/Centos/Fedora.
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840

  10. #10
    Join Date
    Aug 2016
    Location
    Iraq
    Posts
    770

    Re: Canon Printer LBP6000/6018: few steps to solve it's problem, please help me!

    Quote Originally Posted by lsatenstein
    Its a Fedora/RH practice, when there is the possibilility to have more than just rc.local, within /etc, to create a type d directory (example rc.d, yum.repos.d) etc. Cannon may be correct, except for RedHat/Centos/Fedora.
    Please look to post 13 & post 14 in this thread:

    https://www.forums.fedoraforum.org/s...66#post1795566
    Last edited by User808; 4th October 2017 at 04:24 PM.
    Fedora 26 X64 bit Cinnamon edition on Lenovo ThinkPad e550 with Intel core i7 5500 CPU @ 2.40 GH X 2, RAM = 8 GB, HHD = 1 TB, Hybrid VGA (Intel Corporation HD Graphic 5500 + Radeon R7 M265 2GB)

  11. #11
    Join Date
    Aug 2016
    Location
    Iraq
    Posts
    770

    Re: Canon Printer LBP6000/6018: few steps to solve it's problem, please help me!

    Warning ! Warning !

    Please do not use "etc/rc.d/rc.local" method because it can lead your system, suddenly & unexpectedly, to freeze during booting process (your system booting will freeze & no login GUI screen, & thence, no DE will launched). This is due to bug in Fedora Linux distro. I was a victim ...... Look for this link:

    https://www.forums.fedoraforum.org/s...d.php?t=315706

    There is other way (safe & has no such fetal bug) to enable automatic start of ccpd daemon at system boot, using chkconfig (AFTER adding support for chkconfig to ccpd script).

    I update guide of installation of this printer. Please review it for details of how to add chkconfig support to ccpd daemon:
    https://www.forums.fedoraforum.org/s...77#post1795577
    Last edited by User808; 7th October 2017 at 06:27 PM.
    Fedora 26 X64 bit Cinnamon edition on Lenovo ThinkPad e550 with Intel core i7 5500 CPU @ 2.40 GH X 2, RAM = 8 GB, HHD = 1 TB, Hybrid VGA (Intel Corporation HD Graphic 5500 + Radeon R7 M265 2GB)

Similar Threads

  1. Installation of Canon Printer LBP6000 (& LBP6018)
    By User808 in forum Guides & Solutions (Not For Questions)
    Replies: 2
    Last Post: 4th October 2017, 07:54 PM
  2. Canon printer LBP6000 brocken after kernel upgrade !
    By User808 in forum Using Fedora
    Replies: 7
    Last Post: 16th June 2017, 12:04 PM
  3. [SOLVED] New official driver for Canon LBP6000/LBP6018, help me please !
    By User808 in forum Hardware & Laptops
    Replies: 4
    Last Post: 13th June 2017, 06:15 PM
  4. Replies: 5
    Last Post: 19th December 2011, 12:42 PM
  5. Canon i-Sensys LBP6000
    By LukashX in forum Hardware & Laptops
    Replies: 2
    Last Post: 3rd May 2011, 08:45 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •