Mismatch between evtest output and Kodi keypress detection
#1
I have an older logitech 'Media Remote' from which a number of buttons behave incorrect.
The basic buttons like play/pause, stop, select, back, up/down/left/right work normally.

Buttons that look unique in evtest are not according Kodi debug.
In below details I will show the details for the 9 buttons that behave incorrect.
From the Kodi debug output I understand that most buttons are detected as 'zero' or as a 'long press'-'zero'.

Is this something that can be solved within Kodi?
Or is this due to an external driver?
Code:
systemctl stop kodi
evtest --grab  /dev/input/event10

Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x46d product 0xc50c version 0x110
Input device name: "Logitech USB Receiver"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 1 (KEY_ESC)
    Event code 28 (KEY_ENTER)
    Event code 74 (KEY_KPMINUS)
    Event code 78 (KEY_KPPLUS)
    Event code 103 (KEY_UP)
    Event code 105 (KEY_LEFT)
    Event code 106 (KEY_RIGHT)
    Event code 108 (KEY_DOWN)
    Event code 110 (KEY_INSERT)
    Event code 111 (KEY_DELETE)
    Event code 113 (KEY_MUTE)
    Event code 114 (KEY_VOLUMEDOWN)
    Event code 115 (KEY_VOLUMEUP)
    Event code 116 (KEY_POWER)
    Event code 119 (KEY_PAUSE)
    Event code 120 (KEY_SCALE)
    Event code 128 (KEY_STOP)
    Event code 130 (KEY_PROPS)
    Event code 131 (KEY_UNDO)
    Event code 133 (KEY_COPY)
    Event code 134 (KEY_OPEN)
    Event code 135 (KEY_PASTE)
    Event code 136 (KEY_FIND)
    Event code 137 (KEY_CUT)
    Event code 138 (KEY_HELP)
    Event code 139 (KEY_MENU)
    Event code 140 (KEY_CALC)
    Event code 142 (KEY_SLEEP)
    Event code 143 (KEY_WAKEUP)
    Event code 144 (KEY_FILE)
    Event code 148 (KEY_PROG1)
    Event code 149 (KEY_PROG2)
    Event code 150 (KEY_WWW)
    Event code 152 (KEY_SCREENLOCK)
    Event code 154 (KEY_CYCLEWINDOWS)
    Event code 155 (KEY_MAIL)
    Event code 156 (KEY_BOOKMARKS)
    Event code 158 (KEY_BACK)
    Event code 159 (KEY_FORWARD)
    Event code 161 (KEY_EJECTCD)
    Event code 163 (KEY_NEXTSONG)
    Event code 164 (KEY_PLAYPAUSE)
    Event code 165 (KEY_PREVIOUSSONG)
    Event code 166 (KEY_STOPCD)
    Event code 167 (KEY_RECORD)
    Event code 168 (KEY_REWIND)
    Event code 169 (KEY_PHONE)
    Event code 171 (KEY_CONFIG)
    Event code 172 (KEY_HOMEPAGE)
    Event code 173 (KEY_REFRESH)
    Event code 174 (KEY_EXIT)
    Event code 176 (KEY_EDIT)
    Event code 177 (KEY_SCROLLUP)
    Event code 178 (KEY_SCROLLDOWN)
    Event code 181 (KEY_NEW)
    Event code 182 (KEY_REDO)
    Event code 202 (KEY_PROG3)
    Event code 203 (KEY_PROG4)
    Event code 206 (KEY_CLOSE)
    Event code 207 (KEY_PLAY)
    Event code 208 (KEY_FASTFORWARD)
    Event code 209 (KEY_BASSBOOST)
    Event code 210 (KEY_PRINT)
    Event code 212 (KEY_CAMERA)
    Event code 213 (KEY_SOUND)
    Event code 216 (KEY_CHAT)
    Event code 217 (KEY_SEARCH)
    Event code 219 (KEY_FINANCE)
    Event code 223 (KEY_CANCEL)
    Event code 224 (KEY_BRIGHTNESSDOWN)
    Event code 225 (KEY_BRIGHTNESSUP)
    Event code 226 (KEY_MEDIA)
    Event code 228 (KEY_KBDILLUMTOGGLE)
    Event code 229 (KEY_KBDILLUMDOWN)
    Event code 230 (KEY_KBDILLUMUP)
    Event code 231 (KEY_SEND)
    Event code 232 (KEY_REPLY)
    Event code 233 (KEY_FORWARDMAIL)
    Event code 234 (KEY_SAVE)
    Event code 235 (KEY_DOCUMENTS)
    Event code 236 (KEY_BATTERY)
    Event code 240 (KEY_UNKNOWN)
    Event code 241 (KEY_VIDEO_NEXT)
    Event code 244 (KEY_BRIGHTNESS_ZERO)
    Event code 256 (BTN_0)
    Event code 272 (BTN_LEFT)
    Event code 273 (BTN_RIGHT)
    Event code 274 (BTN_MIDDLE)
    Event code 275 (BTN_SIDE)
    Event code 276 (BTN_EXTRA)
    Event code 277 (BTN_FORWARD)
    Event code 278 (BTN_BACK)
    Event code 279 (BTN_TASK)
    Event code 352 (KEY_OK)
    Event code 353 (KEY_SELECT)
    Event code 354 (KEY_GOTO)
    Event code 358 (KEY_INFO)
    Event code 362 (KEY_PROGRAM)
    Event code 366 (KEY_PVR)
    Event code 370 (KEY_SUBTITLE)
    Event code 371 (KEY_ANGLE)
    Event code 372 (KEY_ZOOM)
    Event code 374 (KEY_KEYBOARD)
    Event code 375 (KEY_SCREEN)
    Event code 376 (KEY_PC)
    Event code 377 (KEY_TV)
    Event code 378 (KEY_TV2)
    Event code 379 (KEY_VCR)
    Event code 380 (KEY_VCR2)
    Event code 381 (KEY_SAT)
    Event code 383 (KEY_CD)
    Event code 384 (KEY_TAPE)
    Event code 386 (KEY_TUNER)
    Event code 387 (KEY_PLAYER)
    Event code 389 (KEY_DVD)
    Event code 392 (KEY_AUDIO)
    Event code 393 (KEY_VIDEO)
    Event code 396 (KEY_MEMO)
    Event code 397 (KEY_CALENDAR)
    Event code 398 (KEY_RED)
    Event code 399 (KEY_GREEN)
    Event code 400 (KEY_YELLOW)
    Event code 401 (KEY_BLUE)
    Event code 402 (KEY_CHANNELUP)
    Event code 403 (KEY_CHANNELDOWN)
    Event code 405 (KEY_LAST)
    Event code 407 (KEY_NEXT)
    Event code 408 (KEY_RESTART)
    Event code 409 (KEY_SLOW)
    Event code 410 (KEY_SHUFFLE)
    Event code 412 (KEY_PREVIOUS)
    Event code 416 (KEY_VIDEOPHONE)
    Event code 417 (KEY_GAMES)
    Event code 418 (KEY_ZOOMIN)
    Event code 419 (KEY_ZOOMOUT)
    Event code 420 (KEY_ZOOMRESET)
    Event code 421 (KEY_WORDPROCESSOR)
    Event code 422 (KEY_EDITOR)
    Event code 423 (KEY_SPREADSHEET)
    Event code 424 (KEY_GRAPHICSEDITOR)
    Event code 425 (KEY_PRESENTATION)
    Event code 426 (KEY_DATABASE)
    Event code 427 (KEY_NEWS)
    Event code 428 (KEY_VOICEMAIL)
    Event code 429 (KEY_ADDRESSBOOK)
    Event code 430 (KEY_MESSENGER)
    Event code 431 (KEY_DISPLAYTOGGLE)
    Event code 432 (KEY_SPELLCHECK)
    Event code 433 (KEY_LOGOFF)
    Event code 439 (KEY_MEDIA_REPEAT)
    Event code 442 (KEY_IMAGES)
    Event code 478 (KEY_FN_1)
    Event code 479 (KEY_FN_2)
    Event code 576 (KEY_BUTTONCONFIG)
    Event code 577 (KEY_TASKMANAGER)
    Event code 578 (KEY_JOURNAL)
    Event code 579 (KEY_CONTROLPANEL)
    Event code 580 (KEY_APPSELECT)
    Event code 581 (KEY_SCREENSAVER)
    Event code 582 (KEY_VOICECOMMAND)
    Event code 583 (?)
    Event code 584 (?)
    Event code 592 (KEY_BRIGHTNESS_MIN)
    Event code 593 (KEY_BRIGHTNESS_MAX)
    Event code 608 (KEY_KBDINPUTASSIST_PREV)
    Event code 609 (KEY_KBDINPUTASSIST_NEXT)
    Event code 610 (KEY_KBDINPUTASSIST_PREVGROUP)
    Event code 611 (KEY_KBDINPUTASSIST_NEXTGROUP)
    Event code 612 (KEY_KBDINPUTASSIST_ACCEPT)
    Event code 613 (KEY_KBDINPUTASSIST_CANCEL)
  Event type 2 (EV_REL)
    Event code 0 (REL_X)
    Event code 1 (REL_Y)
    Event code 6 (REL_HWHEEL)
    Event code 8 (REL_WHEEL)
    Event code 11 (?)
    Event code 12 (?)
  Event type 3 (EV_ABS)
    Event code 32 (ABS_VOLUME)
      Value      0
      Min        1
      Max     4173
  Event type 4 (EV_MSC)
    Event code 4 (MSC_SCAN)
