Linux Lite Forums

Hardware - Support => Printing and Scanning => Topic started by: sanmayjoshi on June 16, 2017, 10:06:14 AM

Title: Canon Lide 100 not working
Post by: sanmayjoshi on June 16, 2017, 10:06:14 AM
Hello,
   I have a Canon Lide 100 scanner(Yes, USB only). It is getting detected but the Document Scanner is not able to scan documents via scanner. I even tried installing Sane along with XSane Image Scanning Program, but no luck. XSane shows the scanner info, just gives error-Failed to start scanner: Error during device I/O. when asked to scan.


I would really appreciate any help.
Thanks.

Edit:
I am adding solution with explanation to above problem in case it might help someone --

I don't know which specific step out of following made scanner work, but it worked.  ;)

Make sure you have scanner plugged in(yep, the USB).

First check if you have sane installed along with dependencies and libusb-dev, build-essential, libsane-dev . To install sane-
Code: [Select]
sudo apt-get install sane #this shall install sane with any dependencies Similarly, to install libusb-dev, build-essential, libsane-dev -
Code: [Select]
sudo apt-get install libusb-dev build-essential libsane-dev
Type in terminal-
Code: [Select]
scan-find-scannerYou may find something like-

# 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=0ื1904, chip=GL843) at libusb:001:004
# 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.


if not, don't worry.

Now go to- https://anonscm.debian.org/gitweb/?p=sane/sane-backends.git (which I found when I googled for git://git.debian.org/sane/sane-backends.git), and download(click on snapshot) the master branch(yep, the one with master tag). Extract(to any directory but in this solution it is to USER/) and rename it to sane-backends. Then via terminal change directory to sane-backendsvia command -
Code: [Select]
cd USER/sane-backends #it may differ in your case and then type in the terminal-
Code: [Select]
export BACKENDS="net mustek mustek_usb genesys"
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
sudo make install
sudo bluefish /lib/udev/rules.d/40-libsane.rules #I use bluefish editor

If it worked fine and a text file got opened then add-
Code: [Select]
# Canon CanoScan Lide 100
 ATTRS{idVendor}==”04a9″, ATTRS{idProduct}==”1904″, ENV{libsane_matched}=”yes”
to the end of that file.
But, in my case I found out that /lib/udev/rules.d/40-libsane.rules didn't exist in my pc. If that's the case then create 40-libsane.rules in /lib/udev/rules.d/ as root and paste-
Code: [Select]
# Canon CanoScan Lide 100
 ATTRS{idVendor}==”04a9″, ATTRS{idProduct}==”1904″, ENV{libsane_matched}=”yes”
still, it may not work.

Restart your PC.

