Re: XFree86/QNX SerialRead blocking change

Frank Liu <[email protected]> Mon, 25 Mar 2002 17:38:03 -0500 (EST)
Newsgroups gmane.os.qnx.openqnx.devel
Message-ID <[email protected]>
I haven't seen that problem since I am using "devi-hirun" and let
the OS deal with mouse (serial, PS2, or any other qnx supported types).
Touch screen devices can probably be dealt same way, say, "devi-elo".
The good side is we can leave the dirty work to QNX :)

I can understand that sometimes you may need to access the pointer
devices raw. I will pass your email to the XFree86 developers because
the "posix_tty.c" is actually a symlink to
xc/programs/Xserver/hw/xfree86/os-support/shared directory. The symlink
is created dynamicallly during the make. Since "posix_tty.c" is
in the "shared" directory and being shared by other OSes, I want
to make sure your change won't break other people.
Thanks for all your work!

Frank

On Mon, 25 Mar 2002 [email protected] wrote:

> Hi Frank,
>
> I ran into a problem with using a serial touch screen (ELO) with XFree86.
> The problem was that events seemed blocked when using the serial touch
> screen - I think other people experienced the same problem with serial mouse
> - if they don't use devi-hirun.
>
> Following will solve the problem:
>
> change line 198 in posix_tty.c (in
> xc/programs/Xserver/hw/xfree86/os-support/nto) from:
>
>        i &= ~O_NONBLOCK;
>
> to:
>
>        i |= O_NONBLOCK;
>
> I don't think it will break anything else.
>
> --
> Jens
>
>
>