Properties:
Testing ... (interrupt to exit)

Key name: Menu
evtest output
Code:
Event: time 1580766345.873585, type 4 (EV_MSC), code 4 (MSC_SCAN), value c1027
Event: time 1580766345.873585, type 1 (EV_KEY), code 139 (KEY_MENU), value 1
Event: time 1580766345.873585, -------------- SYN_REPORT ------------
Event: time 1580766346.105473, type 4 (EV_MSC), code 4 (MSC_SCAN), value c1027
Event: time 1580766346.105473, type 1 (EV_KEY), code 139 (KEY_MENU), value 0
Event: time 1580766346.105473, -------------- SYN_REPORT ------------
Kodi debug output
Code:
2020-02-03 23:07:56.290 T:139749220890368   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 400ms repeat: 80ms
2020-02-03 23:07:56.291 T:139747297064704   DEBUG: Thread Timer start, auto delete: false
2020-02-03 23:07:56.305 T:139749237680256   DEBUG: Keyboard: scancode: 0x8b, sym: 0x0000, unicode: 0x0000, modifier: 0x0
2020-02-03 23:07:56.306 T:139749237680256   DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
2020-02-03 23:07:56.306 T:139749237680256   DEBUG: Previous line repeats 3 times.
2020-02-03 23:07:56.306 T:139749237680256   DEBUG: HandleKey: 0 (0xf200, obc-61697) pressed, action is
2020-02-03 23:07:56.523 T:139747297064704   DEBUG: Thread Timer 139747297064704 terminating
2020-02-03 23:07:56.529 T:139749237680256   DEBUG: Keyboard: scancode: 0x8b, sym: 0x0000, unicode: 0x0000, modifier: 0x0


