Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Installing Canon 9000F scanner on 12.04

  1. #1
    Join Date
    Jul 2011
    Beans
    1

    Installing Canon 9000F scanner on 12.04

    Having spent a few days struggling with this - pouring over the web as others have done, I thought I would put up my notes in case it might help others. I didn't get it entirely right, but using others experience (many thanks) it finally worked. Maybe someone can correct the mistakes i.e. un-installing existing (old) backends.


    Check scanner is supported in http://www.sane-project.org/sane-supported-devices.html
    It is in pixma backend.

    Download sane 1.0.23 backend from https://alioth.debian.org/frs/?group_id=30186
    Use instructions in README to combine files
    Merge sane backend downloads:
    $ cat sane-backends-1.0.23.tar.gz.[1-3] > sane-backends-1.0.23.tar.gz

    Checksum:
    $ md5sum -c sane-backends-1.0.23.tar.gz.md5
    sane-backends-1.0.23.tar.gz: OK

    unzip/untar file

    Following instructions in: https://help.ubuntu.com/community/CompileSaneFromSource
    $ cd .../sane-backends-1.0.23
    $ make clean
    $ sudo apt-get install libusb-dev build-essential libsane-device
    $ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var

    *** WARNING: SANE is already installed (version 1.0.23). The old
    *** installation is at /usr/local while SANE will now be installed
    *** at /usr. It is recommended to uninstall the old SANE version
    *** before installing the new one to avoid problems.

    [I was guessing here. I didn't really know how to uninstall
    the old version. However I believe in retrospect that if this
    is done correctly here the 'miracle' step at the end that got
    it all working by redirecting the link would probably be unecessary.]

    Remove installed version
    $ sudo make uninstall

    Remove sane from /usr/local
    $ ./configure --prefix=/usr/local
    $ sudo make uninstall

    Prepare for proper installation once again
    $ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var

    *** Warning: An old version of SANE was detected but the sane-config program
    *** couldn't be found. If you encounter any problems with SANE remove the old
    *** SANE files and reinstall this version.

    ??? I obviously haven't done this right, but carried on...

    Compile and install backend source code:
    $ sudo make
    $ sudo make install

    Plug in scanner, turn on
    $ lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
    Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
    Bus 001 Device 003: ID 0409:0059 NEC Corp. HighSpeed Hub
    Bus 001 Device 004: ID 0c45:641d Microdia 1.3 MPixel Integrated Webcam
    Bus 002 Device 003: ID 12f7:2000 Memorex Products, Inc.
    Bus 002 Device 004: ID 1058:1023 Western Digital Technologies, Inc.
    Bus 002 Device 005: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
    Bus 001 Device 007: ID 04a9:1908 Canon, Inc.
    Bus 001 Device 006: ID 413c:3010 Dell Computer Corp. Optical Wheel Mouse
    Bus 002 Device 006: ID 413c:8161 Dell Computer Corp. Integrated Keyboard
    Bus 002 Device 007: ID 413c:8162 Dell Computer Corp. Integrated Touchpad [Synaptics]
    Bus 002 Device 008: ID 413c:8160 Dell Computer Corp. Wireless 365 Bluetooth
    Bus 001 Device 008: ID 04f9:0027 Brother Industries, Ltd HL-2030 Laser Printer

    Scanner detected

    $ sane-find-scanner

    # 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=0x04a9, product=0x1908) at libusb:001:010
    # 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.

    # You may want to run this program as root to find all devices. Once you
    # found the scanner devices, be sure to adjust access permissions as
    # necessary.

    Found scanner but not identified comletely - no names

    $ sudo sane-find-scanner
    # 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=0x04a9 [Canon], product=0x1908 [CanoScan]) at libusb:001:007
    # 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.

    Names now found so permissions problem
    First add user to scanner group
    $ sudo adduser <username> scanner

    Copy scanner rule(s) for udev to fix permissions
    This file already has the entry (among others) for setting permissions for group 'scanner'
    # Canon CanoScan 9000F
    ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1908", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"
    $ cp .../sane-backends-1.0.23/tools/udev/libsane.rules /etc/udev/rules.d/libsane.rules

    This solves permissions problem and sane-find-scanner now gives correct output without 'sudo'

    $ scanimage -L
    [pixma] udp_command: no data received (recv): Connection refused[pixma] udp_command: no data received (recv):
    Connection refused[pixma] udp_command: no data received (recv):
    Connection refused[pixma] Cannot read scanner make & model: H��
    device `v4l:/dev/video0' is a Noname Laptop_Integrated_Webcam_1.3M virtual device

    Following: http://lists.alioth.debian.org/piper...ay/029838.html

    $ scanimage -V
    scanimage (sane-backends) 1.0.23; backend version 1.0.22

    Version mixup because of existing old version?

    Check result of original installation:
    $ ls -l /usr/lib/sane/libsane-pixma*
    -rwxr-xr-x 1 root root 954 Oct 14 17:12 /usr/lib/sane/libsane-pixma.la
    lrwxrwxrwx 1 root root 23 Oct 14 17:12 /usr/lib/sane/libsane-pixma.so -> libsane-pixma.so.1.0.23
    lrwxrwxrwx 1 root root 23 Oct 14 17:12 /usr/lib/sane/libsane-pixma.so.1 -> libsane-pixma.so.1.0.23
    -rwxr-xr-x 1 root root 508608 Oct 14 17:12 /usr/lib/sane/libsane-pixma.so.1.0.23

    Check for earlier versions of libsane-pixma
    $ ls -l /usr/lib/x86_64-linux-gnu/sane/libsane-pixma*

    -rw-r--r-- 1 root root 235006 Dec 5 2011 /usr/lib/x86_64-linux-gnu/sane/libsane-pixma.a
    -rw-r--r-- 1 root root 979 Dec 5 2011 /usr/lib/x86_64-linux-gnu/sane/libsane-pixma.la
    lrwxrwxrwx 1 root root 23 Dec 5 2011 /usr/lib/x86_64-linux-gnu/sane/libsane-pixma.so -> libsane-pixma.so.1.0.22
    lrwxrwxrwx 1 root root 23 Dec 5 2011 /usr/lib/x86_64-linux-gnu/sane/libsane-pixma.so.1 -> libsane-pixma.so.1.0.22
    -rw-r--r-- 1 root root 138064 Dec 5 2011 /usr/lib/x86_64-linux-gnu/sane/libsane-pixma.so.1.0.22

    Change link to point to newly installed libraries (1.0.23):
    $ cd /usr/lib/x86_64-linux-gnu/sane
    $ ln -i -s /usr/lib/sane/libsane-pixma.so.1.0.23 /usr/lib/x86_64-linux-gnu/sane/libsane-pixma.so.1

    Result:
    $ ll libsane-pixma*
    -rw-r--r-- 1 root root 235006 Dec 5 2011 libsane-pixma.a
    -rw-r--r-- 1 root root 979 Dec 5 2011 libsane-pixma.la
    lrwxrwxrwx 1 root root 23 Dec 5 2011 libsane-pixma.so -> libsane-pixma.so.1.0.22
    lrwxrwxrwx 1 root root 37 Oct 17 16:56 libsane-pixma.so.1 -> /usr/lib/sane/libsane-pixma.so.1.0.23*
    -rw-r--r-- 1 root root 138064 Dec 5 2011 libsane-pixma.so.1.0.22

    Scanner is directly connected to usb port (not network) so
    comment out line in /etc/sane.d/pixma.conf "bjnp://127.0.0.1"

    $ scanimage -L
    device `v4l:/dev/video0' is a Noname Laptop_Integrated_Webcam_1.3M virtual device
    device `pixma:04A91908' is a CANON Canoscan 9000F multi-function peripheral

    xsane finds scanner (and the Webcam) and it all works!

  2. #2
    Join Date
    Apr 2005
    Beans
    2,336

    Re: Installing Canon 9000F scanner on 12.04

    well done;

    you have learnt a lot about the scanner commands: very thorough description and very useful to many others I am sure;

    you infer it was the new version of sane caused the hiccups..I would wonder about that ..but still..

    ...............help us understand why you installed sane 1.0.23 (as opposed to just using what was already installed?)

  3. #3
    Join Date
    Sep 2006
    Location
    Tokyo, Japan
    Beans
    182

    Re: Installing Canon 9000F scanner on 12.04

    Hi,
    If you would do just a normal install instead of configuring to overwrite your existing installation (never a good idea) you would have had no troubles, with the new sane in /usr/local.
    Learning the mechanism requires good teachers and dedication

  4. #4
    Join Date
    Aug 2010
    Location
    Ontario, Canada
    Beans
    5
    Distro
    Ubuntu 10.04 Lucid Lynx

    Thumbs up Re: Installing Canon 9000F scanner on 12.04

    Genius! After several tries I found your thread and followed your instructions for changing the link, and magic! It finally works.
    Thanks a lot. Now I can switch off my Windows VM.

    p.s. I had permissions problems as well, so for other novices like me, in the ./configure command at the start use "prefix=/usr/local" instead of "prefix=/usr" and the same for changing the link at the end:

    ln -i -s /usr/local/lib/sane/libsane-pixma.so.1.0.23 /usr/lib/x86_64-linux-gnu/sane/libsane-pixma.so.1
    Last edited by danieleday; January 19th, 2013 at 01:10 AM. Reason: clarity

  5. #5
    Join Date
    Jan 2008
    Beans
    4
    Distro
    Kubuntu

    Re: Installing Canon 9000F scanner on 12.04

    For the CS9000F it is save to install the daily git snapshot of Sane 1.0.24 from here: http://www.sane-project.org/cvs.html.

    With the source files comes a good installation desription "Step by step install on Linux 2.6.* and 3.*" in README.linux.

  6. #6
    Join Date
    Jul 2013
    Beans
    2

    Re: Installing Canon 9000F scanner on 12.04

    This was a great write up. I have a Canon MG3200 that I was trying setup so I followed these instructions. Problem is, SANE does not list this printer.

    I did eventually get it to work, so if you have one of these, read on. First get the model number from lsusb (mine was 1762, but check lsusb anyway). Next you need to add that model number to the libsane.rules file. Finally, edit the backend/pixma_mp150.c file where the MG3100 series is defined (two spots). Add these two lines in the appropriate spots:

    #define MG3200_PID 0x1762
    and
    DEVICE ("Canon PIXMA MG3200", "MG3200", MG3200_PID, 1200, 0, 0, 638, 877, PIXMA_CAP_CIS),

    Make sure the PID define matches what you got from lsusb. Compile and install along with the rules change for udev.

    My MG3200 is working now both with usb and wireless.

  7. #7
    Join Date
    Feb 2014
    Location
    Somerset, England, UK
    Beans
    44
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Installing Canon 9000F scanner on 12.04

    I have spent days trying to get ny canoscan 9000F to connect. I think it is almost there,but not quite. I'll explain, this is what I have done:-

    I firstly got the 1.0.24 backend, compiled and installed that, having the same problem in attempting to uninstall 1.0.22. I still don't know how to do that. This first attempt failed; not being seen by: $ sudo scanimage -L.

    I then downloaded the GIT 1.0.25 files and tried that, still not working. I then tried 1.0.23, still not working.

    I have now gone back to 1.0.24 My current set up is this:-

    $ lsusb
    Bus 001 Device 012: ID 04a9:1908 Canon, Inc.

    $ sudo lsusb
    Bus 001 Device 012: ID 04a9:1908 Canon, Inc.

    $ sane-find-scanner
    found USB scanner (sudo vendor=0x04a9, product=0x1908) at libusb:001:012

    $ sudo sane-find-scanner
    found USB scanner (vendor=0x04a9 [Canon], product=0x1908 [CanoScan]) at libusb:001:012

    $ scanimage -L
    device `pixma:04A91908' is a CANON Canoscan 9000F multi-function peripheral

    $ sudo scanimage -L
    device `pixma:04A91908' is a CANON Canoscan 9000F multi-function peripheral

    $ scanimage -T
    scanimage: open of device pixma:04A91908 failed: Access to resource has been denied

    $ sudo scanimage -T
    scanimage: open of device pixma:04A91908 failed: Device busy

    $ scanimage -V
    scanimage (sane-backends) 1.0.24; backend version 1.0.22

    $ sudo scanimage -V
    scanimage (sane-backends) 1.0.24; backend version 1.0.22

    I have ensured that I am in the 'scanner group', and have checked permissions for the libsane-pixma* files in /usr/lib/sane and in /usr/lib/i386-linux-gnu/sane; making all part of the scanner group.

    I have also worked through the steps in this link: https://help.ubuntu.com/community/CompileSaneFromSource

    To include:-

    sudo gedit /lib/udev/rules.d/40-libsane.rules adding the 9000F

    To make sure that the newest version of sane (in /usr/local/lib/sane) is used
    gksu gedit /etc/ld.so.confTo use the old version it should read
    include /etc/ld.so.conf.d/*.conf include /usr/libTo use the new version, change it to
    include /etc/ld.so.conf.d/*.conf include /usr/local/libThen run
    sudo ldconfig

    Having done all this it still does not connect. Clearly, I am missing something somewhere but I don't know what. I'm puzzled by the return from:-

    scanimage -V

    As this still seems to say that the backend is 1.0.22 surely that should not be so.

    Could you possibly help please?

    Thank you
    Last edited by philromford-q; March 19th, 2014 at 02:33 PM. Reason: Solved
    'Ignorance is not always bliss'

    PhilR

  8. #8
    Join Date
    Feb 2014
    Location
    Somerset, England, UK
    Beans
    44
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Installing Canon 9000F scanner on 12.04

    Screenshot from 2014-03-13 19:14:47.png

    This is what I get if I try to start Xsane.
    'Ignorance is not always bliss'

    PhilR

  9. #9
    Join Date
    Feb 2014
    Location
    Somerset, England, UK
    Beans
    44
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Installing Canon 9000F scanner on 12.04

    I forgot to say that I renamed libsane-pixma-1.0.22 so that it is effectively archived; only 1.0.24 files are in the libraries.
    'Ignorance is not always bliss'

    PhilR

  10. #10
    Join Date
    Apr 2005
    Beans
    2,336

    Re: Installing Canon 9000F scanner on 12.04

    It is all a bit strange;

    if one goes to SANE: scanning for linux

    http://www.sane-project.org/

    and one looks in the Canon section

    http://www.sane-project.org/sane-mfgs.html#Z-CANON

    ...specifically for the 9000F, they say it is Complete (fully supported);

    similarly we have a Canon 650U; it also is Complete; and it just ...works..........

    I wonder if you subscribe to the SANE mailing list; http://www.sane-project.org/mailing-lists.html to see if the experts there can help you

    There is a guy called aikishugyo who posts on these forums: does canon development in the SANE project I think; you could try a private message to him

    http://ubuntuforums.org/member.php?u=167122

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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