Problem with paraler port
- thegala
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 1
21 Jun 2013 19:52 #35881
by thegala
Problem with paraler port was created by thegala
I have problem with my parport.
When i rum emc i get
config string '0x378 out '
Failed to claim parallel port /dev/parport0
hal_parport: rtapi_app_main: -19
cat /proc//ioports | grep par
0378-037a : parport0
I run ubuntu 12.04 with xenomai rt
uname -r
3.2.21-xenomai+
When i rum emc i get
config string '0x378 out '
Failed to claim parallel port /dev/parport0
hal_parport: rtapi_app_main: -19
cat /proc//ioports | grep par
0378-037a : parport0
I run ubuntu 12.04 with xenomai rt
uname -r
3.2.21-xenomai+
Please Log in or Create an account to join the conversation.
- thegala
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 1
21 Jun 2013 20:14 #35884
by thegala
Replied by thegala on topic Problem with paraler port
I fixed a problem. ( at last )
dmesg output
[ 4644.623839] ppdev0: failed to register device!
[ 4719.276690] parport0: cannot grant exclusive access for device ppdev0
so i run
rmmod lp
And all is working now.
dmesg output
[ 4644.623839] ppdev0: failed to register device!
[ 4719.276690] parport0: cannot grant exclusive access for device ppdev0
so i run
rmmod lp
And all is working now.
The following user(s) said Thank You: fire_lizard
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
Less
More
- Posts: 25
- Thank you received: 761
21 Jun 2013 22:53 #35889
by ArcEye
Replied by ArcEye on topic Problem with paraler port
Hi
If you are running a standard install check
/etc/modules this is likely where lp is being loaded - just comment it out
and
/etc/modprobe.d/linuxcnc.conf
and uncomment
install parport_pc /bin/true
which will stop parport_pc, and with it ppdev and lp loading
regards
If you are running a standard install check
/etc/modules this is likely where lp is being loaded - just comment it out
and
/etc/modprobe.d/linuxcnc.conf
and uncomment
install parport_pc /bin/true
which will stop parport_pc, and with it ppdev and lp loading
regards
Please Log in or Create an account to join the conversation.
- johansense
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
04 Dec 2013 08:29 #41323
by johansense
Replied by johansense on topic Problem with paraler port
I believe i have the same problem.
however it is only after restarting linuxCNC that it fails to claim the parallel port.
since linux cnc has to be restarted everytime the configuration is changed, this is a bit of a problem
the fix is to restart the computer, but logging out isn't enough.
so i think i can "fix it" by running rmmod lp but i would rather not break anything.
the computer i'm speaking of isn't on the internet yet, will get back with more details.
however it is only after restarting linuxCNC that it fails to claim the parallel port.
since linux cnc has to be restarted everytime the configuration is changed, this is a bit of a problem
the fix is to restart the computer, but logging out isn't enough.
so i think i can "fix it" by running rmmod lp but i would rather not break anything.
the computer i'm speaking of isn't on the internet yet, will get back with more details.
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
Less
More
- Posts: 25
- Thank you received: 761
04 Dec 2013 17:13 - 04 Dec 2013 20:01 #41334
by ArcEye
Replied by ArcEye on topic Problem with paraler port
Hi
lp, ppdev and partport_pc should not be loaded, they will claim the parport before Linuxcnc starts and it will be unable to work.
This mostly occurs where someone has loaded Linuxcnc onto a vanilla distro install, rather than installing from the Live CD.
The expectation with a vanilla install is that the user will want to print stuff, so the generic drivers are loaded.
You cannot do any harm just using rmmod, but a more elegant solution is to blacklist them or install them to null.
If you think they should be blacklisted already and don't know why they are reloading when you quit Linuxcnc, look at /lib/modules/your-kernel-version/modules.dep and you will find the dependency chain for lp, ppdev, parport_pc
Just check that there is not another driver initiating their loading
regards
lp, ppdev and partport_pc should not be loaded, they will claim the parport before Linuxcnc starts and it will be unable to work.
This mostly occurs where someone has loaded Linuxcnc onto a vanilla distro install, rather than installing from the Live CD.
The expectation with a vanilla install is that the user will want to print stuff, so the generic drivers are loaded.
You cannot do any harm just using rmmod, but a more elegant solution is to blacklist them or install them to null.
If you think they should be blacklisted already and don't know why they are reloading when you quit Linuxcnc, look at /lib/modules/your-kernel-version/modules.dep and you will find the dependency chain for lp, ppdev, parport_pc
Just check that there is not another driver initiating their loading
regards
Last edit: 04 Dec 2013 20:01 by ArcEye.
Please Log in or Create an account to join the conversation.
Time to create page: 0.051 seconds