Key name: Select window
evtest output
Code:
Event: time 1580766559.203300, type 4 (EV_MSC), code 4 (MSC_SCAN), value c102b
Event: time 1580766559.203300, type 1 (EV_KEY), code 154 (KEY_CYCLEWINDOWS), value 1
Event: time 1580766559.203300, -------------- SYN_REPORT ------------
Event: time 1580766559.427517, type 4 (EV_MSC), code 4 (MSC_SCAN), value c102b
Event: time 1580766559.427517, type 1 (EV_KEY), code 154 (KEY_CYCLEWINDOWS), value 0
Event: time 1580766559.427517, -------------- SYN_REPORT ------------
Kodi debug output
Code:
2020-02-03 23:08:51.337 T:139749220890368   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 400ms repeat: 80ms
2020-02-03 23:08:51.338 T:139747297064704   DEBUG: Thread Timer start, auto delete: false
2020-02-03 23:08:51.360 T:139749237680256   DEBUG: Keyboard: scancode: 0x9a, sym: 0x0000, unicode: 0x0000, modifier: 0x0
2020-02-03 23:08:51.360 T:139749237680256   DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
2020-02-03 23:08:51.360 T:139749237680256   DEBUG: Previous line repeats 3 times.
2020-02-03 23:08:51.360 T:139749237680256   DEBUG: HandleKey: 0 (0xf200, obc-61697) pressed, action is
2020-02-03 23:08:51.577 T:139747297064704   DEBUG: Thread Timer 139747297064704 terminating
2020-02-03 23:08:51.593 T:139749237680256   DEBUG: Keyboard: scancode: 0x9a, sym: 0x0000, unicode: 0x0000, modifier: 0x0


