plustek: Thread: can't open /dev/pt_drv as a device


[<<] [<] Page 1 of 1 [>] [>>]
Subject: can't open /dev/pt_drv as a device
From: MnK ####@####.####
Date: 27 May 2000 17:18:38 -0000
Message-Id: <39300859.B2548A13@innocent.com>

Hello all,

This one is driving me nuts to say the least.

[big plustek_driver]# /usr/local/bin/scanimage -L
[plustek] dev_open: can't open /dev/pt_drv as a device
[plustek] attach: open failed: Error during device I/O 

I have wiped the sane and plustek sources and reinstalled per the HOWTO
and Gerhard's directions and this is the message I get repeatedly.

The scanner (OP9636T) lamp is coming on, then gets to the end of the
lamp timeout and shuts down.  I have tried while the lamp is on then
off.


I do get these errors while compiling the driver:

gcc -c -O3 -I/usr/X11R6/include -I./h -D_PTDRV_V1=0 -D_PTDRV_V0=34 
-Wall -Wstri
ct-prototypes -c src/genericio.c -o obj.user/genericio.o
src/genericio.c: In function `fnSppLineArtSpeed':
src/genericio.c:766: warning: suggest explicit braces to avoid ambiguous
`else'src/genericio.c: In function `ioP98SppNegativeProcs':
src/genericio.c:968: warning: suggest explicit braces to avoid ambiguous
`else'src/genericio.c: In function `ioP98EppNegativeProcs':

but I don't think this is causing the problem.

Is there some device I need to add to /dev ?

Mark Attanasio
Subject: Re: can't open /dev/pt_drv as a device
From: ####@####.#### (G. Jaeger)
Date: 28 May 2000 12:04:33 -0000
Message-Id: <12w1o9-0GeHb6C@fwd04.sul.t-online.de>

Mnk wrote:
>
>This one is driving me nuts to say the least.
>
>[big plustek_driver]# /usr/local/bin/scanimage -L
>[plustek] dev_open: can't open /dev/pt_drv as a device
>[plustek] attach: open failed: Error during device I/O 
>
>I have wiped the sane and plustek sources and reinstalled per the HOWTO
>and Gerhard's directions and this is the message I get repeatedly.
>
>The scanner (OP9636T) lamp is coming on, then gets to the end of the
>lamp timeout and shuts down.  I have tried while the lamp is on then
>off.
>

Strange, because the driver seems to be loaded. Have you recompiled the
Plustek backend ? 
Have you called the make install in the sane source directory ?
It looks like scanimage uses an old backend !

>
>
>I do get these errors while compiling the driver:
>
>gcc -c -O3 -I/usr/X11R6/include -I./h -D_PTDRV_V1=0 -D_PTDRV_V0=34 
>-Wall -Wstri
>ct-prototypes -c src/genericio.c -o obj.user/genericio.o
>src/genericio.c: In function `fnSppLineArtSpeed':
>src/genericio.c:766: warning: suggest explicit braces to avoid ambiguous
>`else'src/genericio.c: In function `ioP98SppNegativeProcs':
>src/genericio.c:968: warning: suggest explicit braces to avoid ambiguous
>`else'src/genericio.c: In function `ioP98EppNegativeProcs':
>
>but I don't think this is causing the problem.

You're right this is not the problem. This occurs for the new GCC 2.95
and didn't
when using the older GCC 2.72 (I use !)
But I will remove the warnings next time.

>
>Is there some device I need to add to /dev ?
>

This should be done by MakeKernel in backend/plustek_driver when
calling make load !

Gerhard



----------------------------------------
####@####.####
----------------------------------------


Subject: Re: can't open /dev/pt_drv as a device
From: Mark Sutton ####@####.####
Date: 28 May 2000 15:47:56 -0000
Message-Id: <Pine.GSO.4.10.10005271110330.19297-100000@lazo.capelazo.com>

Hi,
	I have had the same problem. I think there is a bug with
sane-1.0.2. The --disable-shared switch does in fact stop the production
of shared libs, but if one does a trace of sane it still tries to open
/usr/local/lib/sane/libsane-plustek.so.1, which is of course, not there!
And you get "can't open /dev/pt_drv as a device". I don't think this happened
with sane-1.0.1.
	The other thing I have noticed is sane will not clobber any of
the config files in /usr/local/etc/sane.d. The important one is dll.conf
which should have a "plustek" entry, as the new one that comes with the driver
does.
	After loading the new (0.35) driver, the 9630PL I have seems to
work perfectly! :-) No more color problems, no freezing of the machine.
Good work Gerhard et al. and thanks.

Mark


Subject: Re: can't open /dev/pt_drv as a device
From: ####@####.####
Date: 28 May 2000 17:09:23 -0000
Message-Id: <393152DD.51295B55@bellsouth.net>

MnK wrote:
> 
> Hello all,
> 
> This one is driving me nuts to say the least.
> 
> [big plustek_driver]# /usr/local/bin/scanimage -L
> [plustek] dev_open: can't open /dev/pt_drv as a device
> [plustek] attach: open failed: Error during device I/O
> 
> I have wiped the sane and plustek sources and reinstalled per the HOWTO
> and Gerhard's directions and this is the message I get repeatedly.
> 
> The scanner (OP9636T) lamp is coming on, then gets to the end of the
> lamp timeout and shuts down.  I have tried while the lamp is on then
> off.
> 
> I do get these errors while compiling the driver:
> 
> gcc -c -O3 -I/usr/X11R6/include -I./h -D_PTDRV_V1=0 -D_PTDRV_V0=34
> -Wall -Wstri
> ct-prototypes -c src/genericio.c -o obj.user/genericio.o
> src/genericio.c: In function `fnSppLineArtSpeed':
> src/genericio.c:766: warning: suggest explicit braces to avoid ambiguous
> `else'src/genericio.c: In function `ioP98SppNegativeProcs':
> src/genericio.c:968: warning: suggest explicit braces to avoid ambiguous
> `else'src/genericio.c: In function `ioP98EppNegativeProcs':
> 
> but I don't think this is causing the problem.
> 
> Is there some device I need to add to /dev ?
> 

You should see the folowing if you do "ls -al /dev/pt_drv"

crw-rw-r-   1 <owner> <group>  40, 0 <date> /dev/pt_drv

If it doesn't exist you need to create it with "make install" and
"make load" in the plustek_driver directory. You probably have to
be root to do this and unless you are using something like sudo
you need to be root to "insmod pt_drv"

	Kevin
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.