Linux Kodi 19.4 detects some IR remote keys as 0x00 while ir-ketable detects them correctly
#1
Question 
As subject says, i've configured Linux (Ubuntu 22.10) to work with my IR remote (Avermedia RM-KS) and now ir-keytable detects all codes and maps them correctly.
Rc keymap is loaded and read correctly. Doing a test with ir-keytable -t show everything is ok ->  https://paste.kodi.tv/sudicedicu

I have no Lirc installed but everything should work in Kodi (19.4 from official Kodi repo) just fine and... no.
Kodi reads some codes (with different numbers from ir-keytable) and performs correct operation (volume +, volume -, mute) while other keys like 0-9, channel up, channel down are detected as 0x00.

What's wrong? How can i solve the problem?

Thanks for your help.

Code:

2022-12-18 20:43:05.259 T:110968   DEBUG <general>: Keyboard: scancode: 0x00, sym: 0x0000, unicode: 0x0000, modifier: 0x0
2022-12-18 20:43:05.259 T:110968   DEBUG <general>: GetActionCode: Trying Hardy keycode for 0xf200
2022-12-18 20:43:05.259 T:110968    INFO <general>: Skipped 3 duplicate messages..
2022-12-18 20:43:05.259 T:110968   DEBUG <general>: HandleKey: long-0 (0x100f200, obc-16838913) pressed, action is
2022-12-18 20:43:05.261 T:110979   DEBUG <general>: Presentation: Frame was discarded by compositor
2022-12-18 20:43:05.311 T:111046   DEBUG <general>: Thread Timer 140116102203072 terminating
2022-12-18 20:43:05.385 T:110968   DEBUG <general>: Keyboard: scancode: 0x00, sym: 0x0000, unicode: 0x0000, modifier: 0x0
2022-12-18 20:43:05.392 T:110979   DEBUG <general>: Presentation: Frame was discarded by compositor
2022-12-18 20:43:07.654 T:111047    INFO <general>: Skipped 45 duplicate messages..
2022-12-18 20:43:07.654 T:111047   DEBUG <general>: Thread Timer start, auto delete: false
2022-12-18 20:43:07.678 T:110968   DEBUG <general>: Keyboard: scancode: 0x00, sym: 0x0000, unicode: 0x0000, modifier: 0x0
2022-12-18 20:43:07.678 T:110968   DEBUG <general>: GetActionCode: Trying Hardy keycode for 0xf200
2022-12-18 20:43:07.678 T:110968    INFO <general>: Skipped 3 duplicate messages..
2022-12-18 20:43:07.678 T:110968   DEBUG <general>: HandleKey: long-0 (0x100f200, obc-16838913) pressed, action is
2022-12-18 20:43:07.779 T:111047   DEBUG <general>: Thread Timer 140116102203072 terminating
2022-12-18 20:43:07.804 T:110968   DEBUG <general>: Keyboard: scancode: 0x00, sym: 0x0000, unicode: 0x0000, modifier: 0x0
2022-12-18 20:43:07.837 T:110979   DEBUG <general>: Presentation: Frame was discarded by compositor
2022-12-18 20:43:08.652 T:110972    INFO <general>: Skipped 13 duplicate messages..
2022-12-18 20:43:08.652 T:110972   DEBUG <general>: Sink changed
2022-12-18 20:43:08.658 T:110979   DEBUG <general>: Presentation: Frame was discarded by compositor
2022-12-18 20:43:09.726 T:111048    INFO <general>: Skipped 20 duplicate messages..
2022-12-18 20:43:09.726 T:111048   DEBUG <general>: Thread Timer start, auto delete: false
2022-12-18 20:43:09.743 T:110979   DEBUG <general>: Presentation: Frame was discarded by compositor
Reply
#2
And that is why some people (some Ubuntu Linux users, at least) are still installing and using the OLD version (pre-1.0x) version of LIRC, as suggested here...

Make LIRC work in Ubuntu 18.04, 20.04, or 22.04, so that you can use your infrared remote in Kodi

I am not saying you should do this, and some guys seem vehemently opposed to this idea, but it is the only thing that has consistently allowed me to use my Windows MCE compatible remote with Kodi and not have any weirdness, or any problems with certain buttons.  If anyone tries to tell you that you can use a newer version of LIRC, please ask them to provide detailed, exact, step-by-step instructions and if they actually do (it would be a first) see if you can actually understand and follow them.  I keep hoping one of those guys will do a video walkthrough on how to do it, but so far they have been the sort who love to tell others they are doing it wrong (even if it works) while not providing clear and simple instructions for doing it their way.

The bonus of using the old version of LIRC is you can also control things outside of Kodi, including using a button on your remote to start Kodi from the desktop.  I use a Harmony remote and by using a .lircrc file can control several things that have nothing to do with Kodi, but that kind of gets you deeper in the weeds of LIRC.
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi 19.4 detects some IR remote keys as 0x00 while ir-ketable detects them correctly0