[sane-devel] Re: umax_pp works well with "port 0x378" bot not with "/dev/parport0"

stef svoltz at wanadoo.fr
Fri Oct 17 22:26:31 BST 2003


On Fri, Oct 17, 2003 at 04:52:05PM +0200, Sven Hergenhahn wrote:
> Hi Stef,
> 
> >  It might be worth passing parameter to the parallel port module in
> > /etc/modules.conf to have it used:
> > options parport_pc io=0x378 irq=7 dma=none
> 
> OK, done. It works now as root with port /dev/parport0, but still as normal 
> user, I get the following:
> 
> sven at gimli:/dev$ /usr/src/sane-backends-1.0.12/tools/umax_pp -p -t 32

	There's a small typo, you have to specify '-n /dev/parport0' to
use ppdev. So the tool tries irect hardware access.

> [sanei_debug] Setting debug level of umax_pp_low to 32.
> [umax_pp_low] SANE_INB level 3
> [umax_pp_low] sanei_umax_pp_InitPort(0x378,(null))
> [umax_pp_low] sanei_ioperm() could not gain access to 0x378
> failed to gain direct acces to port 0x378!
> 
> permissions are:
> sven at gimli:/dev$ ls -l parp*
> crw-rw-rw-    1 root     lp        99,   0 2003-10-13 12:18 parport0
> crw-rw-rw-    1 root     lp        99,   1 2003-10-13 12:18 parport1
> crw-rw-rw-    1 root     lp        99,   2 2003-10-13 12:18 parport2
> 
> PPDIAG (as root) is still:
> sven at gimli:/dev$ sudo /home/sven/bin/ppdiag
> S01: parport built as module
> 
> S02: parport0:
> S02:    modes:PCSPP,TRISTATE,EPP
> S02:    ADDR :0x378
> S02:    IRQ  :7
> S02:    DMA  :no DMA used
> 
> S03: no parport parameters
> 
> S10: couldn't find if ppdev is built in or a module
> S10: It is likely that your kernel configuration has no ppdev support
> S10: exiting ...
> 
> 
> Did I miss anything?
> 
> Thanks,
> Sven
> 
> 
> 

	The rest looks fine. But I'm afraid that the successful test as 'root'
was done with direct hardware access.

Regards,
	Stef
> >
> > 	Also, running the umax_pp tool with a trace level of 32 (-t 32) will give
> > some hints on what modes are detected.
> >
> > Regards,
> > 	Stef
> >
> > _______________________________________________
> > sane-devel mailing list
> > sane-devel at lists.alioth.debian.org
> > http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> 
> 
> _______________________________________________
> sane-devel mailing list
> sane-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/sane-devel




More information about the sane-devel mailing list