Scanner drivers

I need help finding and installing the scanner drivers for a Canon MG2220 printer.

I found drivers for MAC and Windoze, but no Linux.

Thanks.

Andy, they’re available from the same Canon site that you got the printer drivers from.

PIXMA MG2240

Download the scangearmp-source-2.00-1.tar.gz tarball. Extract the archive, and navigate to the RPM directory. Then install the ‘scangearmp-mg2200series-2.00-1.x86_64.rpm’

Once done, you should be able to scan with ‘scangearmp’ (the proprietary Canon scanning tool)

Edit: Didn’t you already mention that you had the scanner working?

Ah, here’s the thread I was talking about

https://forums.opensuse.org/english/get-technical-help-here/hardware/490444-scanning-canon-multi-function-printer-large-file-size.html

That was a different Andy.

I will try scanning first and see what happens.

Just remembered.

I don’t think I have a GUI scanning program installed.

Will do some searching.

Andy

Found this, following the yellow brick road.

Linux Mint Forums • View topic - Will this printer work with LMDE? (Canon pixma MG2220)

There are two RPMs you need to install

scangearmp-mg2200series-2.00-1.x86_64

scangearmp-common-2.00-1.x86_64


The first file contains the drivers for your scanner. It is the 'scangearmp-common' that supplies the 'scangearmp' application (and some libraries).

FWIW, I have these RPMs installed (although I can't actually use the scanner application as I don't own a Canon scanner).

I tried to install the scanner drivers.

It gives me a message saying “It had no access.”

Now it installed with no errors. Will see what happens.

Andy

It says no scanner detected.

Scanner was on and connected and then disconnected and reconnected.

Since it’s a USB device, I believe a reboot is normally not necessary.

Andy

Yes, rebooting is not necessary and won’t help at all.

Can you try running scangearmp as root like this?

kdesu scangearmp

Enter your root passworde when prompted, then see if the application detects your scanner. If it does, then you have a permissions issue (not hard to sort out). If it doesn’t, then we’ll have to look at whether the usblp kernel module may be causing an issue (by claiming the interface first).

It’s option number 2.

Andy

So, maybe try unplugging, then plugging the USB cable in again.

1.Can you capture the dmesg output after this has been done?

dmesg|tail
  1. Is the usblp module loaded? Check with
lsmod|grep usblp

If nothing is returned, skip to step 3. Otherwise remove it with

modprobe -r usblp
  1. What is reported (if anything) by the SANE utility?
sane-find-scanner

Please post back with the requested info.

…and before we go too far down the path on a wild goose chase, can you please confirm that both RPMs are installed?

rpm -qa|grep scangear
 1355.843513] iwlwifi 0000:02:00.0: EVT_LOGT:0279937802:0x02d6001c:0206
 1355.843523] iwlwifi 0000:02:00.0: EVT_LOGT:0279937802:0x000a0010:0204
 1355.843533] iwlwifi 0000:02:00.0: EVT_LOGT:0279937807:0x000a0010:0219
 1355.843543] iwlwifi 0000:02:00.0: EVT_LOGT:0279937808:0x01400051:0211
 1355.843553] iwlwifi 0000:02:00.0: EVT_LOGT:0279937812:0x00000000:0212
 1355.843564] iwlwifi 0000:02:00.0: EVT_LOGT:0279937813:0x000a0010:0213
 1355.843574] iwlwifi 0000:02:00.0: EVT_LOGT:0279937823:0x00000000:0125
 1355.846292] ieee80211 phy0: Hardware restart was requested
 1355.846342] iwlwifi 0000:02:00.0: L1 Disabled; Enabling L0S
 1355.849259] iwlwifi 0000:02:00.0: Radio type=0x1-0x2-0x0
linux-wzav:~ # lsmod|grep usblp 
linux-wzav:~ # 

# sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x08ff, product=0x2810 [Fingerprint Sensor]) at libusb:004:002
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.
linux-wzav:~ # rpm -qa|grep scangear
scangearmp-mg2200series-2.00-1.x86_64
scangearmp-common-2.00-1.x86_64

It interesting that some of those commands can be directed to a text file via > while others can not.

Super User Mode is handy as a pocket.

Andy

The dmesg output doesn’t include any expected USB-related messages. (Was you printer/scanner turned on?) I would expected something more like this

[11014.461050] usb 5-1: new full-speed USB device number 3 using uhci_hcd                                                                                             
[11014.592116] usb 5-1: New USB device found, idVendor=03f0, idProduct=0105                                                                                           
[11014.592125] usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 

I still wonder if usbpl or usb-storage modules are claiming the interface, but AFAIU libsane now ignores this for communications purposes. It is more difficult to diagnose because much of Canon’s scanner backends and the frontend (GUI app) are proprietary, so I’m not sure how much (if anything) it depends on libsane.