Key name: Close window
evtest output
Code:
Event: time 1580767216.175699, type 4 (EV_MSC), code 4 (MSC_SCAN), value c1023
Event: time 1580767216.175699, type 1 (EV_KEY), code 206 (KEY_CLOSE), value 1
Event: time 1580767216.175699, -------------- SYN_REPORT ------------
Event: time 1580767216.464044, type 4 (EV_MSC), code 4 (MSC_SCAN), value c1023
Event: time 1580767216.464044, type 1 (EV_KEY), code 206 (KEY_CLOSE), value 0
Event: time 1580767216.464044, -------------- SYN_REPORT ------------
Kodi debug output
Code:
2020-02-03 23:09:16.616 T:139749220890368   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 400ms repeat: 80ms
2020-02-03 23:09:16.617 T:139747297064704   DEBUG: Thread Timer start, auto delete: false
2020-02-03 23:09:16.643 T:139749237680256   DEBUG: Keyboard: scancode: 0xce, sym: 0x0000, unicode: 0x0000, modifier: 0x0
2020-02-03 23:09:16.643 T:139749237680256   DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
2020-02-03 23:09:16.643 T:139749237680256   DEBUG: Previous line repeats 3 times.
2020-02-03 23:09:16.644 T:139749237680256   DEBUG: HandleKey: 0 (0xf200, obc-61697) pressed, action is
2020-02-03 23:09:16.865 T:139747297064704   DEBUG: Thread Timer 139747297064704 terminating
2020-02-03 23:09:16.876 T:139749237680256   DEBUG: Keyboard: scancode: 0xce, sym: 0x0000, unicode: 0x0000, modifier: 0x0



Key name: Preset 1
evtest output
Code:
Event: time 1580767246.671259, type 4 (EV_MSC), code 4 (MSC_SCAN), value c1019
Event: time 1580767246.671259, type 1 (EV_KEY), code 148 (KEY_PROG1), value 1
Event: time 1580767246.671259, -------------- SYN_REPORT ------------
Event: time 1580767246.927158, type 4 (EV_MSC), code 4 (MSC_SCAN), value c1019
Event: time 1580767246.927158, type 1 (EV_KEY), code 148 (KEY_PROG1), value 0
Event: time 1580767246.927158, -------------- SYN_REPORT ------------
Kodi debug output
Code:
2020-02-03 23:09:42.120 T:139749220890368   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 400ms repeat: 80ms
2020-02-03 23:09:42.120 T:139747297064704   DEBUG: Thread Timer start, auto delete: false
2020-02-03 23:09:42.128 T:139749237680256   DEBUG: Keyboard: scancode: 0x94, sym: 0x00b7, unicode: 0x0000, modifier: 0x0
2020-02-03 23:09:42.128 T:139749237680256   DEBUG: HandleKey: launch_app2_pc_icon (0xf0c1) pressed, action is ActivateWindow(Programs)
2020-02-03 23:09:42.352 T:139747297064704   DEBUG: Thread Timer 139747297064704 terminating
2020-02-03 23:09:42.375 T:139749237680256   DEBUG: Keyboard: scancode: 0x94, sym: 0x00b7, unicode: 0x0000, modifier: 0x0


