Results 1 to 10 of 10

Thread: Scanner fails once, works twice with XSane

  1. #1
    Join Date
    Jan 2012
    Beans
    251

    Scanner fails once, works twice with XSane

    I've got a Canon Lide 100 flatbed USB scanner that I use with XSane.

    When I plug in the scanner and run Xsane, when I hit Scan, comes back with an error saying it cannot communicate with the scanner.

    Ok.

    Leave scanner plugged in and run XSane again, hit Scan, no problems, works a treat.

    Does same on my Asus laptop running Ubuntu 12.04.

    Ideas?

  2. #2
    Join Date
    Aug 2009
    Location
    Charleston, SC (USA)
    Beans
    1,376
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Scanner fails once, works twice with XSane

    It might take a second for it to register and setup the connection to the device.How long of a wait before it starts working properly?

    Can you copy and paste the exact error that it is giving you?
    UA Team Member
    "When our actions do not, our fears do make us traitors." -- Shakespeare
    "Unless someone like you cares a whole awful lot, nothing is going to get better. It's not!" -- Dr. Seuss
    "No man has ever seen his dreams fulfilled and regretted the sacrifice necessary to fulfill them" -- Mattie Montgomery


  3. #3
    Join Date
    Jan 2012
    Beans
    251

    Re: Scanner fails once, works twice with XSane

    Thanks for the reply. I start XSane, the scanner fails, so I shut XSane, and re-open it, scanner works fine. I have tried leaving XSane, once it has detected the scanner, for a couple of minutes before hitting scan. Doesn't seem to make any difference. I find I need to quit XSane, re open it, and then hit Scan. Works every time like that.

    Here is the error message I get when I first start Xsane, after selecting which scanner.

  4. #4
    Join Date
    Aug 2009
    Location
    Charleston, SC (USA)
    Beans
    1,376
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Scanner fails once, works twice with XSane

    I did a quick google with your model number and found this page. I don't think you have to compile SANE but maybe setting permissions will help??

    Canon Lide 100 Scanner in Ubuntu with sane: Installation & Permission Fixes

    Hope that helps!
    ~Caboose
    UA Team Member
    "When our actions do not, our fears do make us traitors." -- Shakespeare
    "Unless someone like you cares a whole awful lot, nothing is going to get better. It's not!" -- Dr. Seuss
    "No man has ever seen his dreams fulfilled and regretted the sacrifice necessary to fulfill them" -- Mattie Montgomery


  5. #5
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    7,822
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Scanner fails once, works twice with XSane

    Open a terminal and run xsane. Post any useful errors. The first time you connect, there is usually a delay as the light-bulb warms up, so I would expect the first error. But after that, as long as the scanner is plugged in and warmed up, you should be able to scan continuously. I don't know if you can update the firmware of the scanner, but that might help.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  6. #6
    Join Date
    Jun 2013
    Location
    Somewhere on Earth.
    Beans
    345
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Scanner fails once, works twice with XSane

    Yes, try the link there, or run the commands (if you do not want to look at the link):

    Quote Originally Posted by Shafiul Azam
    1)
    Code:
    sudo apt-get install libusb-dev build-essential libsane-dev
    sudo apt-get install git-core
    git clone git://git.debian.org/sane/sane-backends.git
    cd sane-backends
    cd sane-backends
    export BACKENDS="net mustek mustek_usb genesys"
    ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
    make
    sudo make install
    2)
    Code:
    sudo nano /lib/udev/rules.d/40-libsane.rules
    Add the following line:

    # Canon CanoScan Lide 100
    ATTRS{idVendor}==”04a9″, ATTRS{idProduct}==”1904″, ENV{libsane_matched}=”yes”
    3) Then run:

    Code:
    sudo scanimage -L
    If your scanner is there, skip to step 5. If not, go to step 4.

    4)
    Code:
    sudo cp ~/sane-backends/backend/genesys.conf.in /etc/sane.d/genesys.conf
    Go to step 3 again.

    5)
    Code:
    sudo chmod 0777 /dev/bus/usb/xxx/yyy
    Replace xxx and yyy with the output you got in step 3.
    6) You are done!!!

    7) There is no step 7

    i) Square-root of -1

    P.S. (Off-topic) Where did you get the transparency theme (border)?
    Last edited by Jonathan Precise; September 24th, 2013 at 07:05 PM.
    I recommend a full ubuntu installation rather than a wubi install. Ask me why.
    To migrate from wubi, click here. (by bcbc)
    Status: Online
    https://help.ubuntu.com/community/UEFI, and Buggy UEFI solution.

  7. #7
    Join Date
    Jan 2012
    Beans
    251

    Re: Scanner fails once, works twice with XSane

    [/CODE]
    ...

    kpathsea: Running mktexmf ptmr7t
    ! I can't find file `ptmr7t'.
    <*> ...:=ljfour; mag:=1; nonstopmode; input ptmr7t

    Please type another input file name
    ! Emergency stop.
    <*> ...:=ljfour; mag:=1; nonstopmode; input ptmr7t

    Transcript written on mfput.log.
    grep: ptmr7t.log: No such file or directory
    mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ptmr7t' failed to make ptmr7t.tfm.
    kpathsea: Appending font creation commands to missfont.log.
    make[1]: *** [sane.dvi] Error 1
    make[1]: Leaving directory `/home/glenn/sane-backends/doc'
    make: *** [all-recursive] Error 1
    glenn@design:~/sane-backends$

    [/CODE]

    Can anyone enlighten me as to the error message during make?

    I tried re-running make as sudo make, appears to produce the same error code.

    (off-topic) I don't remember where exactly I got the transparency theme, I think I was noodling around in gconf or something similar, trying to make my machine look more windowsey. I'm afraid if I do any more, my machine will implode and become a black hole.
    Last edited by Senior_Buckethead; September 26th, 2013 at 11:27 AM. Reason: I can't spell

  8. #8
    Join Date
    May 2012
    Beans
    248
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Scanner fails once, works twice with XSane

    Your scanner comes with Cannon's scangearmp software.
    I use it for scanning on my Cannon Pixma printer & I didn't have to go through anything as complicated as already mentioned above. Have you tried it?

  9. #9
    Join Date
    Jan 2012
    Beans
    251

    Re: Scanner fails once, works twice with XSane


  10. #10
    Join Date
    Jan 2012
    Beans
    251

    Re: Scanner fails once, works twice with XSane

    Can someone please enlighten me as to the "Error 1" I had when running make in the above post.
    Is it a standard error, or just specific to what I was trying to build from source?

Tags for this Thread

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
  •