[sane-devel] HP ScanJet 2200C kernel2.6+libusb not works

Reviczky Ádám János Reviczky Ádám János
Wed, 16 Mar 2005 17:32:20 +0100


Hi!

Sinse i switched to the 2.6 kernel my scanner not works. I have a HP ScanJet 2200C, that has work fine with the 2.4 kernel tree. I use Debian Sarge with kernel 2.6.11, and all usb modules for scanning are avaible. Libusb is installed, i work as the root user and i get following:

sane-find-scanner
found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x0605 [HP ScanJet2200C]) at libusb:002:002

So i see my scanner in the lsusb and with sane-find-scanner.

My installed versions are:
ii  libsane        1.0.15-7       API library for scanners
ii  sane           1.0.13-2       scanner graphical frontends
ii  sane-utils     1.0.15-7       API library for scanners -- utilities
ii  libusb-0.1-4   0.1.10a-6      userspace USB programming library

But with scanimage i get always:
scanimage -L
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

On the sane homepage (http://www.sane-project.org/cgi-bin/driver.pl?manu=&model=2200C&bus=any) is this scanner complete supported since plustek backend verions 0.48.

plustek | 0.48 | Hewlett-Packard | status:complete | ScanJet 2200C | USB

I turned all backends except the plustek off, and i taked a look in the plustek backend config of sane, but my changes on the device entry don't solve the problem. So i used the debug level 255 for sane and for the plustek backend, that gives me:

export SANE_DEBUG_DLL=255 ; scanimage -L
[sanei_debug] Setting debug level of dll to 255.
[dll] sane_init: SANE dll backend version 1.0.11 from sane-backends 1.0.15
[dll] sane_init/read_config: reading dll.conf
[dll] add_backend: adding backend `plustek'
[dll] sane_init/read_dlld: processing /etc/sane.d/dll.d ...
[dll] sane_init/read_dlld: considering /etc/sane.d/dll.d/libsane-extras
[dll] sane_init/read_config: reading dll.d/libsane-extras
[dll] sane_init/read_dlld: done.
[dll] sane_get_devices
[dll] load: searching backend `plustek' in `/usr/lib/sane'
[dll] load: trying to load `/usr/lib/sane/libsane-plustek.so.1'
[dll] load: dlopen()ing `/usr/lib/sane/libsane-plustek.so.1'
[dll] init: initializing backend `plustek'
[dll] init: backend `plustek' is version 1.0.0
[dll] sane_get_devices: found 0 devices

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
[dll] sane_exit: exiting
[dll] sane_exit: calling backend `plustek's exit function
[dll] sane_exit: finished

This gives me no more informations, but the plustek backend:

export SANE_DEBUG_PLUSTEK=255 ; scanimage -L
[dll] init: initializing backend `plustek'
[sanei_debug] Setting debug level of plustek to 255.
[plustek] Plustek backend V0.49-2, part of sane-backends 1.0.15
[plustek] Retrieving all supported and conntected devices
[plustek] Checking for 0x07b3-0x0010
...
[plustek] Checking for 0x03f0-0x0605 //This is my scanner !!!//
...
[plustek] Checking for 0x04a9-0x220e
[plustek] Available and supported devices: //it says, that the device is available ans supported!!!//
[plustek] Device: >libusb:002:002< - 0x03f0x0x0605
[plustek] ># Plustek-SANE Backend configuration file<
[plustek] ># For use with Plustek parallel-port scanners and<
[plustek] ># LM9831/2/3 based USB scanners<
... //here comes the default config file, that i dont changes, only the following device lines!//
[plustek] >#<
[plustek] ><
[plustek] >[usb] 0x03f0 0x0605<
[plustek] next device is a USB device (0x03F0-0x0605)
[plustek] ... next device
[plustek] >device libusb:002:002< //i've tried here all variations, with auto, with /dev/scanner, etc, but the output was always the same!!!/
[plustek] Decoding device name >libusb:002:002<
[plustek] ><
[plustek] >#<
... //the rest of the config file//
[plustek] >#<
[plustek] attach (libusb:002:002, 0xbfffc860, (nil))
[plustek] Device configuration:
[plustek] device name  : >libusb:002:002<
[plustek] USB-ID       : >0x03F0-0x0605<
[plustek] model ovr.   : 0
[plustek] warmup       : 15s
[plustek] lampOff      : 300
[plustek] lampOffOnEnd : yes
[plustek] cacheCalData : no
[plustek] altCalibrate : no
[plustek] skipCalibr.  : no
[plustek] skipFine     : no
[plustek] skipFineWhite: no
[plustek] invertNegs.  : no
[plustek] dis.Speedup  : no
[plustek] pos_x        : 0
[plustek] pos_y        : 0
[plustek] pos_shading_y: -1
[plustek] neg_x        : 0
[plustek] neg_y        : 0
[plustek] neg_shading_y: -1
[plustek] tpa_x        : 0
[plustek] tpa_y        : 0
[plustek] tpa_shading_y: -1
[plustek] red gain     : -1
[plustek] green gain   : -1
[plustek] blue gain    : -1
[plustek] red offset   : -1
[plustek] green offset : -1
[plustek] blue offset  : -1
[plustek] red lampoff  : -1
[plustek] green lampoff: -1
[plustek] blue lampoff : -1
[plustek] red Gamma    : 1.00
[plustek] green Gamma  : 1.00
[plustek] blue Gamma   : 1.00
[plustek] gray Gamma   : 1.00
[plustek] ---------------------
[plustek] usbDev_open(libusb:002:002,0x03F0-0x0605) - 0x8052cd0
[plustek] Vendor ID=0x03F0, Product ID=0x0605
[plustek] usbio_DetectLM983x
[plustek] UIO error
[plustek] This is not a LM9831 or LM9832 chip based scanner. //i dont understand this point! It is a LM9831 or LM9832 chip based scanner!/
[plustek] open failed: -1
[dll] init: backend `plustek' is version 1.0.0
[plustek] sane_get_devices (0xbfffe988, 0)
[dll] sane_get_devices: found 0 devices

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
[dll] sane_exit: exiting

And the lsusb output:
Bus 002 Device 002: ID 03f0:0605 Hewlett-Packard ScanJet 2200c

cat /proc/bus/usb/devices
T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=ff MxPS= 8 #Cfgs=  1
P:  Vendor=03f0 ProdID=0605 Rev= 1.00
S:  Manufacturer=Hewlett-Packard
S:  Product=HP ScanJet 2200C
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=ff Driver=(none)
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=16ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms


I need a little help with this, thanx!

Greets:
Adam Reviczky

PS.: Sorry for the long mail, with the logs, but i've tried so much things and nothing helps. This is all information that i found for this problem. And again, it WORKS with the 2.4 kernel without any problems!