Key name: Preset 2
evtest output
Code:
Event: time 1580767250.030662, type 4 (EV_MSC), code 4 (MSC_SCAN), value c101a
Event: time 1580767250.030662, type 1 (EV_KEY), code 149 (KEY_PROG2), value 1
Event: time 1580767250.030662, -------------- SYN_REPORT ------------
Event: time 1580767250.263156, type 4 (EV_MSC), code 4 (MSC_SCAN), value c101a
Event: time 1580767250.263156, type 1 (EV_KEY), code 149 (KEY_PROG2), value 0
Event: time 1580767250.263156, -------------- SYN_REPORT ------------
Kodi debug output
Code:
2020-02-03 23:10:50.854 T:139749220890368   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 400ms repeat: 80ms
2020-02-03 23:10:50.855 T:139747297064704   DEBUG: Thread Timer start, auto delete: false
2020-02-03 23:10:50.874 T:139749237680256   DEBUG: Keyboard: scancode: 0x95, sym: 0x0000, unicode: 0x0000, modifier: 0x0
2020-02-03 23:10:50.874 T:139749237680256   DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
2020-02-03 23:10:50.874 T:139749237680256   DEBUG: Previous line repeats 3 times.
2020-02-03 23:10:50.874 T:139749237680256   DEBUG: HandleKey: 0 (0xf200, obc-61697) pressed, action is
2020-02-03 23:10:51.110 T:139747297064704   DEBUG: Thread Timer 139747297064704 terminating
2020-02-03 23:10:51.122 T:139749237680256   DEBUG: Keyboard: scancode: 0x95, sym: 0x0000, unicode: 0x0000, modifier: 0x0


Key name: Preset 3
evtest output
Code:
Event: time 1580767251.831147, type 4 (EV_MSC), code 4 (MSC_SCAN), value c101b
Event: time 1580767251.831147, type 1 (EV_KEY), code 202 (KEY_PROG3), value 1
Event: time 1580767251.831147, -------------- SYN_REPORT ------------
Event: time 1580767252.063212, type 4 (EV_MSC), code 4 (MSC_SCAN), value c101b
Event: time 1580767252.063212, type 1 (EV_KEY), code 202 (KEY_PROG3), value 0
Event: time 1580767252.063212, -------------- SYN_REPORT ------------
Kodi debug output
Code:
2020-02-03 23:11:12.357 T:139749220890368   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 400ms repeat: 80ms
2020-02-03 23:11:12.358 T:139747297064704   DEBUG: Thread Timer start, auto delete: false
2020-02-03 23:11:12.390 T:139749237680256   DEBUG: Keyboard: scancode: 0xca, sym: 0x0000, unicode: 0x0000, modifier: 0x0
2020-02-03 23:11:12.390 T:139749237680256   DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
2020-02-03 23:11:12.391 T:139749237680256   DEBUG: Previous line repeats 3 times.
2020-02-03 23:11:12.391 T:139749237680256   DEBUG: HandleKey: 0 (0xf200, obc-61697) pressed, action is
2020-02-03 23:11:12.598 T:139747297064704   DEBUG: Thread Timer 139747297064704 terminating
2020-02-03 23:11:12.598 T:139749237680256   DEBUG: Keyboard: scancode: 0xca, sym: 0x0000, unicode: 0x0000, modifier: 0x0