You could also try

scanimage -L

to see if it returns anything useful.

The scangearmp-common package includes a udev rule file for handling various Canon MG models. It looks like this

# 80-canon_mfp.rules

ACTION!="add", GOTO="canon_mfp_end"
SUBSYSTEM=="usb_device", GOTO="canon_mfp_start"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="canon_mfp_start"
GOTO="canon_mfp_end"


#MG2200 series
ATTR{idVendor}=="04a9", ATTR{idProduct}=="1760", MODE="666"

It might be possible to create a modified udev rule that may help with detection, but that is just a guess on my part (and assumes it is using libsane which may not be the case):

# Canon PIXMA MG2200 series
ATTR{idVendor}=="04a9", ATTR{idProduct}=="1760", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"

This would get saved (using an editor as root) to a rules file (eg /etc/udev/rules.d/90-canon.rules). Then you’d try the detection again.

Other than that, I’m not sure what might be wrong. It is difficult to investigate when the hardware is not in front of me to play with. I guess you could try a different distro to see if the behaviour is the same.

My final suggestion is to try VueScan. It is a proprietary scanning app that claims to support your scanner model.

Canon MG2200 Scanner Driver and Software | VueScan

  592.793929] SFW2-INext-DROP-DEFLT IN=wlan0 OUT= MAC= SRC=fe80:0000:0000:0000:021e:65ff:fe01:d038 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
 1104.795872] SFW2-INext-DROP-DEFLT IN=wlan0 OUT= MAC= SRC=fe80:0000:0000:0000:021e:65ff:fe01:d038 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
 1444.233289] usb 2-2: new high-speed USB device number 4 using ehci_hcd
 1444.350744] usb 2-2: New USB device found, idVendor=04a9, idProduct=1760
 1444.350756] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
 1444.350763] usb 2-2: Product: MG2200 series
 1444.350768] usb 2-2: Manufacturer: Canon
 1444.350773] usb 2-2: SerialNumber: A17530
 1444.456816] usblp 2-2:1.1: usblp0: USB Bidirectional printer dev 4 if 1 alt 0 proto 2 vid 0x04A9 pid 0x1760
 1444.456865] usbcore: registered new interface driver usblp

scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

I will try the VueScan.

Andy

That was easy.

VueScan worked on a text page that I scanned and saved to a pdf file.

I am trying to find the program.

It was not showing in the Recently Installed Area.

I will get back to it.

Andy

Firefox has been downloading these 0 byte files and I have been running this to delete them.

rm *.ashx

on another area.

I uninstalled one of the plugins and now that pesky Comcast popup is back.

(I am considering sending a certified letter with a complaint to C_ _omcast and/or file a FCC complaint.) :slight_smile:

Printer won’t print a pdf document.

I wonder if it is related to the scanner program I installed ?

Many file formats produced by LibreOffice will print in Windows too, but not pdf files.

Andy


 1444.233289] usb 2-2: new high-speed USB device number 4 using ehci_hcd
 1444.350744] usb 2-2: New USB device found, idVendor=04a9, idProduct=1760
 1444.350756] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
 1444.350763] usb 2-2: Product: MG2200 series
 1444.350768] usb 2-2: Manufacturer: Canon
 1444.350773] usb 2-2: SerialNumber: A17530
 1444.456816] usblp 2-2:1.1: usblp0: USB Bidirectional printer dev 4 if 1 alt 0 proto 2 vid 0x04A9 pid 0x1760
 1444.456865] usbcore: registered new interface driver usblp

That’s more like it… and it does seem usblp may have a part to play with claiming the interface here. (I’ve seen other threads reporting problems with usblp and multi-function devices. SANE has been updated so that libsane can now handle this situation, but I’m not sure why the Canon software doesn’t.)

Since the only GNU/Linux app you mentioned was LibreOffice, in an effort to understand your post I am assuming you meant it won’t print PDF with LibreOffice to your printer.

In which case try to print with an application OTHER than LibreOffice. Try Acroread, or evince, or okular .

If I may be so bold (in an effort to be helpful) please next time, note precisely what app won’t print and don’t leave it to speculation on the readers part to assume what application you mean. Being more precise, it may save one or two post iterations in a slow forum help thread and result in much more expedient help. :slight_smile:

In my experience, when it comes to PDF files, at least 50% of the time a printing problem is at the application level and not elsewhere. Hence it important to be clear as to the application in use.

That was easy.

VueScan worked on a text page that I scanned and saved to a pdf file.

I am trying to find the program.

It was not showing in the Recently Installed Area.

I will get back to it.

It is located in a within a directory you downloaded it to. For example, if you downloaded to ~/Downloads, then the executable will be located in your ~/Downloads/VueScan directory.