paralle port dongle

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
archimedes1981
Level 1
Level 1
Posts: 5
Joined: Thu Jul 17, 2008 11:56 am

paralle port dongle

Post by archimedes1981 »

i have a parallel port dongle which i need to run a specific software.
i have managed to do the following but the dongle is still recognised.
i [user@localhost ~]$ ls -al ~/.wine/dosdevices
total 8
drwxrwxr-x 2 user guest 4096 2009-05-29 07:43 ./
drwxrwxr-x 4 user guest 4096 2009-05-29 08:08 ../
lrwxrwxrwx 1 user guest 10 2009-05-28 14:56 c: -> ../drive_c/
lrwxrwxrwx 1 root root 8 2009-05-29 07:42 lpt1 -> /dev/lp0
lrwxrwxrwx 1 user guest 1 2009-05-28 14:56 z: -> //
thanks
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: paralle port dongle

Post by vitamin »

archimedes1981 wrote:lrwxrwxrwx 1 root root 8 2009-05-29 07:42 lpt1 -> /dev/lp0
Make sure you have read/write access to the above device.
James McKenzie

paralle port dongle

Post by James McKenzie »

vitamin wrote:
archimedes1981 wrote:
lrwxrwxrwx 1 root root 8 2009-05-29 07:42 lpt1 -> /dev/lp0
Make sure you have read/write access to the above device.

Clarification: Make sure that you have read/write access to /dev/lp0.
lp0 probably is owned by lp or something like it. This device is
usually set to:

rw-rw---- which means that you have two choices:

1. Change the mode of the device by typing in

chmod o+rw lp0

2. Adding your login to the lp group.

How to do that is a linux forum question and has been discussed in other
threads on this forum.

James McKenzie
Martin Gregorie

paralle port dongle

Post by Martin Gregorie »

On Fri, 2009-05-29 at 20:42 -0700, James McKenzie wrote:
Clarification: Make sure that you have read/write access to /dev/lp0.
lp0 probably is owned by lp or something like it. This device is
usually set to:

rw-rw---- which means that you have two choices:

1. Change the mode of the device by typing in

chmod o+rw lp0

2. Adding your login to the lp group.

How to do that is a linux forum question and has been discussed in other
threads on this forum.
Search for discussions about handling events from multi-function
joysticks. The same choices and ways of setting the permissions will
work for parallel ports.
archimedes1981
Level 1
Level 1
Posts: 5
Joined: Thu Jul 17, 2008 11:56 am

Post by archimedes1981 »

Hi,
thanks for the reply. My /dev/lp0 was set to
crw-------
with chmod o+rw lp0 it didn't give any good results, so i tried chmod 777 lp0 and it is now
crwxrwxrwx
it still doesn't work, so i'll try looking for the "handling events from multi-function
joysticks"
thanks
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

archimedes1981 wrote:with chmod o+rw lp0 it didn't give any good results, so i tried chmod 777 lp0 and it is now
crwxrwxrwx
it still doesn't work
Then it most likely won't work on Wine.

Some dongles use "extra layer" of protection in form of kernel driver. Those have only highly limited functionality on Wine and can not access any hardware.
archimedes1981
Level 1
Level 1
Posts: 5
Joined: Thu Jul 17, 2008 11:56 am

Post by archimedes1981 »

I still didn't get it to work...
Do you mean this? :

3.3.1. Serial and Parallel Ports

Serial and parallel port configuration is very similar to drive configuration - simply create a symbolic link in ~/.wine/dosdevices with the name of the device. Windows serial ports follow a naming convention of the word "com" followed by a number, such as com1, com2, etc. Similarly, parallel ports use "lpt" followed by a number, such as lpt1. You should link these directly to the corresponding Unix devices, such as /dev/ttyS0 and /dev/lp0. For example, to configure one serial port and one parallel port, run the following commands:

ln -s /dev/ttyS0 com1
ln -s /dev/lp0 lpt1

should there be lp0: using parport0 in the following ????
[root@localhost dev]# dmesg | grep parport
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE,EPP]
[root@localhost dev]#
archimedes1981
Level 1
Level 1
Posts: 5
Joined: Thu Jul 17, 2008 11:56 am

Post by archimedes1981 »

I found some parallel port mode settings in BIOS, PPE, bi-direcionnal etc...
could any of these help?
right now it is set to PPE.. it doesn't work and i didn't change it.
If i try changing them, could any of these damage the dongle?
i seriously don't want this, it's not my property.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

archimedes1981 wrote:If i try changing them, could any of these damage the dongle?
You can try changing them, they will not damage anything. It's just a different protocols and amount of features port supports.
Locked