plustek: Scanner Sometimes Works


Previous by date: 30 Jan 2001 07:34:40 -0000 mandrake 7.2, Forrest White
Next by date: 30 Jan 2001 07:34:40 -0000 Re: mandrake 7.2, Jaeger, Gerhard
Previous in thread:
Next in thread: 30 Jan 2001 07:34:40 -0000 Re: Scanner Sometimes Works, Jaeger, Gerhard

Subject: Scanner Sometimes Works
From: Paul Boniol ####@####.####
Date: 30 Jan 2001 07:34:40 -0000
Message-Id: <3A766F6E.6060506@home.com>

I appologize for the length, but am not sure what may help decipher what is
going on with my system.

I can sometimes get my parallel port scanner to work with Linux (I've 
had it for a
while.  Probably bought before I got into Linux.)  but it takes quite a 
bit of playing
to get it to work.  It is a Plustek OpticPro 9636T.  Connected to lp1,  
ioport
0x278, IRQ 3, DMA 3 (although the DMA does not show up in /proc/dma, but
it does in /proc/parport/1/hardware?)  I know IRQ3 is usually COM2, but 
I am low on
IRQ's and don't have a COM2 on this computer.

I had installed SANE 1.0.3-2 from the RPM when I installed Mandrake 7.2.
I downloaded, compiled and installed the Plustek module (version 0-36-37)
according to the directions.  Inserted the proper lines into 
/etc/modules.conf
and /etc/modules.  When the computer reboots all appears to go well.
All the log messages are fine, no errors, shows proper options were used,
modules installed, etc.

If I do
scanimage -L
it will list the scanner most of the time, but if I do it again, the
command does not have any output until I unload the scanner
module.  (Message is   `plustek:/dev/pt_drv' is a Plustek 9636T/
12000T Driver-Version 0.36 flatbed scanner)

If I try
scanimage --format PPM --mode Color > test.ppm
it will usually give the message
scanimage: no SANE devices found
and occasionally
scanimage: sane_start: Error during device I/O
and once every now and then, it works.

The only way I have been able to get it to work is to unload the
Plustek module (pt_dev) before running scanimage.  (Scanimage
loads the module again when it starts.)

The results are similar under X using the xscanimage plugin for Gimp.
Starting Gimp from a terminal, it will occasionally display the message
xscanimage: no devices available.
Most of the time (and always following the previous message) it will
display
Gtk-CRITICAL**: file gtkmain.c line 534 (gtk_main_quit): assertion
'main_loops != NULL' failed.
Occasionally it will display the scanner interface.  When it does, it will
usually respond
Failed to start scanner: Error during device I/O
when you click scan or   Preview Window and Acquire Preview.
After it has scanned once, (either scan or preview), it will not scan
again until closed, module removed, and the process started again.

I tried to determine if it was some sort of  a timing/scanner stage
[warming up, ready, light on, light off]  issue but was not able to
determine any pattern other than if the light turned off, then on, the
next time I tried it would usually load [but not necessarily scan].

Any other details:
I had made /dev/pt_dev, which is the default device for the driver.
crw-rw-r-- 1 root root 40,0 Jan 28 5:00 /dev/pt_dev
(Although there is another entry in /dev with character 40, 0 that was
created by the Mandrake install, mmetfgrab. 
ln -s /dev/mmetfgrab /dev/pt_dev  did not work.)

Selected lines from /etc/modules.conf
alias parport_lowlevel parport_pc
options parport_pc io0x378,0x278 irq=7,3 dma=-1,3
alias char-major-40 pt_drv
options pt_drv lampoff=180 warmup=15 port=0x278 lOffonEnd=0 mov=0

/etc/modules
scsi_hostadapter
sr_mod
parport
parport_pc
lp
pt_drv

Selected messages from /var/log/messages

During bootup
kernel: parport0: PC-style at 0x378, irq 7 [SPP,PS2,EPP]
kernel: parport1: PC-style at 0x278 (0x678), irq 3, dma 3 
[SPP,ECP,ECPEPP,ECPPS2]
kernel: lp0: using parport0 (interrupt-driven).
kernel: lp1: using parport1 (interrupt-driven).
kernel: pt_drv : driver version = 0.36-38
kernel: pt_drv : driver version = 0.36-38

After rmmod, modprobe creates these messages in /var/log/messages

kernel: pt_drv : driver version = 0.36-38
kernel: pt_drv : driver version = 0.36-38
kernel: pt_drv0: 9636T/12000T found on port 0x0278
kernel: pt_drv0: Lamp-Timer set to 180 seconds.
kernel: pt_drv0: WarmUp period set to 15 seconds.
kernel: pt_drv0: Lamp untouched on driver unload.

Sometimes followed by one of the following:
modprobe: modprobe: Can't locate module binfmt-0000
modprobe: modprobe: Can't locate module char-major-81

Any particular options that should be seclected during a kernel compile
that are necessary for SANE/the plustek driver?  (Printer works fine
on lp0, if that means anything.)

Any ideas what's going on or how to get it to work consistently?

Paul


Previous by date: 30 Jan 2001 07:34:40 -0000 mandrake 7.2, Forrest White
Next by date: 30 Jan 2001 07:34:40 -0000 Re: mandrake 7.2, Jaeger, Gerhard
Previous in thread:
Next in thread: 30 Jan 2001 07:34:40 -0000 Re: Scanner Sometimes Works, Jaeger, Gerhard


Powered by ezmlm-browse 0.20.