Key name: Zoom +
evtest output
Code:
Event: time 1580768292.154469, type 4 (EV_MSC), code 4 (MSC_SCAN), value c1020
Event: time 1580768292.154469, type 1 (EV_KEY), code 419 (KEY_ZOOMOUT), value 1
Event: time 1580768292.154469, -------------- SYN_REPORT ------------
Event: time 1580768292.202390, type 4 (EV_MSC), code 4 (MSC_SCAN), value c1020
Event: time 1580768292.202390, type 1 (EV_KEY), code 419 (KEY_ZOOMOUT), value 0
Event: time 1580768292.202390, -------------- SYN_REPORT ------------
Kodi debug output
Code:
2020-02-03 23:16:58.383 T:139749237680256   DEBUG: Keyboard: scancode: 0x00, sym: 0x0000, unicode: 0x0000, modifier: 0x0
2020-02-03 23:16:58.383 T:139749237680256   DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
2020-02-03 23:16:58.383 T:139749237680256   DEBUG: Previous line repeats 3 times.
2020-02-03 23:16:58.383 T:139749237680256   DEBUG: HandleKey: long-0 (0x100f200, obc-16838913) pressed, action is
2020-02-03 23:16:58.425 T:139749237680256   DEBUG: Keyboard: scancode: 0x00, sym: 0x0000, unicode: 0x0000, modifier: 0x0


Key name: Zoom -
evtest output
Code:
Event: time 1580768307.441559, type 4 (EV_MSC), code 4 (MSC_SCAN), value c101f
Event: time 1580768307.441559, type 1 (EV_KEY), code 418 (KEY_ZOOMIN), value 1
Event: time 1580768307.441559, -------------- SYN_REPORT ------------
Event: time 1580768307.489941, type 4 (EV_MSC), code 4 (MSC_SCAN), value c101f
Event: time 1580768307.489941, type 1 (EV_KEY), code 418 (KEY_ZOOMIN), value 0
Event: time 1580768307.489941, -------------- SYN_REPORT ------------
Kodi debug output
Code:
2020-02-03 23:17:15.422 T:139749237680256   DEBUG: Previous line repeats 1 times.
2020-02-03 23:17:15.422 T:139749237680256   DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
2020-02-03 23:17:15.422 T:139749237680256   DEBUG: Previous line repeats 3 times.
2020-02-03 23:17:15.422 T:139749237680256   DEBUG: HandleKey: long-0 (0x100f200, obc-16838913) pressed, action is
2020-02-03 23:17:15.477 T:139749237680256   DEBUG: Keyboard: scancode: 0x00, sym: 0x0000, unicode: 0x0000, modifier: 0x0


Key name: Rotate
evtest output
Code:
Event: time 1580768325.881133, type 4 (EV_MSC), code 4 (MSC_SCAN), value c1028
Event: time 1580768325.881133, type 1 (EV_KEY), code 371 (KEY_ANGLE), value 1
Event: time 1580768325.881133, -------------- SYN_REPORT ------------
Event: time 1580768326.081556, type 4 (EV_MSC), code 4 (MSC_SCAN), value c1028
Event: time 1580768326.081556, type 1 (EV_KEY), code 371 (KEY_ANGLE), value 0
Event: time 1580768326.081556, -------------- SYN_REPORT ------------
Kodi debug output
Code:
2020-02-03 23:17:32.036 T:139749237680256   DEBUG: Previous line repeats 1 times.
2020-02-03 23:17:32.036 T:139749237680256   DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
2020-02-03 23:17:32.036 T:139749237680256   DEBUG: Previous line repeats 3 times.
2020-02-03 23:17:32.036 T:139749237680256   DEBUG: HandleKey: long-0 (0x100f200, obc-16838913) pressed, action is
2020-02-03 23:17:32.254 T:139749237680256   DEBUG: Keyboard: scancode: 0x00, sym: 0x0000, unicode: 0x0000, modifier: 0x0
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Mismatch between evtest output and Kodi keypress detection00
This forum uses Lukasz Tkacz MyBB addons.