Filter kernel key-repeat events

These events can cause problems on some devices, like combination
touch/keyboard devices. In the device we have (Logitech TK820), we get
repeated BTN events that are really just supposed to indicate the
finger count, but end up sending events into the gesture recognizer
without new finger positions, triggering bugs.

Additionally, these events are unneeded, because X does key repeat for

Since these events have no benefit and cause issues, filter them.

TEST=TK820 keyboard touchpad doesn't exhibit jittery behavior. Also,
key repeat still works.

Change-Id: Ib8bcdc7db9df8863b996222c12afefa91539c47d
Reviewed-by: Dennis Kempin <>
Commit-Queue: Andrew de los Reyes <>
Tested-by: Andrew de los Reyes <>
2 files changed
tree: ad02b371027d341eb8cd1daff69df56d59fb20dc
  1. Makefile
  3. include/
  4. libevdev-cros.pc
  5. src/