[sane-devel] plustek_pp not working properly for 12000P

Brian J Densmore brian at amason.net
Tue Sep 13 20:39:20 UTC 2005


I am running a debian system with a manually compiled/installed 2.6.13 
kernel.
I've built the plustek pp kernel module and use that. Scanimage can't 
find the
scanner, unless it is specified on a -d option, or via an environment 
default scanner
setting. Scanning in only works in lineart or dithered modes. The gray 
and color modes
produce only solid black output. Perhaps this is not the right forum for 
this, but this scanner worked in Mandrake, and obviously still works 
based on the dithered images.

output of my /proc fs :

brian:~$ cat /proc/pt_drv/device0/info
Model       : 12000P/96000P
Portaddress : 0x378
Portmode    : EPP (fast I/O, autodetect)
Buttons     : 0
Warmuptime  : 0s
Lamp timeout: 0s
mov-switch  : 0
I/O-delay   : 0
CCD-Type    : SONY Type
TPA         : no

brian:~$ cat /proc/pt_drv/info
Plustek Flatbed Scanner Driver version 0.43-7
Devices      : 1
IOCTL-Version: 0x00000104

----------------------------------------
Output of scanimage with a default device:

brian:~$ export SANE_DEFAULT_DEVICE=plustek_pp:/dev/pt_drv0
brian:~$ 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).
default device is `plustek_pp:/dev/pt_drv0'

------------------------------------------------------
Output of scanimage with debugging turned on:

root:/home/brian# scanimage
[sanei_debug] Setting debug level of plustek_pp to 256.
[plustek_pp] PlustekPP backend V0.43-7, part of sane-backends 1.0.16
[plustek_pp] ># Plustek-PP SANE Backend configuration file<
[plustek_pp] ># For use with Plustek parallel-port scanners<
[plustek_pp] >#<
[plustek_pp] ><
[plustek_pp] >#<
[plustek_pp] ># user either [direct] or [kernel] to access the scanner<
[plustek_pp] ># when using [kernel], device specifies the device-node, 
which is created<
[plustek_pp] ># by the kernel-module loader (applies only to Linux)<
[plustek_pp] ># when using [direct], device is used to set the 
parallel-port base address<
[plustek_pp] ># or a device-name suitable for libieee1284, i.e. parport0<
[plustek_pp] >#<
[plustek_pp] >[direct]<
[plustek_pp] >device 0x378<
[plustek_pp] Decoding device name >0x378<
[plustek_pp] ><
[plustek_pp] >#<
[plustek_pp] ># leave the default values as specified in /etc/modules.conf<
[plustek_pp] >#<
[plustek_pp] >option warmup    -1<
[plustek_pp] Decoding option >warmup<
[plustek_pp] >option lOffOnEnd -1<
[plustek_pp] Decoding option >lOffOnEnd<
[plustek_pp] >option lampOff   -1<
[plustek_pp] Decoding option >lampOff<
[plustek_pp] ><
[plustek_pp] ># model override switch, mostly for cosmetic changes, if 
the autodetection<
[plustek_pp] ># does not work or could not work correctly<
[plustek_pp] >#option mov 7<
[plustek_pp] ><
[plustek_pp] >#<
[plustek_pp] ># example for accessing the scanner via libieee1284<
[plustek_pp] >#<
[plustek_pp] >[direct]<
[plustek_pp] attach (0x378, 0xbfffc8c8, (nil))
[plustek_pp] Device configuration:
[plustek_pp] device name   : >0x378<
[plustek_pp] direct I/O    : yes
[plustek_pp] warmup        : -1s
[plustek_pp] lampOff       : -1
[plustek_pp] lampOffOnEnd  : yes
[plustek_pp] model override: 0
[plustek_pp] ---------------------
[plustek_pp] drvopen()
[plustek_pp] open: PtDrvInit failed: 4
[plustek_pp] open failed: -1
[plustek_pp] >device 0x378<
[plustek_pp] Decoding device name >0x378<
[plustek_pp] >#device parport0<
[plustek_pp] ><
[plustek_pp] >#<
[plustek_pp] ># example for accessing the scanner via the kernel module<
[plustek_pp] >#<
[plustek_pp] >#[kernel]<
[plustek_pp] >device /dev/pt_drv0<
[plustek_pp] Decoding device name >/dev/pt_drv0<
[plustek_pp] >#<
[plustek_pp] >#option warmup    -1<
[plustek_pp] >#option lOffOnEnd -1<
[plustek_pp] >#option lampOff   -1<
[plustek_pp] attach (/dev/pt_drv0, 0xbfffc8c8, (nil))
[plustek_pp] Device configuration:
[plustek_pp] device name   : >/dev/pt_drv0<
[plustek_pp] direct I/O    : yes
[plustek_pp] warmup        : -1s
[plustek_pp] lampOff       : -1
[plustek_pp] lampOffOnEnd  : yes
[plustek_pp] model override: 0
[plustek_pp] ---------------------
[plustek_pp] drvopen()
[plustek_pp] open: PtDrvInit failed: 4
[plustek_pp] open failed: -1
[plustek_pp] sane_open - /dev/pt_drv0
[plustek_pp] attach (/dev/pt_drv0, 0xbfffd8fc, 0xbfffe948)
[plustek_pp] Device configuration:
[plustek_pp] device name   : ><
[plustek_pp] direct I/O    : no
[plustek_pp] warmup        : 0s
[plustek_pp] lampOff       : 0
[plustek_pp] lampOffOnEnd  : no
[plustek_pp] model override: 0
[plustek_pp] ---------------------
[plustek_pp] drvopen()
[plustek_pp] Scanner information:
[plustek_pp] Vendor : Plustek
[plustek_pp] Model  : 12000P/96000P
[plustek_pp] Asic   : 0x10
[plustek_pp] Flags  : 0x00000200
[plustek_pp] drvclose()
[plustek_pp] attach: model = >12000P/96000P<
[plustek_pp] Presetting Gamma tables (len=256)
[plustek_pp] ----------------------------------
[plustek_pp] sane_start
[plustek_pp] drvopen()
[plustek_pp] scanmode = 3
[plustek_pp] bright 0 contrast 0
[plustek_pp] Setting map[0] at 0x080573a4
[plustek_pp] Setting map[1] at 0x0805b3a4
[plustek_pp] Setting map[2] at 0x0805f3a4
[plustek_pp] dwflag = 0xc00 dwBytesPerLine = 744, dwLinesPerScan = 150
[plustek_pp] TIME START
[plustek_pp] reader_process started (forked)
[plustek_pp] reader_process:starting to READ data (111600 bytes)
[plustek_pp] buf = 0x08063900
[plustek_pp] sane_start done
P6
# SANE data follows
248 150
255
...
[plustek_pp] drvclose()
[plustek_pp] TIME END 1: 18s
[plustek_pp] Child is down (signal=17)
[plustek_pp] close r_pipe
[plustek_pp] sane_cancel
[plustek_pp] do_cancel
[plustek_pp] TIME END 2: 22s
[plustek_pp] sane_close
[plustek_pp] sane_exit

Please help.

Thanks,
Brian JD



More information about the sane-devel mailing list