X server programming question
Roger Oberholtzer
roger
Mon Sep 11 08:06:32 PDT 2006
On Mon, 2006-09-11 at 21:56 +0800, Man-wai CHANG wrote:
> >
> > Nope. Just to use it as best I can. I want to tie an X event to the PC
> > clock, not just a relative time in the X server's notion of time. My
> > application is not network based in respect to the GUI. The keyboard,
> > display and X server are all on the local machine.
>
> Asking for an absolute global clock for a distributed system (with each
> node having their own clock) sounds like troubles... :) Maybe I
> mis-understood your intention.
X is indeed designed to run on distributed systems. But it is mostly
used to run a keyboard/mouse/display on the same single computer. That
is where I want to know this information.
A key pressed on a USB device gets a time stamp (gettimeofday) from the
kernel module that detected it. I bet the kernel PS/2 keyboard driver
that X talks to for the PS/2 key presses provides the same. It is just
that X seems to drop these and replace them with its own relative time
stamp. That is fine as an additional bit of info. But I want the
original time stamp as well. Both are, IIRC, long integers.
--
Roger Oberholtzer
OPQ Systems AB
Ramb?ll Sverige AB
Kapellgr?nd 7
P.O. Box 4205
SE-102 65 Stockholm, Sweden
Tel: Int +46 8-615 60 20
Fax: Int +46 8-31 42 23
More information about the Linux-users
mailing list