Technical article 109073

Absolute events generated by serial device are not recognized by X server.

OpenServer 5.0.0

Written · Last revised

Problem

I am integrating a new serial device into the SCO event handler subsystem, according to the instructions in the SCO Advanced Hardware Developer's Kit (AHDK) 1.0. This device will generate absolute events according to user input, for example a touchscreen, a bitpad, a light pen, and so on.

I have used the event library API to verify that absolute events are being queued successfully.

When using the X environment, however, I find that none of these
absolute events are being recognized by the X server.  For example,
I cannot pull down any menu options or activate any icons.  Relative
events, as generated by the mouse for example, continue to work
correctly in this environment.

Cause

The X server does not correctly request absolute positioning events.

Solution

To work around this problem, specify the class of your device as REL, rather than ABS, in the file /usr/lib/event/devices (see event(FP)).

Alternatively, you can apply the following patch to the X server which will enable it to handle absolute events correctly. (Note that '#' and '*' are user prompts in the example given below.)

Log in as 'root' user.
# cd /usr/bin/X11
# cp Xsco Xsco.orig
# /etc/_fst -w Xsco
* 0x17:0xbcdf?w 1c
0x17:0xbcdf:    0x14=   0x1c
* $q

This problem is scheduled to be addressed in a future release of SCO OpenServer.

From the Xinuos technical article database, record 109073. Reproduced with permission. The original is at www.sco.com/ta/109073, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.