Sane/usb-scanner


Forum: Other Help Topics
Topic: Sane/usb-scanner
started by: Patrick

Posted by Patrick on Feb. 21 2005,08:18
I am about to use my hp-(a-4)-scanner (usb) in DSL (at home). I noticed it is detected by DSL (usb-view). I think i need to apt-get SANE. But will that be enough?
Posted by Patrick on Feb. 21 2005,14:46
I apt-get -d the following deb's:

libgimp1.2_1.2.3-2_i386.deb
libpng3_1.2.1-1.1.woody.9_i386.deb
libusb-0.1-4_1%3a0.1.5-4_i386.deb
sane_1.0.7-2.1_i386.deb
xsane_0.84-2_i386.deb

made a little script with which i dpkg -i them all (in this order)

Tonight i 'll test this script with my hp-scanner.

Will let you know...

Ps: will test with:

scanimage -l

if my hp-scanner is Sane-compatible...

Posted by cbagger01 on Feb. 21 2005,18:41
http://www.qbik.ch/usb/devices/

for linux usb scanner compatibility information.

You might find some helpful tips about setting up your scanner or a similar model under linux.

Posted by Patrick on Feb. 22 2005,07:55
I tried the deb's and got a little bit of a result after changing the plustek.conf file. (the motor of the scanner started moving, nothing else... )

Then i read that the HP 2200c scanner was supported by sane from version 1.01 and up. (which is in deb-testing). Downloaded it (includes, defoma, perl, libpango, etc..) Sane version: 1.0.13-2, Xsane version 0.96-1.  18 mb packed, 120 mb unpacked!!!!  
:( (not for my usb-stick i am afraid)

I'll try it tonight at home (HD)

Let you know if it works...

Ps: found some info, my scanjet uses the plustek backend (but  there is no plustek-usb.deb, only a source-file/tar.gz-file)

Hewlett Packard Scanjet 2200C type: CCD chip: LM9832   VID: 0x03F0 PID: 0x0605

Posted by Patrick on Feb. 22 2005,13:08
Back to the stable deb's for sane and xsane..

This is a good link: < http://linux.about.com/library/cmd/blcmdl5_sane-plustek.htm >

I think the trick is to edit the plustek.conf file...    (/etc/sane.d/plustek.conf)

My plustek.conf right now:
# Plustek-SANE Backend configuration file
# For use with Plustek parallel-port scanners and
# LM9831/2 based USB scanners

#[parport]
#device /dev/pt_drv

# leave the default values as specified in /etc/modules.conf
warmup    -1
lOffOnEnd -1
lampOff   -1
#HP Scanjet 2200C
[usb] 0x03f0 0x0605
device /dev/usbscanner

option lampOff 0
option warmup 180
option lOffOnEnd 0

device /dev/usbscanner

Let you know how it turns out...

Posted by Patrick on Feb. 23 2005,07:39
Well, the plustek.conf file must be right because i got the scanner to "scan"/do something using the (frontend) command: saneadf (in a xterm). The command: scanimage -L showed that my hp-scanner is detected by sane (and supported). Only thing is Xsane (frontend-application) doesn't work. I get this error message:

[xsane] ERROR: license text not found. Looks like xsane is not installed correct.

Which is strange because i apt-get (-d) everything for sane and xsane and dpkg -i it all. (at work). Maybe i need to repeat this at home ? (different box)

This is the order in which i dpkg -i the deb-files: (which is the order in which apt-get wants it)

libgimp
libusb
libsane
sane
libpng
xsane

Ps: even a apt-get install sane/apt-get install xsane will eventually not work (give the above mentioned error for xsane)

Posted by Patrick on Feb. 23 2005,08:04
I just found out that i have to dpkg -i libusb BEFORE libsane (because of the dependency of libsane -> libusb). But xsane still won't budge...
Posted by Patrick on Feb. 23 2005,12:49
Ok, so the testing version of Xsane & Sane do startup (on my box at work). Tonight i wil test it at home with a scanner attached...

I just did that and now sane doesn't even detect my scanner.. (it could be that i am dkpg -i -ing the deb-files in the wrong order, there are a lot of them you know... and i am kind of "easy-going")

Posted by Patrick on Feb. 27 2005,17:12
Complete describition of what i am doing (wrong?)

apt-get update (stable)

apt-get install sane (5 Mb)
Configuration file `/etc/sane.d/plustek.conf'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
  What would you like to do about it ?  Your options are:
   Y or I  : install the package maintainer's version
   N or O  : keep your currently-installed version
     D     : show the differences between the versions
     Z     : background this process to examine the situation
The default action is to keep your current version.
*** plustek.conf (Y/I/N/O/D/Z) [default=N] ?

Y (i have already made a working plustek.conf and i replace the orginal one with my own)

apt-get install xsane (5 Mb)

root@0[dsl]# xsane
[xsane] ERROR: license text not found. Looks like xsane is not installed correct.


Reboot (so the installed sane/xsane is removed)

Trying testing-debian version

apt-get update (changed sourcelist to testing)
apt-get install sane (17 Mb unpacked)

configuring lib-pango1.0-common (answering yes/no doesn't make a difference)

Errors were encountered while processing:
libgphoto2-2
libgphoto2-port0
libsane
sane-utils
sane
E: Sub-process /usr/bin/dpkg returned an error code (1)

apt-get install xsane (1,6 mb unpacked)
Setting up libgphoto2-2 (2.1.5-3) ...
Adding group camera (101)...
groupadd: unable to open shadow group file
addgroup: `/usr/sbin/groupadd -g 101 camera' returned error code 10.  Aborting.
Cleaning up.
dpkg: error processing libgphoto2-2 (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of libgphoto2-port0:
libgphoto2-port0 depends on libgphoto2-2; however:
 Package libgphoto2-2 is not configured yet.
dpkg: error processing libgphoto2-port0 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libsane:
libsane depends on libgphoto2-2 (>= 2.1.5-2); however:
 Package libgphoto2-2 is not configured yet.
libsane depends on libgphoto2-port0 (>= 2.1.5-2); however:
 Package libgphoto2-port0 is not configured yet.
dpkg: error processing libsane (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sane-utils:
sane-utils depends on libsane (>= 1.0.11-3); however:
 Package libsane is not configured yet.
dpkg: error processing sane-utils (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sane:
sane depends on libsane (>= 1.0.11-3); however:
 Package libsane is not configured yet.
dpkg: error processing sane (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xsane:
xsane depends on libsane (>= 1.0.11-3); however:
 Package libsane is not configured yet.
dpkg: error processing xsane (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libgphoto2-2
libgphoto2-port0
libsane
sane-utils
sane
xsane
E: Sub-process /usr/bin/dpkg returned an error code (1)

But i am out of idea's right now...

This time Xsane does work but there is no scanner detected (scanimage -L doesn't find it either)

Posted by Patrick on Mar. 08 2005,12:44
I am out of luck... CAN ANYBODY HELP?
Posted by cbagger01 on Mar. 09 2005,03:10
Try using Synaptic to fix your dependency error, or read the apt-get or dpkg man pages to learn how to fix dependencies.

I do not know the specific answer to your problem.

Good Luck.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.