Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How I installed Canon Lide 400 on Debian Sid

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
aario
Posts: 23
Joined: 2019-04-18 06:26

How I installed Canon Lide 400 on Debian Sid

#1 Post by aario »

The scanner is quite new and at the time of writing this topic, still not supported with Debian Testing, let alone Debian stable. So this is how I made the scanner work:
Clone latest sane-backends source code from its upstream repository at:
https://gitlab.com/sane-project/backends
To do so you need to have git installed. Then click on clone button on top right, copy HTTPS link and in terminal type:

Code: Select all

git clone <past HTTPS link here>
Now cd into the cloned folder.
I first installed Debian Sid sane and gimp:

Code: Select all

sudo apt install sane sane-utils
Installed sane backend build requirements:

Code: Select all

sudo apt install build-essential make autoconf-archive
sudo apt build-dep sane
sudo apt install libjpeg-dev
Then compiled the backend code:

Code: Select all

./autogen.sh
./configure
make -j9
Canon Lide 400 uses pixma backend. So all I need from the compiled source was pixma library. I picked it and copied over the debian version:

Code: Select all

sudo cp ./backend/.libs/libsane-pixma.so.1.0.28 /usr/lib/x86_64-linux-gnu/sane/libsane-pixma.so.1.0.28
sudo rm /usr/lib/x86_64-linux-gnu/sane/libsane-pixma.so.1 /usr/lib/x86_64-linux-gnu/sane/libsane-pixma.so.1.0.27
sudo ln -s libsane-pixma.so.1.0.28 /usr/lib/x86_64-linux-gnu/sane/libsane-pixma.so.1
Based on udev rules provided by sane source code after build, in file:

Code: Select all

tools/udev/libsane.rules
Created the file:

Code: Select all

/usr/lib/udev/rules.d/49-sane.rules
With only this line:

Code: Select all

ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1912", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"
Added my user to scanner group.
Rebooted computer.
In Gimp I can now go to File> Create> Xscan Image> Device Dialog> Scan
And it works.

Note: When I run command:

Code: Select all

lsusb | grep -i canon
Here is what I can see:

Code: Select all

Bus 003 Device 003: ID 04a9:1912 Canon, Inc.
Check if you have the same scanner and that it is connected.
In case you still have problem, this command gives you useful information:

Code: Select all

sudo sane-find-scanner -v -v
In case it cannot detect the chip of your scanner, then the library is not found. Means you didn't copy the library in the correct path or didn't create the correct symlink based on file names and paths of your linux distro.

AlexYeCu
Posts: 1
Joined: 2019-12-19 16:59

Re: How I installed Canon Lide 400 on Debian Sid

#2 Post by AlexYeCu »

Well, does not work on Stretch.
Default sane's version is 1.0.25. (Not 27: have you installed packages from testing before? UP: of course, that's sid).
Debian is installed on nas, so the connected scanner is for scanning through lan.
And Epson was ok for this, but now it's almost dead (15+ years).
And Canon is visible via lsusb/sane-find-scanners and not — via scanimage -L. Everything work nice at fedora (desktop), but I need net scanner.
Any ideas?

Post Reply