Merge "Disable kernel keyrepeat"
diff --git a/services/input/EventHub.cpp b/services/input/EventHub.cpp
index 1c9520d..0773afb 100644
--- a/services/input/EventHub.cpp
+++ b/services/input/EventHub.cpp
@@ -1183,6 +1183,12 @@
                 break;
             }
         }
+
+        // Disable kernel key repeat since we handle it ourselves
+        unsigned int repeatRate[] = {0,0};
+        if (ioctl(fd, EVIOCSREP, repeatRate)) {
+            ALOGW("Unable to disable kernel key repeat for %s: %s", devicePath, strerror(errno));
+        }
     }
 
     // If the device isn't recognized as something we handle, don't monitor it.