[PATCH:xf86-input-keyboard 12/21] Set the version for the keyboard.

Thomas Klausner wiz at NetBSD.org
Fri Jul 26 14:24:07 PDT 2013


>From Patrick Welche <prlw1 at NetBSD.org>
Signed-off-by: Thomas Klausner <wiz at NetBSD.org>
---
 src/bsd_kbd.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/bsd_kbd.c b/src/bsd_kbd.c
index 710470a..2959178 100644
--- a/src/bsd_kbd.c
+++ b/src/bsd_kbd.c
@@ -385,6 +385,13 @@ OpenKeyboard(InputInfoPtr pInfo)
 #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);
-- 
1.8.3.3



More information about the xorg-devel mailing list