duni
7th September 2007, 11:31 AM
I need to play around with the parallel port to use it's 8bit IO data lines just for a simple logic analyzer. I have a software witch uses lubieee1284 and it works fine on other distros as far as I know, but on Fedora 7 on my both laptop and desktop computers I have the following problem:
ls -la /dev/parport*
crw-rw-rw- 1 root lp 99, 0 2007-09-06 17:41 /dev/parport0
crw-rw-rw- 1 root lp 99, 1 2007-09-06 17:41 /dev/parport1
crw-rw-rw- 1 root lp 99, 2 2007-09-06 17:41 /dev/parport2
crw-rw-rw- 1 root lp 99, 3 2007-09-06 17:41 /dev/parport3
libieee1284_test
Found 3 ports:
0x278:
0x378:
0x3bc:
0x278: inaccessible
0x378: inaccessible
0x3bc: inaccessible
cat /proc/ioports|grep par
0378-037a : parport0
037b-037f : parport0
As root I get(*):
libieee1284_test
Found 3 ports:
0x278:
0x378:
0x3bc:
0x278: 0x278
RAW NIBBLE BYTE COMPAT ECPSWE
0x378: 0x378
RAW NIBBLE BYTE COMPAT ECPSWE
0x3bc: 0x3bc
RAW NIBBLE BYTE COMPAT ECPSWE
*note that I have created /etc/ieee1284.conf with "disallow method ppdev" and with it root works fine.
In the program the libieee1284 throws an "E1284_INIT : There was a problem during port initialization. This could be because another driver has opened the port exclusively, or some other reason" error.
I don't have a printer daemon running on the parallel port. After creating the /etc/ieee1284.conf file root is also running fine, what could be the problem, that the users can not access the ports?
edit
The users are members of the lp group too and I have an udev permissions file which sets the parport permissions properly "parport[0-9]*:root:lp:0660".
ls -la /dev/parport*
crw-rw-rw- 1 root lp 99, 0 2007-09-06 17:41 /dev/parport0
crw-rw-rw- 1 root lp 99, 1 2007-09-06 17:41 /dev/parport1
crw-rw-rw- 1 root lp 99, 2 2007-09-06 17:41 /dev/parport2
crw-rw-rw- 1 root lp 99, 3 2007-09-06 17:41 /dev/parport3
libieee1284_test
Found 3 ports:
0x278:
0x378:
0x3bc:
0x278: inaccessible
0x378: inaccessible
0x3bc: inaccessible
cat /proc/ioports|grep par
0378-037a : parport0
037b-037f : parport0
As root I get(*):
libieee1284_test
Found 3 ports:
0x278:
0x378:
0x3bc:
0x278: 0x278
RAW NIBBLE BYTE COMPAT ECPSWE
0x378: 0x378
RAW NIBBLE BYTE COMPAT ECPSWE
0x3bc: 0x3bc
RAW NIBBLE BYTE COMPAT ECPSWE
*note that I have created /etc/ieee1284.conf with "disallow method ppdev" and with it root works fine.
In the program the libieee1284 throws an "E1284_INIT : There was a problem during port initialization. This could be because another driver has opened the port exclusively, or some other reason" error.
I don't have a printer daemon running on the parallel port. After creating the /etc/ieee1284.conf file root is also running fine, what could be the problem, that the users can not access the ports?
edit
The users are members of the lp group too and I have an udev permissions file which sets the parport permissions properly "parport[0-9]*:root:lp:0660".