Problem: Trouble getting lircd to work as expected, also is something else handling IR input?
|
6th Sep, 2020, 10:17 PM
Post: #21
|
|||
|
|||
Trouble getting lircd to work as expected, also is something else handling IR input?
Okay I ghosted you for a... few months... I was just frustrated with it and needed a break.
So, currently, I am in the position where ir-keytable -t appears to register every key on the remote appropriately, evtest also throws correct actions, at least it seems like it, but when I use plugin keymap editor in kodi, to assign keys on remote to the appropriate actions, I have problem where keys such as Left arrow, Right arrow, Up, down, are working ok, and they have different codes in the keymap editor as they should have. But then there are keys such as OK, Info, ChUp, ChDown, and others that produce same keycode in keymap editor, I have no idea why. Also I tried ir-keytable --protocol=lirc but then my remote doesn't work at all. On the other side, using rc-6 remote works... the same as without specifying protocol. Terminal root@xbian:/home/xbian# ir-keytable --read #Omitted output... Enabled kernel protocols: lirc rc-6 Here I am pressing up, down, left, right, then OK, info, ChUp and ChDown. They seem to be recognized correctly here: Terminal root@xbian:/home/xbian# ir-keytable -t Testing events. Please, press CTRL-C to abort. 2222.844022: lirc protocol(rc6_mce): scancode = 0x800f041e 2222.844043: event type EV_MSC(0x04): scancode = 0x800f041e 2222.844043: event type EV_KEY(0x01) key_down: KEY_UP(0x0067) 2222.844043: event type EV_SYN(0x00). 2222.976019: event type EV_KEY(0x01) key_up: KEY_UP(0x0067) 2222.976019: event type EV_SYN(0x00). 2223.864035: lirc protocol(rc6_mce): scancode = 0x800f041f toggle=1 2223.864051: event type EV_MSC(0x04): scancode = 0x800f041f 2223.864051: event type EV_KEY(0x01) key_down: KEY_DOWN(0x006c) 2223.864051: event type EV_SYN(0x00). 2223.996028: event type EV_KEY(0x01) key_up: KEY_DOWN(0x006c) 2223.996028: event type EV_SYN(0x00). 2224.672032: lirc protocol(rc6_mce): scancode = 0x800f0420 2224.672046: event type EV_MSC(0x04): scancode = 0x800f0420 2224.672046: event type EV_KEY(0x01) key_down: KEY_LEFT(0x0069) 2224.672046: event type EV_SYN(0x00). 2224.776037: lirc protocol(rc6_mce): scancode = 0x800f0420 2224.776047: event type EV_MSC(0x04): scancode = 0x800f0420 2224.776047: event type EV_SYN(0x00). 2224.908015: event type EV_KEY(0x01) key_up: KEY_LEFT(0x0069) 2224.908015: event type EV_SYN(0x00). 2225.432034: lirc protocol(rc6_mce): scancode = 0x800f0421 toggle=1 2225.432050: event type EV_MSC(0x04): scancode = 0x800f0421 2225.432050: event type EV_KEY(0x01) key_down: KEY_RIGHT(0x006a) 2225.432050: event type EV_SYN(0x00). 2225.540020: lirc protocol(rc6_mce): scancode = 0x800f0421 toggle=1 2225.540032: event type EV_MSC(0x04): scancode = 0x800f0421 2225.540032: event type EV_SYN(0x00). 2225.672015: event type EV_KEY(0x01) key_up: KEY_RIGHT(0x006a) 2225.672015: event type EV_SYN(0x00). 2229.568033: lirc protocol(rc6_mce): scancode = 0x800f0422 2229.568047: event type EV_MSC(0x04): scancode = 0x800f0422 2229.568047: event type EV_KEY(0x01) key_down: KEY_OK(0x0160) 2229.568047: event type EV_SYN(0x00). 2229.676021: lirc protocol(rc6_mce): scancode = 0x800f0422 2229.676033: event type EV_MSC(0x04): scancode = 0x800f0422 2229.676033: event type EV_SYN(0x00). 2229.808015: event type EV_KEY(0x01) key_up: KEY_OK(0x0160) 2229.808015: event type EV_SYN(0x00). 2233.440025: lirc protocol(rc6_mce): scancode = 0x800f040f toggle=1 2233.440044: event type EV_MSC(0x04): scancode = 0x800f040f 2233.440044: event type EV_KEY(0x01) key_down: KEY_INFO(0x0166) 2233.440044: event type EV_SYN(0x00). 2233.544028: lirc protocol(rc6_mce): scancode = 0x800f040f toggle=1 2233.544041: event type EV_MSC(0x04): scancode = 0x800f040f 2233.544041: event type EV_SYN(0x00). 2233.676015: event type EV_KEY(0x01) key_up: KEY_INFO(0x0166) 2233.676015: event type EV_SYN(0x00). 2235.720026: lirc protocol(rc6_mce): scancode = 0x800f0412 2235.720042: event type EV_MSC(0x04): scancode = 0x800f0412 2235.720042: event type EV_KEY(0x01) key_down: KEY_CHANNELUP(0x0192) 2235.720042: event type EV_SYN(0x00). 2235.828020: lirc protocol(rc6_mce): scancode = 0x800f0412 2235.828032: event type EV_MSC(0x04): scancode = 0x800f0412 2235.828032: event type EV_SYN(0x00). 2235.960017: event type EV_KEY(0x01) key_up: KEY_CHANNELUP(0x0192) 2235.960017: event type EV_SYN(0x00). 2236.564027: lirc protocol(rc6_mce): scancode = 0x800f0413 toggle=1 2236.564043: event type EV_MSC(0x04): scancode = 0x800f0413 2236.564043: event type EV_KEY(0x01) key_down: KEY_CHANNELDOWN(0x0193) 2236.564043: event type EV_SYN(0x00). 2236.672021: lirc protocol(rc6_mce): scancode = 0x800f0413 toggle=1 2236.672033: event type EV_MSC(0x04): scancode = 0x800f0413 2236.672033: event type EV_SYN(0x00). 2236.804013: event type EV_KEY(0x01) key_up: KEY_CHANNELDOWN(0x0193) 2236.804013: event type EV_SYN(0x00). Same keys here: up, down, left, right, then OK, info, ChUp and ChDown. Again, they seem to be recognized correctly in evtest as well: Terminal root@xbian:/home/xbian# evtest No device specified, trying to scan all of /dev/input/event* Available devices: /dev/input/event0: Trust Wireless Keyboard & Mouse /dev/input/event1: Trust Wireless Keyboard & Mouse /dev/input/event2: Trust Wireless Keyboard & Mouse Consumer Control /dev/input/event3: Trust Wireless Keyboard & Mouse System Control /dev/input/event4: Trust Wireless Keyboard & Mouse /dev/input/event5: gpio_ir_recv Select the device event number [0-5]: 5 Input driver version is 1.0.1 Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100 Input device name: "gpio_ir_recv" Supported events: Event type 0 (EV_SYN) Event type 1 (EV_KEY) Event code 28 (KEY_ENTER) Event code 103 (KEY_UP) Event code 105 (KEY_LEFT) Event code 106 (KEY_RIGHT) Event code 108 (KEY_DOWN) Event code 111 (KEY_DELETE) Event code 113 (KEY_MUTE) Event code 114 (KEY_VOLUMEDOWN) Event code 115 (KEY_VOLUMEUP) Event code 119 (KEY_PAUSE) Event code 128 (KEY_STOP) Event code 142 (KEY_SLEEP) Event code 161 (KEY_EJECTCD) Event code 164 (KEY_PLAYPAUSE) Event code 167 (KEY_RECORD) Event code 168 (KEY_REWIND) Event code 174 (KEY_EXIT) Event code 207 (KEY_PLAY) Event code 208 (KEY_FASTFORWARD) Event code 210 (KEY_PRINT) Event code 212 (KEY_CAMERA) Event code 224 (KEY_BRIGHTNESSDOWN) Event code 225 (KEY_BRIGHTNESSUP) Event code 226 (KEY_MEDIA) Event code 352 (KEY_OK) Event code 356 (KEY_POWER2) Event code 358 (KEY_INFO) Event code 365 (KEY_EPG) Event code 366 (KEY_PVR) Event code 368 (KEY_LANGUAGE) Event code 369 (KEY_TITLE) Event code 370 (KEY_SUBTITLE) Event code 372 (KEY_ZOOM) Event code 373 (KEY_MODE) Event code 377 (KEY_TV) Event code 385 (KEY_RADIO) 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 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 407 (KEY_NEXT) Event code 412 (KEY_PREVIOUS) Event code 425 (KEY_PRESENTATION) Event code 430 (KEY_MESSENGER) Event code 512 (KEY_NUMERIC_0) Event code 513 (KEY_NUMERIC_1) Event code 514 (KEY_NUMERIC_2) Event code 515 (KEY_NUMERIC_3) Event code 516 (KEY_NUMERIC_4) Event code 517 (KEY_NUMERIC_5) Event code 518 (KEY_NUMERIC_6) Event code 519 (KEY_NUMERIC_7) Event code 520 (KEY_NUMERIC_8) Event code 521 (KEY_NUMERIC_9) Event code 522 (KEY_NUMERIC_STAR) Event code 523 (KEY_NUMERIC_POUND) Event type 2 (EV_REL) Event code 0 (REL_X) Event code 1 (REL_Y) Event type 4 (EV_MSC) Event code 4 (MSC_SCAN) Key repeat handling: Repeat type 20 (EV_REP) Repeat code 0 (REP_DELAY) Value 500 Repeat code 1 (REP_PERIOD) Value 125 Properties: Property type 5 (INPUT_PROP_POINTING_STICK) Testing ... (interrupt to exit) Event: time 1599393018.880436, type 4 (EV_MSC), code 4 (MSC_SCAN), value 800f041e Event: time 1599393018.880436, type 1 (EV_KEY), code 103 (KEY_UP), value 1 Event: time 1599393018.880436, -------------- SYN_REPORT ------------ Event: time 1599393018.988422, type 4 (EV_MSC), code 4 (MSC_SCAN), value 800f041e Event: time 1599393018.988422, -------------- SYN_REPORT ------------ Event: time 1599393019.120407, type 1 (EV_KEY), code 103 (KEY_UP), value 0 Event: time 1599393019.120407, -------------- SYN_REPORT ------------ Event: time 1599393019.808435, type 4 (EV_MSC), code 4 (MSC_SCAN), value 800f041f Event: time 1599393019.808435, type 1 (EV_KEY), code 108 (KEY_DOWN), value 1 Event: time 1599393019.808435, -------------- SYN_REPORT ------------ Event: time 1599393019.916422, type 4 (EV_MSC), code 4 (MSC_SCAN), value 800f041f Event: time 1599393019.916422, -------------- SYN_REPORT ------------ Event: time 1599393020.048406, type 1 (EV_KEY), code 108 (KEY_DOWN), value 0 Event: time 1599393020.048406, -------------- SYN_REPORT ------------ Event: time 1599393021.028437, type 4 (EV_MSC), code 4 (MSC_SCAN), value 800f0420 Event: time 1599393021.028437, type 1 (EV_KEY), code 105 (KEY_LEFT), value 1 Event: time 1599393021.028437, -------------- SYN_REPORT ------------ Event: time 1599393021.136426, type 4 (EV_MSC), code 4 (MSC_SCAN), value 800f0420 Event: time 1599393021.136426, -------------- SYN_REPORT ------------ Event: time 1599393021.268407, type 1 (EV_KEY), code 105 (KEY_LEFT), value 0 Event: time 1599393021.268407, -------------- SYN_REPORT ------------ Event: time 1599393021.712425, type 4 (EV_MSC), code 4 (MSC_SCAN), value 800f0421 Event: time 1599393021.712425, type 1 (EV_KEY), code 106 (KEY_RIGHT), value 1 Event: time 1599393021.712425, -------------- SYN_REPORT ------------ Event: time 1599393021.816428, type 4 (EV_MSC), code 4 (MSC_SCAN), value 800f0421 Event: time 1599393021.816428, -------------- SYN_REPORT ------------ Event: time 1599393021.948407, type 1 (EV_KEY), code 106 (KEY_RIGHT), value 0 Event: time 1599393021.948407, -------------- SYN_REPORT ------------ Event: time 1599393022.408424, type 4 (EV_MSC), code 4 (MSC_SCAN), value 800f0422 Event: time 1599393022.408424, type 1 (EV_KEY), code 352 (KEY_OK), value 1 Event: time 1599393022.408424, -------------- SYN_REPORT ------------ Event: time 1599393022.512424, type 4 (EV_MSC), code 4 (MSC_SCAN), value 800f0422 Event: time 1599393022.512424, -------------- SYN_REPORT ------------ Event: time 1599393022.644406, type 1 (EV_KEY), code 352 (KEY_OK), value 0 Event: time 1599393022.644406, -------------- SYN_REPORT ------------ Event: time 1599393023.244428, type 4 (EV_MSC), code 4 (MSC_SCAN), value 800f040f Event: time 1599393023.244428, type 1 (EV_KEY), code 358 (KEY_INFO), value 1 Event: time 1599393023.244428, -------------- SYN_REPORT ------------ Event: time 1599393023.348428, type 4 (EV_MSC), code 4 (MSC_SCAN), value 800f040f Event: time 1599393023.348428, -------------- SYN_REPORT ------------ Event: time 1599393023.480405, type 1 (EV_KEY), code 358 (KEY_INFO), value 0 Event: time 1599393023.480405, -------------- SYN_REPORT ------------ Event: time 1599393025.672427, type 4 (EV_MSC), code 4 (MSC_SCAN), value 800f0412 Event: time 1599393025.672427, type 1 (EV_KEY), code 402 (KEY_CHANNELUP), value 1 Event: time 1599393025.672427, -------------- SYN_REPORT ------------ Event: time 1599393025.776430, type 4 (EV_MSC), code 4 (MSC_SCAN), value 800f0412 Event: time 1599393025.776430, -------------- SYN_REPORT ------------ Event: time 1599393025.908407, type 1 (EV_KEY), code 402 (KEY_CHANNELUP), value 0 Event: time 1599393025.908407, -------------- SYN_REPORT ------------ Event: time 1599393026.520424, type 4 (EV_MSC), code 4 (MSC_SCAN), value 800f0413 Event: time 1599393026.520424, type 1 (EV_KEY), code 403 (KEY_CHANNELDOWN), value 1 Event: time 1599393026.520424, -------------- SYN_REPORT ------------ Event: time 1599393026.624427, type 4 (EV_MSC), code 4 (MSC_SCAN), value 800f0413 Event: time 1599393026.624427, -------------- SYN_REPORT ------------ Event: time 1599393026.756409, type 1 (EV_KEY), code 403 (KEY_CHANNELDOWN), value 0 Event: time 1599393026.756409, -------------- SYN_REPORT ------------ ^C Yet again: up, down, left, right, then OK, info, ChUp and ChDown keys were pressed during logging: Terminal root@xbian:/home/xbian# tail -f /home/xbian/.kodi/temp/kodi.log 2020-09-06 12:00:34.769 T:2963271888 DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 125ms 2020-09-06 12:00:34.769 T:2611998928 DEBUG: Thread Timer start, auto delete: false 2020-09-06 12:00:34.774 T:2984017184 DEBUG: Keyboard: scancode: 0x67, sym: 0x0111, unicode: 0x0000, modifier: 0x0 2020-09-06 12:00:34.774 T:2984017184 DEBUG: HandleKey: up (0xf080) pressed, action is up 2020-09-06 12:00:34.901 T:2611998928 DEBUG: Thread Timer 2611998928 terminating 2020-09-06 12:00:34.901 T:2984017184 DEBUG: Keyboard: scancode: 0x67, sym: 0x0111, unicode: 0x0000, modifier: 0x0 2020-09-06 12:00:38.485 T:2963271888 DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 125ms 2020-09-06 12:00:38.485 T:2611998928 DEBUG: Thread Timer start, auto delete: false 2020-09-06 12:00:38.518 T:2984017184 DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0 2020-09-06 12:00:38.518 T:2984017184 DEBUG: HandleKey: down (0xf081) pressed, action is down 2020-09-06 12:00:38.721 T:2611998928 DEBUG: Thread Timer 2611998928 terminating 2020-09-06 12:00:38.751 T:2984017184 DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0 2020-09-06 12:00:40.629 T:2963271888 DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 125ms 2020-09-06 12:00:40.629 T:2611998928 DEBUG: Thread Timer start, auto delete: false 2020-09-06 12:00:40.630 T:2984017184 DEBUG: Keyboard: scancode: 0x69, sym: 0x0114, unicode: 0x0000, modifier: 0x0 2020-09-06 12:00:40.631 T:2984017184 DEBUG: HandleKey: left (0xf082) pressed, action is left 2020-09-06 12:00:40.873 T:2611998928 DEBUG: Thread Timer 2611998928 terminating 2020-09-06 12:00:40.874 T:2984017184 DEBUG: Keyboard: scancode: 0x69, sym: 0x0114, unicode: 0x0000, modifier: 0x0 2020-09-06 12:00:42.429 T:2963271888 DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 125ms 2020-09-06 12:00:42.429 T:2611998928 DEBUG: Thread Timer start, auto delete: false 2020-09-06 12:00:42.439 T:2984017184 DEBUG: Keyboard: scancode: 0x6a, sym: 0x0113, unicode: 0x0000, modifier: 0x0 2020-09-06 12:00:42.439 T:2984017184 DEBUG: HandleKey: right (0xf083) pressed, action is right 2020-09-06 12:00:42.669 T:2611998928 DEBUG: Thread Timer 2611998928 terminating 2020-09-06 12:00:42.701 T:2984017184 DEBUG: Keyboard: scancode: 0x6a, sym: 0x0113, unicode: 0x0000, modifier: 0x0 2020-09-06 12:00:57.701 T:2984017184 DEBUG: Keyboard: scancode: 0x00, sym: 0x0000, unicode: 0x0000, modifier: 0x0 2020-09-06 12:00:57.701 T:2984017184 DEBUG: GetActionCode: Trying Hardy keycode for 0xf200 2020-09-06 12:00:57.701 T:2984017184 DEBUG: Previous line repeats 1 times. 2020-09-06 12:00:57.701 T:2984017184 DEBUG: HandleKey: long-0 (0x100f200, obc-16838913) pressed, action is previousmenu 2020-09-06 12:00:57.701 T:2984017184 DEBUG: CGUIWindowManager::PreviousWindow: Deactivate 2020-09-06 12:00:58.041 T:2984017184 DEBUG: Keyboard: scancode: 0x00, sym: 0x0000, unicode: 0x0000, modifier: 0x0 2020-09-06 12:01:03.965 T:2984017184 DEBUG: Previous line repeats 1 times. 2020-09-06 12:01:03.965 T:2984017184 DEBUG: GetActionCode: Trying Hardy keycode for 0xf200 2020-09-06 12:01:03.965 T:2984017184 DEBUG: Previous line repeats 1 times. 2020-09-06 12:01:03.965 T:2984017184 DEBUG: HandleKey: long-0 (0x100f200, obc-16838913) pressed, action is previousmenu 2020-09-06 12:01:03.965 T:2984017184 DEBUG: CGUIWindowManager::PreviousWindow: Deactivate 2020-09-06 12:01:04.301 T:2984017184 DEBUG: Keyboard: scancode: 0x00, sym: 0x0000, unicode: 0x0000, modifier: 0x0 2020-09-06 12:01:06.622 T:2984017184 DEBUG: Previous line repeats 1 times. 2020-09-06 12:01:06.622 T:2984017184 DEBUG: GetActionCode: Trying Hardy keycode for 0xf200 2020-09-06 12:01:06.622 T:2984017184 DEBUG: Previous line repeats 1 times. 2020-09-06 12:01:06.623 T:2984017184 DEBUG: HandleKey: long-0 (0x100f200, obc-16838913) pressed, action is previousmenu 2020-09-06 12:01:06.623 T:2984017184 DEBUG: CGUIWindowManager::PreviousWindow: Deactivate 2020-09-06 12:01:06.977 T:2984017184 DEBUG: Keyboard: scancode: 0x00, sym: 0x0000, unicode: 0x0000, modifier: 0x0 2020-09-06 12:01:10.253 T:2984017184 DEBUG: Previous line repeats 1 times. 2020-09-06 12:01:10.253 T:2984017184 DEBUG: GetActionCode: Trying Hardy keycode for 0xf200 2020-09-06 12:01:10.253 T:2984017184 DEBUG: Previous line repeats 1 times. 2020-09-06 12:01:10.253 T:2984017184 DEBUG: HandleKey: long-0 (0x100f200, obc-16838913) pressed, action is previousmenu 2020-09-06 12:01:10.253 T:2984017184 DEBUG: CGUIWindowManager::PreviousWindow: Deactivate 2020-09-06 12:01:10.518 T:2984017184 DEBUG: Keyboard: scancode: 0x00, sym: 0x0000, unicode: 0x0000, modifier: 0x0 I have no idea what's happening here... I've been trying to set up my own keymaps as well, but they never seemed to have any effect on the outcome, I supose I am doing something wrong... Don't know what to do now... (BTW I also seem to have broken APT though I have no idea how that happened ![]() Code: root@xbian:/home/xbian# apt update |
|||
« Next Oldest | Next Newest »
|