Re: Scanning on Debian Jessie (kodakaio / sane issue)

2016-03-13 Thread New Linux
( Original issue: https://lists.debian.org/debian-user/2016/03/msg00241.html )
 
Unfortunately I was not able to resolve this problem. After a week
of troubleshooting, I've settled on some workarounds, which I'm
posting below.



Giving the limited information I've been able to find, I believe this is
a problem specific to using a Kodak All-In-One (kodakaio) scanner with
sane on Debian Jessie.



As mentioned in my first post, I am able to scan on Ubuntu/Xubuntu/etc
which uses the following packages:

libsane, libsane-common, sane-utils (**All version 1.0.23 on Ubuntu**)



Debian Jessie Stable is currently v1.0.24. I tried installing v1.0.25
from a different Debian repo, but still had the same errors. I then
tried using Debian snapshots to install the Wheezy version (1.0.22).
Unfortunately that version did not have a kodakaio back-end. So version
1.0.23 is the only one that worked for me with kodakaio.



However, any GUI (like xsane/simplescan) that I installed either didn't
recognize the v1.0.23 SANE packages and/or reinstalled the v1.0.24
packages. In my numerous attempts to get a compatible GUI working with
the 1.0.23 packages, I ended up having to reinstall my entire operating
system in order to clean up the mess.



Having spent a week on this, these seem to be the options:

1) Buy a new, non-Kodak, printer (ugh)

2) Scan to an SD card inserted into the kodak (low quality, limited
   functionality)

3) Use a USB/pen-drive version of Ubuntu whenever I need to scan (okay
   for infrequent use)

4) Scan from the command line on Debian Jessie (okay)



If I used the scanner frequently, I'd probably opt for a new scanner.
But since I mostly only need an occasional document scanned, I'm using
the command line option. Anyone interested in that can read below for
instructions.



[Instructions for command line scanning on kodakaio with sane]

1) I first removed the v1.0.24 libsane, libsane-common, and sane-utils
   via Synaptic Package Manager

2) I got v1.0.23 of the sane-backends from:
   https://alioth.debian.org/frs/?group_id=30186

3) Extracted that and then ran the following command in the new
   diretory:

# ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
# BACKENDS=kodakaio

4) Then, I did NOT use "make install" (that's part of what led to having
   to reinstall my OS). Instead, I used Synaptic to install
   "checkinstall" (it makes package available/uninstallable via
   Synaptic). Once installed, close Synaptic and then run this command:

# checkinstall



Here's how I do an 8.5x11 (US Letter size) scan:

# cd /home/user/Documents  (or wherever you want the scan saved)

# scanimage -d kodakaio --mode gray --resolution 300 -x 215.9 -y 279.40
# > MyDocScan.pgm

(for different sizes, note that x/y are in millimeters)



To see other options (for color/resolution/etc), do this command:
# scanimage --help -d 'kodakaio'



Once scanned, you can then adjust the image with GIMP. For a document,
this is what I do in GIMP:

.. Colors -> Brightness/Contrast -> Contrast to 30

.. Image -> Scale Image -> Then choose either 300 or 72 pixel resolution
(72 is blurry), and set to 8.5x11 inches

.. File -> Export -> Select File Type (Portable Doc Format / PDF) ->
Export



This is not ideal, but it works. Again, another (maybe safer) option is
to use Ubuntu on a pen-drive for infrequent scanning. If anyone finds a
way to get the kodaio working on Debian Jessie's current sane/libsane,
please post a followup. I'd much rather use a GUI like xsane or
simplescan.



Original post:

https://lists.debian.org/debian-user/2016/03/msg00241.html


Re: SANE scanner error on Debian Jessie

2016-03-08 Thread New Linux
Thanks Lisi, but still having the same trouble...

I did this:

1) To /etc/apt/sources.list I added the line: deb
   http://http.debian.net/debian/ jessie-backports main

2) Then did:  apt-get update

3) Then did: apt-get -t jessie-backports install sane libsane libsane-
   common sane-utils

But when I try to scan, I get the same errors as described previously.
Am I doing something wrong there?



- Original message -
From: Lisi Reisz 
To: debian-user@lists.debian.org
Subject: Re: SANE scanner error on Debian Jessie
Date: Tue, 8 Mar 2016 23:01:42 +


> Some new information about SANE scanner problem:
>
> Debian (scanner not working): libsane 1.0.24 libsane-common 1.0.24
>
> Ubuntu (scanner working): libsane 1.0.23 libsane-common 1.0.23
>
> To experiment, I used synaptic to remove everything related to SANE on
> Debian Jessie, and then compiled SANE 1.0.23 from source on it. And
> then command line SCANNING WORKED - Great!
>
> Unfortunately, as soon as I reinstalled either XSane or SimpleScan,
> synaptic reinstalled SANE 1.0.24 and then nothing worked again.
>
> If these questions sound like I don't know what I'm doing, it's
> because I don't know what I'm doing (amateur Debian user):
>
> 1) Is there some way I can install the older SANE 1.0.23 via Synaptic?
> 2) Alternatively, since SANE 1.0.22 was part of Wheezy - can that be
>installed via Synaptic on Jessie?

I wrote half an email before doing the correct Google search. :-(

I see that the Jessie libsane problem has already been solved:
https://packages.debian.org/search?keywords=libsane=names=all=all

So follow these directions for using Backports, and you will be home and
dry: http://backports.debian.org/Instructions/

I don't know how you use backports in Synaptic. In Aptitude it is the
same as in apt-get, mutatis mutandis. You could always use apt-get just
this once!

Lisi
>
> Original post:
> https://lists.debian.org/debian-user/2016/03/msg00241.html



Re: SANE scanner error on Debian Jessie

2016-03-08 Thread New Linux
Some new information about SANE scanner problem:

Debian (scanner not working): libsane 1.0.24 libsane-common 1.0.24

Ubuntu (scanner working): libsane 1.0.23 libsane-common 1.0.23

To experiment, I used synaptic to remove everything related to SANE on
Debian Jessie, and then compiled SANE 1.0.23 from source on it. And then
command line SCANNING WORKED - Great!

Unfortunately, as soon as I reinstalled either XSane or SimpleScan,
synaptic reinstalled SANE 1.0.24 and then nothing worked again.

If these questions sound like I don't know what I'm doing, it's because
I don't know what I'm doing (amateur Debian user):

1) Is there some way I can install the older SANE 1.0.23 via Synaptic?
2) Alternatively, since SANE 1.0.22 was part of Wheezy - can that be
   installed via Synaptic on Jessie?

Hope someone can help!


Original post:
https://lists.debian.org/debian-user/2016/03/msg00241.html