You are not logged in.

#1 2011-10-23 13:39:27

LaMorte
Member
Registered: 2011-10-22
Posts: 7

[SOLVED] Canon Pixma MG5140 not working

I have done some major searching and have attempted the following steps to get the printer working:

Uninstalled Cups
Installed cups-usblp 1.5.0-1
Installed gutenprint 5.2.7-2

Allow Cups to find the printer (which it does)
Selected Canon as manufacturer
Selected Canon PIXMA MG5100 Series as driver
Add Printer

Now the printer is listed but print jobs never even make it into the print queue, never mind to the printer itself.  Please help!

Last edited by LaMorte (2011-10-25 12:32:47)

Offline

#2 2011-10-23 14:01:02

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: [SOLVED] Canon Pixma MG5140 not working

I installed a similar printer in Mageia.  See if the following is any help.
https://forums.mageia.org/en/viewtopic.php?p=6488#p6488

I plan to install this printer in arch soon.  I'll see how it goes.

Offline

#3 2011-10-23 22:41:24

LaMorte
Member
Registered: 2011-10-22
Posts: 7

Re: [SOLVED] Canon Pixma MG5140 not working

I extracted the Canon supplied RPM and copied the files into the relevant folders.
After restart both CUPS and the GNOME printer manager found the printer, selected the correct drivers and installed without a problem, but I'm still not getting printer output.

Offline

#4 2011-10-23 23:37:54

LaMorte
Member
Registered: 2011-10-22
Posts: 7

Re: [SOLVED] Canon Pixma MG5140 not working

Now I've uninstalled CUPS-USBLP and reinstalled the standard CUPS (latest available package).  Now the printer does not automatically detect, but sending jobs to the queue is no longer instant.  Still not getting printer output.

Offline

#5 2011-10-24 00:09:47

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: [SOLVED] Canon Pixma MG5140 not working

Just a guess, but likely have to edit a couple of the files in the extracted rpms as per what is mentioned for a Brother printer.

https://wiki.archlinux.org/index.php/Br … Arch_Linux

Offline

#6 2011-10-24 05:49:33

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: [SOLVED] Canon Pixma MG5140 not working

David Batson wrote:

Just a guess, but likely have to edit a couple of the files in the extracted rpms as per what is mentioned for a Brother printer.

https://wiki.archlinux.org/index.php/Br … Arch_Linux

No, that isn't the problem here.

Got my Canon MG8120 working in arch.

Using rpmextract I extracted the file:
cnijfilter-mg8100series-3.40-1-rpm
And within that the x86_64.rpm files below [use the i386 rpms for a 32-bit system]
/packages/cnijfilter-common-3.40-1.i386.rpm
/packages/cnijfilter-common-3.40-1.x86_64.rpm
/packages/cnijfilter-mg8100series-3.40-1.i386.rpm
/packages/cnijfilter-mg8100series-3.40-1.x86_64.rpm
EDIT2: Edited typo

Then copied those files to /usr, i.e...
# cp -r /home//home/~/Downloads/cnijfilter-mg8100series-3.40-1-rpm/packages/usr/* /usr

EDIT (line added): Make sure all the files in /usr/lib64/cups/backend is in /usr/lib/cups/backend.  Copy over if necessary.

Next I changed directories to /usr/lib, and listed the files that start with libcn.
[root@myhost ~]# cd /usr/lib
[root@myhost lib]# ls libcn*

Now I created symbolic links for all those files.
[root@myhost lib]# ln -s libcnnet.so.1.2.0 libcnnet.so
[root@myhost lib]# ln -s libcnbpcmcm377.so.8.0.1 libcnbpcmcm377.so
[root@myhost lib]# ln -s libcnbpcnclapi377.so.3.5.0 libcnbpcnclapi377.so
[root@myhost lib]# ln -s libcnbpcnclbjcmd377.so.3.3.0 libcnbpcnclbjcmd377.so
[root@myhost lib]# ln -s libcnbpcnclui377.so.3.6.0 libcnbpcnclui377.so
[root@myhost lib]# ln -s libcnbpo377.so.1.0.1 libcnbpo377.so
[root@myhost lib]# ln -s libcnbpess377.so.3.3.3 libcnbpess377.so

Restart CUPS: # /etc/rc.d/cupsd restart

The command from console # /usr/lib/cups/backend/cnijnet    should display the URI of your printer.
Mine is: cnijnet:/00-1E-8F-A6-5A-72

Open cups in your browser: http://localhost:631/ and add your printer.

As far as I remember, that's everything.  HTH

EDIT:  See LaMorte's additional requirement below regarding libpng12.so.0.

EDIT:  Install the avahi-daemon and have it running for Canon printer discovery (cnijnet),.

Last edited by David Batson (2012-06-14 02:44:53)

Offline

#7 2011-10-24 08:28:02

LaMorte
Member
Registered: 2011-10-22
Posts: 7

Re: [SOLVED] Canon Pixma MG5140 not working

Now that sounds perfect.  I'll try it as soon as I get back to my ARCH Linux machine and I'll report back.

Offline

#8 2011-10-25 12:34:49

LaMorte
Member
Registered: 2011-10-22
Posts: 7

Re: [SOLVED] Canon Pixma MG5140 not working

Solution (beyond doing all the above):

The canon printer software is linked to libpng12.so.0 so I created a symbolic link to libpng.so and the printer is now working.

Thanks for all the help all.

(Now to get the scanner working tongue)

Last edited by LaMorte (2011-10-25 12:35:05)

Offline

#9 2011-10-25 13:52:38

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: [SOLVED] Canon Pixma MG5140 not working

I already had a link from libpng.so to libpng14.so.14, but canon wouldn't accept that.  I don't know where you got libpng12.so.0 from.  I fortunately had libpng12.so.0.44.0 on my Mageia and Fedora installations.

I copied the one from mageia over first and created the symbolic link, but later got a complaint about wrong ELF class (32 bit).

Removed those files and copied libpng12.so.0.46.0 from Fedora's /usr/lib64/ to arch's /usr/lib64/ and from Fedora's /usr/lib/ to arch's /usr/lib/ and created the symbolic links in both directories to libpng.so.

Finally the printer is working!  Thanks for the tip LaMorte!

EDIT: Corrected typo.

EDIT2:  Found out later that libpng12 and lib32-libpng12 are available from AUR
libpng12 1.2.46-2
http://aur.archlinux.org/packages.php?ID=33795
lib32-libpng12 1.2.46-2
https://aur.archlinux.org/packages.php?ID=34264

Last edited by David Batson (2011-12-15 23:13:40)

Offline

Board footer

Powered by FluxBB