[PATCH:xf86-input-keyboard 12/23] Set the version for the keyboard.
Thomas Klausner
wiz at NetBSD.org
Mon Jul 29 14:23:38 PDT 2013
>From Patrick Welche <prlw1 at NetBSD.org>
Signed-off-by: Thomas Klausner <wiz at NetBSD.org>
Reviewed-by: Matthieu Herrb <matthieu.herrb at laas.fr>
---
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