Winecfg and port access

Christian Schmitz list at
Tue Aug 16 09:36:40 CDT 2005

	Thanks for you answer but i dont know how program these lines for control 
ioperm(). Yes my system is Suse Linux 9.3 with kde upgraded 3.4.1

I solve the problem (in old wine) of this way:

	In the old file config i write

"378" = "/dev/parport0"
"read"  = "0x779,0x378-0x37f,0x280-0x2a0"
"write" = "0x779,0x378-0x37f,0x280-0x2a0"

I set the attributes
crw-rw-rw-  1 me root 99, 0 2005-03-19 16:36 /dev/parport0
crw-rw-rw-  1 lp lp    6, 0 2005-03-19 16:36 /dev/lp0

and add Myuser to the lp group.

With all this i get the right of access.

Maybe if you sendme a clue maybe i can make the wrapper.



>>       I am using TopMax software (a chip programmer) with old wine version 
>> config file).
>>       I try the new wine but i not find where grant the FULL parallel port
>> access to the TopMax program
>>       Where is the new config file for touch manually? or
>>       How i can make for grant port access (standard 378-37f)

>If you're using linux, you will most likely have to use a suid-root wrapper 
>that calls ioperm() and subsequently drops privileges and invokes wine. 
>That's about 10 lines of C and should be a good exercise ;] I don't know 
>offhand how portable ioperm() is, and if there is something in /proc that 
>would be more portable, etc.
>I don't see anything suid-root that comes with wine, so probably wine itself 
>doesn't have anything of the sort. And I don't know either how wine managed 
>to pull it off before w/o using suid root executable, unless it did it via 
>signal catching and some manual forwarding to /dev/lp#. With right ioperms in 
>place the program should be able to run at full speed.

En un mundo sin fronteras.... ¿Quién necesita Puertas y Ventanas?
EN INGLES: In a world without frontiers, who needs Gates and Windows

More information about the wine-devel mailing list