plustek@linuxhacker.org
plustek@linuxhacker.org
Hello,
Please excuse the long message but I want to make sure all useful
information is included.
I've skimmed the archives and I haven't found anything about pt_drv
mis-identifying a scanner.
I have a pport 9636P scanner. I used to be able to use it under linux
kernel 2.2, but now that I've switched to kernel 2.4.x I have run into
some problems (aside: my computer and scanner have been in storage for
a few years; that is why I am just moving to 2.4 now).
Under kernel 2.2.x I was using sane 1.0.0 (or 1.0.3) IIRC and a 3x
version of the pt_drv module. Things worked OK, although sometimes the
image aspect ratio seemed a bit stretched in the long direction. Not a
big problem for me.
I now have sane-backends 1.0.12 and plustek module 0.45-5. Everything
compiles without a hitch, the module loads fine, Xsane finds the device
etc. But when I try to do a preview scan, the scanner makes some noise
but doesn't move, and then either (a) Xsane tells me that the operation
was cancelled or (b) Xsane segfaults. I successfully did some actual
scans, though. BUT: the colour was all messed up. There looked to be a
yellow gradient running across the scanned image, and some colours
appeared to have "bled".
I noticed in the pt_drv comments that the auto detect code has been
changed between 3x and 4x. I'm wondering if the new pt_drv code
mis-identifies my scanner?
Take a look:
with 0.45-5:
cat /proc/pt_drv/device0/info:
Model : 12000P/96000P
Portaddress : 0x378
Portmode : SPP (delayed I/O, autodetect)
Buttons : 0
Warmuptime : 30s
Lamp timeout: 180s
mov-switch : 0
I/O-delay : 0
CCD-Type : SONY Type
TPA : no
I hacked the pt_drv 0_36_38 src a bit (get_fast_time -->
do_gettimeofday etc) and managed to get it to load. It detects a
different device:
With 0_36_38:
cat /proc/pt_drv
Plustek Flatbed Scanner Driver
Version 0.36-39
Device 0: 9636T/12000T
Button: 0
On a whim I compiled sane-1.0.3 and installed it in
/usr/local/sane-old. Then I compiled Xsane against these libs and
installed it under /usr/local/sane-old/bin. With the old module loaded,
this Xsane finds the device. But it segfaults when I try to do a
preview. Darn!
Here is the parport related part of my kernel config:
CONFIG_PARPORT=m
CONFIG_PARPORT_PC=m
CONFIG_PARPORT_PC_CML1=m
Here is the relevent part of my installed modules:
agray@chalco[10]<linux-2.4.21>$ /sbin/lsmod
Module Size Used by
pt_drv-103 90352 0 (unused)
parport_pc 11920 2 (autoclean)
lp 5888 0 (unused)
parport 13856 2 [pt_drv-103 parport_pc lp]
I'm not at home right now; when I get there I'm going to check my bios
to see what the pport settings are. I'm also willing to try any and all
pt_drv patches and post debug output from /var/log/messages.
One last aside: I have a Lexmark Z31 printer on the same pport and I am
able to use it without problems.
Thanks,
- Andrew
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca
plustek@linuxhacker.org