Type in terminal-
Code: [Select]
scanimage -L it should return-
device `genesys:libusb:001:003' is a Canon LiDE 100 flatbed scanner
(001:003 may be replaced with something else in your case). Test your scanner(try scanning via Document Scanner or XSane).

Type in terminal-
Code: [Select]
scanimage -d genesys:libusb:001:003 --format=tiff >image.tiff
(by changing 001:003 to what it shows for scan-find-scanner )
Code: [Select]
scanimage -d genesys:libusb:001:003 --format=tiff >image.tiff, scanner should make the sound it does when it scans(yes, it will throw green light too! :))). Now, what you just scanned will be (at least, should be) saved in USER/ . Congrats, your scanner is working(at least it did in my case! ;) ). Again test your scanner via Document Scanner(or XSane). Restart your computer, and again test your scanner via Document Scanner(or XSane).

If it passed all the tests, yep, your scanner is working awesome! ;)
Title: Re: Canon Lide 100 not working
Post by: bitsnpcs on June 16, 2017, 01:39:45 PM
Hello sanmayjoshi,

do any of these solve it ? - https://ubuntuforums.org/showthread.php?t=2324912

https://askubuntu.com/questions/457901/usb-2-0-device-scanner-does-not-work-with-xhci-hcd-on-usb-3-0-system
Title: Re: Canon Lide 100 not working
Post by: newtusmaximus on June 16, 2017, 04:45:38 PM
http://www.canon.co.uk/support/consumer_products/products/scanners/lide_series/canoscan_lide_100.aspx?type=drivers&language=&os=LINUX (http://www.canon.co.uk/support/consumer_products/products/scanners/lide_series/canoscan_lide_100.aspx?type=drivers&language=&os=LINUX)
Linux drivers are listed.  Not sure how you add these. Perhaps someone can advise OP.

SORRY _ Just seen that clicking linux draws a blank

http://manpages.ubuntu.com/manpages/zesty/man5/sane-genesys.5.html

My LIDE  210 is working ok on both 32 & 64 bit LL3.4 "out of the box" i.e no mods ,  so there might be hope.
Title: Re: Canon Lide 100 not working
Post by: sanmayjoshi on June 17, 2017, 04:17:05 AM
Thank you for your kind reply, @bitsnpcs , @newtusmaximus !

Hello sanmayjoshi,

do any of these solve it ? - https://ubuntuforums.org/showthread.php?t=2324912

https://askubuntu.com/questions/457901/usb-2-0-device-scanner-does-not-work-with-xhci-hcd-on-usb-3-0-system

https://ubuntuforums.org/showthread.php?t=2324912 - Thread's not solved yet. :-\
https://askubuntu.com/questions/457901/usb-2-0-device-scanner-does-not-work-with-xhci-hcd-on-usb-3-0-system - Not the same problem.

http://www.canon.co.uk/support/consumer_products/products/scanners/lide_series/canoscan_lide_100.aspx?type=drivers&language=&os=LINUX (http://www.canon.co.uk/support/consumer_products/products/scanners/lide_series/canoscan_lide_100.aspx?type=drivers&language=&os=LINUX)
Linux drivers are listed.  Not sure how you add these. Perhaps someone can advise OP.

SORRY _ Just seen that clicking linux draws a blank

http://manpages.ubuntu.com/manpages/zesty/man5/sane-genesys.5.html

My LIDE  210 is working ok on both 32 & 64 bit LL3.4 "out of the box" i.e no mods ,  so there might be hope.

http://manpages.ubuntu.com/manpages/zesty/man5/sane-genesys.5.html - It takes me to a page with library named sane-genesys. It says on the page that this library is especially designed for USB based Flatbed Scanners. I couldn't find that library in the Synaptic Manager. sane-genesys is available to download at that page as a sane-genesys.5.gz file, but I don't know how to install a library with .5.gz extension... :(

Any help highly appreciated!
Thanks.
Title: Re: Canon Lide 100 not working
Post by: bitsnpcs on June 17, 2017, 02:55:42 PM
Hello sanmayjoshi,

on the first link there are some solutions others used for this, via links in their replies, it may be worth checking them in case it can solve it .

The second link is for another scanner, the method was used to solve an USB issue on the Canon Lide 100. As you wrote you are using the scanner by USB it is worth looking at this to confirm there is not a USB issue, that prevents your scanner working etc.

.gz (tar, tar ball) it is like a zip file.
Right click the downloaded file and from the menu that will appear select "extract here" .
Once extracted you will see the files, and files types, if you are unsure how to install them, then members may know how to install them once the files can be specified.
Title: Re: Canon Lide 100 not working
Post by: sanmayjoshi on June 18, 2017, 08:09:30 AM
Thanks a lot @bitsnpcs  .

Hello sanmayjoshi,

on the first link there are some solutions others used for this, via links in their replies, it may be worth checking them in case it can solve it .
I checked the first link you provided but no luck...
The second link is for another scanner, the method was used to solve an USB issue on the Canon Lide 100. As you wrote you are using the scanner by USB it is worth looking at this to confirm there is not a USB issue, that prevents your scanner working etc.
I went through the second link too, but I am using ASUS Eee PC, and I'm pretty sure it doesn't have a USB 3.0 connection. Sorry, but that link couldn't solve it...
.gz (tar, tar ball) it is like a zip file.
Right click the downloaded file and from the menu that will appear select "extract here" .
Once extracted you will see the files, and files types, if you are unsure how to install them, then members may know how to install them once the files can be specified.
That file (sane-genesysy.5.gz) had sane-genesys.5 file in it. I opened it with text editor(BlueFish) and found out that it had the same information that the website had. It doesn't seem like it's a library(don't know though). There is no info(even on the website- http://manpages.ubuntu.com/manpages/zesty/man5/sane-genesys.5.html ) where that library is or how to use it... :(
Link to the sane-genesys.5.gz file : http://manpages.ubuntu.com/manpages.gz/zesty/man5/sane-genesys.5.gz

Any help...?
Title: Re: Canon Lide 100 not working
Post by: Jerry on June 18, 2017, 10:11:38 AM
There's no need to use that file.

Sent from my Mobile phone using Tapatalk

Title: Re: Canon Lide 100 not working
Post by: sanmayjoshi on June 18, 2017, 11:01:08 AM
There's no need to use that file.

Sent from my Mobile phone using Tapatalk



I agree.


After a lot of searching, I found out that the library is already installed  :) - I checked for files listed on http://manpages.ubuntu.com/manpages/zesty/man5/sane-genesys.5.html So, I checked if the scanner works, but no, it didn't.
Then I found this website- https://bdhacker.wordpress.com/2011/04/25/canon-lide-100-scanner-in-ubuntu-with-sane-installation-permission-fixes/ and it said(I have bluefish code editor)-

Code: [Select]
This portion is copied from the links i mentioned at the end of this article. Open a terminal and paste following:

sudo apt-get install libusb-dev build-essential libsane-dev
sudo apt-get install git-core # Only if you don't have git installed
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
sudo bluefish /lib/udev/rules.d/40-libsane.rules


What I did-
Code: [Select]
sudo apt-get install libusb-dev build-essential libsane-dev
Then I went to- https://anonscm.debian.org/gitweb/?p=sane/sane-backends.git which I found when I googled for git://git.debian.org/sane/sane-backends.git , and downloaded(clicked on snapshot) the master branch(yep, the one with master tag). Extracted(to USER/) and renamed it to sane-backends. Then via terminal I changed directory to sane-backendsvia command -
Code: [Select]
cd USER/sane-backends and then typed in the terminal-
Code: [Select]
export BACKENDS="net mustek mustek_usb genesys"
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
sudo make install
sudo bluefish /lib/udev/rules.d/40-libsane.rules

and to my surprise found out that /lib/udev/rules.d/40-libsane.rules didn't exist in my pc. So, I created 40-libsane.rules in /lib/udev/rules.d/ as root and pasted what he stated-
# Canon CanoScan Lide 100
 ATTRS{idVendor}==”04a9″, ATTRS{idProduct}==”1904″, ENV{libsane_matched}=”yes”

still, it doesn't work.

Just for info, When I type in terminal-
Code: [Select]
scanimage -L it returns-
device `genesys:libusb:001:003' is a Canon LiDE 100 flatbed scanner


