Black bar in scans, Canon LIDE 100 scanner, Mint 19, reverting to libsane 1.0.25 backends fixes

Forum rules
Before you post please read this
Post Reply
mintytux
Level 1
Level 1
Posts: 1
Joined: Fri Jul 20, 2018 12:03 pm

Black bar in scans, Canon LIDE 100 scanner, Mint 19, reverting to libsane 1.0.25 backends fixes

Post by mintytux » Fri Jul 20, 2018 2:08 pm

I am posting this workaround in case it helps others with the same problem.

Problem Summary: Canon LIDE 100 scanner produces a vertical black strip on all scans in Linux Mint 19 using multiple programs (SimpleScan, XSane, etc.). The scanner worked flawlessly in Mint 18.


Relevant Hardware/Software Configuration:
- Architecture: x86_64
- OS: Linux Mint 19
- Scanner: Canon LIDE 100
- Relevant applications: SimpleScan, Xsane
- Relevant libraries: libsane 1.0.27, genesys backend


Workaround Summary:
Revert libsane backends to version 1.0.25. I followed the general process from here: https://askubuntu.com/questions/567863/ ... using-sane


Workaround Details:

- Download the libsane 1.0.25 backends source from: http://http.debian.net/debian/pool/main ... rig.tar.gz.
- Unpack the archive
- Install prerequisite packages to build libsane backends from source:

Code: Select all

sudo apt-get install libusb-dev build-essential libsane-dev
sudo apt-get install libavahi-client-dev libavahi-glib-dev libjpeg-dev
- Build and install libsane 1.0.25:

Code: Select all

cd sane-backends
./configure
make
sudo make install
- Double-check that 1.0.25 is FIRST in the library load order for libsane:

Code: Select all

sudo ldconfig -v | grep libsane
- You should see something like:

Code: Select all

libsane.so.1 -> libsane.so.1.0.25
libsane.so.1 -> libsane.so.1.0.27
- Run SimpleScan or XSane to test

harryw
Level 1
Level 1
Posts: 4
Joined: Fri Apr 21, 2017 4:37 pm

Re: Black bar in scans, Canon LIDE 100 scanner, Mint 19, reverting to libsane 1.0.25 backends fixes

Post by harryw » Sat Jan 26, 2019 6:50 pm

Thanks for posting this - exactly what I was googling for.

One note:

Code: Select all

sudo ldconfig -v | grep libsane

shows the wrong load order for me (27 before 25), but

Code: Select all

ldd /usr/bin/simple-scan
displays that libsane.1.0.25 would be used, as intended. Anyways, problem solved.

Grenny
Level 1
Level 1
Posts: 2
Joined: Sun May 26, 2019 5:35 pm

Re: Black bar in scans, Canon LIDE 100 scanner, Mint 19, reverting to libsane 1.0.25 backends fixes

Post by Grenny » Sun May 26, 2019 5:52 pm

I had a little trouble getting my LiDE 100 going using the solution MintyTux gave. But doing the following procedure did work for me:

1. Make sure the scanner is unplugged or off.
2. Use MintyTux's excellent procedure in Message 1
3. Do an update:

Code: Select all

sudo apt-get update
4. Remove libsane1:

Code: Select all

sudo apt-get remove libsane1
5. Install simple-scan:

Code: Select all

sudo apt-get install simple-scan
6. Plug in the scanner

I don't know why this worked, but I'm guessing that removing libsane1 (which removes simple-scan) then reinstalling simple-scan (which installs libsane1) puts :

Code: Select all

libsane.so.1 -> libsane.so.1.0.25
libsane.so.1 -> libsane.so.1.0.2
in the right order.
I used this method on a Live version of 19.1, many times, as a precursor to a full hard drive installation. So only use these additional steps if MintyTux's method doesn't fully work. Hope this helps someone. And a BIG thank you to MintyTux for the method. It has saved me £100 in buying a new scanner!

Post Reply

Return to “Printers & Scanners”