tech-x11 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

native xorg wskbd



I am still basically off-line, so don't whether you've already solved this,
but the enclosed patch means that my native xorg's keypresses are
recognised after the patch which allows the mouse to move up and down is
applied. (So I now have a working xorg)

Cheers,

Patrick
Write failed flushing stdout buffer.
write stdout: Broken pipe
Index: bsd_kbd.c
===================================================================
RCS file: /cvsnetbsd/xsrc/external/mit/xf86-input-keyboard/dist/src/bsd_kbd.c,v
retrieving revision 1.3
diff -u -r1.3 bsd_kbd.c
--- bsd_kbd.c   15 Aug 2008 16:25:21 -0000      1.3
+++ bsd_kbd.c   7 Feb 2009 13:55:37 -0000
@@ -456,6 +456,13 @@
 #ifdef WSCONS_SUPPORT
     if( prot == PROT_WSCONS) {
        pKbd->consType = WSCONS;
+#ifdef WSKBDIO_SETVERSION
+       int version = WSKBDIO_EVENT_VERSION;
+       if (ioctl(pInfo->fd, WSKBDIO_SETVERSION, &version) == -1) {
+           xf86Msg(X_WARNING, "%s: cannot set version\n", pInfo->name);
+           return FALSE;
+       }
+#endif 
        /* Find out keyboard type */
        if (ioctl(pInfo->fd, WSKBDIO_GTYPE, &(pKbd->wsKbdType)) == -1) {
            xf86Msg(X_ERROR, "%s: cannot get keyboard type", pInfo->name);


Home | Main Index | Thread Index | Old Index