plustek: driver for LM983x based scanners next shot


Previous by date: 26 Nov 2001 20:16:23 -0000 Mailing list server, Alex Holden
Next by date: 26 Nov 2001 20:16:23 -0000 Re: driver for LM983x based scanners next shot, MichaelHäckel
Previous in thread: 26 Nov 2001 20:16:23 -0000 Re: driver for LM983x based scanners next shot, Kyrian
Next in thread: 26 Nov 2001 20:16:23 -0000 Re: driver for LM983x based scanners next shot, MichaelHäckel

Subject: Re: driver for LM983x based scanners next shot
From: Kyrian ####@####.####
Date: 26 Nov 2001 20:16:23 -0000
Message-Id: <3C02A33C.721ABD44@ore.org>

Gerhard,

"Jaeger, Gerhard" wrote:
> 
> Damn, I think the problem is the missing -
> between vendor and product ID, in the version 0.40-6 and before,
> the format is:
> 
> usb 0x07b3-0x0017
> /dev/usb/scanner0
> 
> I only use these IDs as one string :-(
> Hope this is it...

Sadly no. I've tried it with and without the hyphen.

I've tried many such things. I've checked for case sensitivity, I've
tried different line orderings, etc. etc.

I think the plustek.conf file isn't at fault here I'm afraid.

Anyway, I notice that on the page for the Plustek drivers, the UT12 is
down as working, which means (I assume) that someone has reported to you
that it works. From memory this might be Michael Häckel
####@####.#### 

Could whoever did get a Plustek UT12 working (if anyone) email me their
sane.d/plustek.conf, and /etc/modules.conf files? and anything else they
think would be useful? On or off list...

It looks to me like the sane_init function of the driver is returning
without doing anything... (ie. not even the DBG() macro calls in the
source code actually return anything to STDOUT when debugging is turned
on). I think the "return attach("/dev/pt_drv",0);" line might somehow be
getting called wrongly and hence returning the wrong result... or
something like that anyway.

I even tried a complete rebuild just now from source without involving
RPM spec files or anything, and that also failed to work.

Thanks.

Yours,

Kev.

PS. Some debugging... 

Firstly, the sane-internal debugging stuff...

[sanei_debug] Setting debug level of dll to 256.
[dll] sane_init: SANE dll backend version 1.0.4 from sane-backends-1.0.6
[dll] add_backend: adding backend net
[dll] add_backend: adding backend plustek
[dll] load: loading backend plustek
[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
scanimage: open of device plustek:/dev/usbscanner failed: Invalid
argument
[dll] sane_exit: exiting
[dll] sane_exit: calling backend `plustek's exit function

Here's an strace of the scanimage pointed to the /dev/usb/scanner0
device. It's a similar story if I use /dev/usbscanner as well (both
devices have the same major and minor numbers). It seems to show the
backend just opening up the config file, freeing its data structures
(munmap) and then exiting, without doing anything.

execve("/usr/bin/scanimage", ["scanimage", "--device",
"plustek:/dev/usb/scanner0"], [/* 30 vars */]) = 0
uname({sys="Linux", node="marius.ore.org", ...}) = 0
brk(0)                                  = 0x8050980
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=81236, ...}) = 0
old_mmap(NULL, 81236, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40016000
close(3)                                = 0
open("/usr/lib/libsane.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\27\0\000"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=25893, ...}) = 0
old_mmap(NULL, 21540, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x4002a000
mprotect(0x4002f000, 1060, PROT_NONE)   = 0
old_mmap(0x4002f000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x4000) = 0x4002f000
close(3)                                = 0
open("/lib/libnsl.so.1", O_RDONLY)      = 3
read(3, ####@####.####
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=414768, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40030000
old_mmap(NULL, 92288, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x40031000
mprotect(0x40044000, 14464, PROT_NONE)  = 0
old_mmap(0x40044000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x12000) = 0x40044000
old_mmap(0x40046000, 6272, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40046000
close(3)                                = 0
open("/lib/libm.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20J\0\000"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=529355, ...}) = 0
old_mmap(NULL, 125368, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x40048000
mprotect(0x40066000, 2488, PROT_NONE)   = 0
old_mmap(0x40066000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x1d000) = 0x40066000
close(3)                                = 0
open("/usr/lib/libjpeg.so.62", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000%\0\000"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=140596, ...}) = 0
old_mmap(NULL, 124360, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x40067000
mprotect(0x40085000, 1480, PROT_NONE)   = 0
old_mmap(0x40085000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x1d000) = 0x40085000
close(3)                                = 0
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\374\35"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=62826, ...}) = 0
old_mmap(NULL, 12676, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x40086000
mprotect(0x40088000, 4484, PROT_NONE)   = 0
old_mmap(0x40088000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x1000) = 0x40088000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\274"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=5134874, ...}) = 0
old_mmap(NULL, 1182312, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x4008a000
mprotect(0x401a2000, 35432, PROT_NONE)  = 0
old_mmap(0x401a2000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x117000) = 0x401a2000
old_mmap(0x401a7000, 14952, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401a7000
close(3)                                = 0
open("/lib/libnsl.so.1", O_RDONLY)      = 3
read(3, ####@####.####
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=414768, ...}) = 0
close(3)                                = 0
open("/lib/libm.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20J\0\000"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=529355, ...}) = 0
close(3)                                = 0
open("/usr/lib/libjpeg.so.62", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000%\0\000"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=140596, ...}) = 0
close(3)                                = 0
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\374\35"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=62826, ...}) = 0
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\274"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=5134874, ...}) = 0
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\274"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=5134874, ...}) = 0
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\274"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=5134874, ...}) = 0
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\274"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=5134874, ...}) = 0
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\274"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=5134874, ...}) = 0
close(3)                                = 0
munmap(0x40016000, 81236)               = 0
getpid()                                = 5207
brk(0)                                  = 0x8050980
brk(0x80509a8)                          = 0x80509a8
brk(0x8051000)                          = 0x8051000
open("./dll.conf", O_RDONLY)            = -1 ENOENT (No such file or
directory)
open("/etc/sane.d/dll.conf", O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=272, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40016000
read(3, "# enable the next line if you wa"..., 4096) = 272
brk(0x8052000)                          = 0x8052000
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40016000, 4096)                = 0
open("./dll.aliases", O_RDONLY)         = -1 ENOENT (No such file or
directory)
open("/etc/sane.d/dll.aliases", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=37, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40016000
read(3, "alias ut12 plustek:/dev/usb/scan"..., 4096) = 37
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40016000, 4096)                = 0
open("/usr/lib/sane/libsane-plustek.so.1", O_RDONLY) = 3
close(3)                                = 0
open("/usr/lib/sane/libsane-plustek.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\33\0"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=36587, ...}) = 0
old_mmap(NULL, 31044, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x40016000
mprotect(0x4001d000, 2372, PROT_NONE)   = 0
old_mmap(0x4001d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x6000) = 0x4001d000
close(3)                                = 0
open("./plustek.conf", O_RDONLY)        = -1 ENOENT (No such file or
directory)
open("/etc/sane.d/plustek.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=36, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x4001e000
read(3, "usb 0x07b3-0x0017\n/dev/usb/scann"..., 4096) = 36
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x4001e000, 4096)                = 0
write(2, "scanimage: open of device pluste"..., 77scanimage: open of
device plustek:/dev/usb/scanner0 failed: Invalid argument
) = 77
munmap(0x40016000, 31044)               = 0
_exit(1)                                = ?

Previous by date: 26 Nov 2001 20:16:23 -0000 Mailing list server, Alex Holden
Next by date: 26 Nov 2001 20:16:23 -0000 Re: driver for LM983x based scanners next shot, MichaelHäckel
Previous in thread: 26 Nov 2001 20:16:23 -0000 Re: driver for LM983x based scanners next shot, Kyrian
Next in thread: 26 Nov 2001 20:16:23 -0000 Re: driver for LM983x based scanners next shot, MichaelHäckel


Powered by ezmlm-browse 0.20.