A user on https://forums.linuxmint.com/viewtopic.php?t=101046 said that it works if you type in terminal-
Code: [Select]
scanimage -d genesys:libusb:002:004 --format=tiff >image.tiff
I tried typing the same but changing 002:004 by 001:003 ( because that's what it showed for scan-find-scanner )
Code: [Select]
scanimage -d genesys:libusb:001:003 --format=tiff >image.tiff, and to my surprise scanner made the sound it does when it scans(yes, it threw green light too). But, I don't know if anything happened, and if it did; don't know where did that file got saved.

Edit: The file got saved! It was in USER/ . But, does that mean I'll have to scan a file via terminal and then edit it, because the image include all the side-space(in black color) too. If there is any way in which I can scan it via GUI(XSane) I'll highly appreciate it. Anyhow, scanner is temporarily working... :)

Any help is extremely highly appreciated...!

Thanks for helping me and for the time you are giving for me!

Links I found and referred to:
https://bdhacker.wordpress.com/2011/04/25/canon-lide-100-scanner-in-ubuntu-with-sane-installation-permission-fixes/
http://robsworldoftech.blogspot.in/2010/09/canon-canoscan-lide-100-on-ubuntu-or.html
https://forums.linuxmint.com/viewtopic.php?t=101046
Title: Re: Canon Lide 100 not working
Post by: sanmayjoshi on June 18, 2017, 11:37:50 AM
Hurray...! It worked with GUI(Simple Scan & XSane) too!

@Jerry , @bitsnpcs , @newtusmaximus
Thanks a Loooooot! :)
(Really!)  :)
Title: Re: Canon Lide 100 not working
Post by: Jerry on June 18, 2017, 04:48:11 PM
Nice :)

Sent from my Mobile phone using Tapatalk

Title: Re: Canon Lide 100 not working
Post by: newtusmaximus on June 18, 2017, 08:03:29 PM
Great.  Worth all of your effort/perseverance :}
Title: Re: Canon Lide 100 not working
Post by: ejc on January 11, 2020, 01:57:50 PM
Any chance there would be a solution a little bit simpler that the afore-mentioned?

 :-[