As I hear some of you know; I'm developing a set of XFree modules for the
SunRay:
http://www.srcf.ucam.org/~pe208/uni/work/sunray
So far I have mouse movement events making it into my driver, but I'm
having trouble reporting them to XFree itself. My code looks thus:
if ((x != c->prevx) || (y != c->prevy)) {
c->prevx = x;
c->prevy = y;
xf86Msg(X_INFO, "MouseMove(%d,%d)\n", x, y);
xf86PostMotionEvent(c->pInfo->dev, 1, 0, 2, x, y);
}
x and y are derived from the message from the SunRay; and are printed
(correctly) in the log, so I know that's OK. XFree however, dies after the
first message: (/var/log/XFree86.2.log)
(**) Option "CorePointer"
(**) OpenRay_inp: Core Pointer
(**) Option "CoreKeyboard"
(**) OpenRay_inp: Core Keyboard
(II) XINPUT: Adding extended input device "OpenRay_inp" (type:
OpenRay_inp)
(II) MouseMove(512,0)
Fatal server error:
Caught signal 11. Server aborting
The general setup here is that XFree is using my system's usual i740
graphics driver but with my module, OpenRay_inp, as CorePointer and
CoreKeyboard. It runs this setup as :2 from the SunRay server program; the
program's function can be written as:
[ accept incoming SunRay connection as SunRay_fd ]
if (fork() == 0) {
dup2(SunRay_fd, 3); /* make fd 3 be the socket connection to SunRay */
execv("path_to_startup_script");
}
The script then starts XFree with its special serverlayout (i.e. using
OpenRay_inp). My driver then in a somewhat-ugly hack connects to the
SunRay via fd 3. Dodgy I know, but it seems to work thus far. The window
manager, by the way, is twm. So no horrible wait-ten-minutes for KDE.
I hope that's enough background... On with my problem..
My problem is that I can find very little documentation on XFree
development, so it's quite difficult to see what to do where... I don't
know what fatal server error 11 is. Nor why XFree stops as soon as it's
started.
--
Paul Evans
(3rd Year CompSci at Pembroke College, Cambridge, England)
[EMAIL PROTECTED] (university)
[EMAIL PROTECTED] (alternate)
ICQ# 4135350
Registered Linux User: 179460
http://www.srcf.ucam.org/~pe208/
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel