View: 9132|Reply: 7

Complete set of IR events for Kodi

[Copy link]

12

threads

99

posts

375

credits

Intermediate member

Rank: 3Rank: 3

credits
375
Published in 2016-3-3 01:43:24 | Show all floors |Read mode
Here is my set of IR events which work with Kodi:

KEY_VOLUMEDOWN
KEY_VOLUMEUP
KEY_MUTE
KEY_UP
KEY_DOWN
KEY_LEFT
KEY_RIGHT
KEY_HOME
KEY_BACK
KEY_OK

!!!KEY_STOP
KEY_PLAYPAUSE
KEY_PREVIOUS
!!! KEY_NEXT works as volume increase
KEY_FASTFORWARD
KEY_REWIND

!!KEY_O

KEY_SUBTITLE
KEY_INFO
KEY_MENU

I still have problem with stopping the video because KEY_STOP is interpreted rather as pause not real stop.
I also need to display playback info like after 'o' pressing. KEY_O doesn't work. Any ideas or experiences?


12

threads

99

posts

375

credits

Intermediate member

Rank: 3Rank: 3

credits
375
 Author| Published in 2016-3-3 03:03:04 | Show all floors
Edited by cbm80 at 2016-3-3 03:16

Finally I solved it by myself. I programmed remote from scratch and now it works almost ok. It seems that you must press keys very carefully during first phase of irrecord (measuring pulses, counting bits, etc)
My second attempt generated completly different signal parameters. But scanned codes were the same so I took them from previous programming.

I collected all my steps in one place - maybe it will help somebody in the future.

1. Start recording
  1. killall lircd; irrecord /storage/.config/lircd.conf
Copy code

2. Change name after "begin remote" to "name devinput"
  1. nano /storage/.config/lircd.conf
Copy code

It should look like below:
  1. begin remote

  2.   name  devinput
Copy code

4. Now test all codes using "irw" command. If every code is ok you are done.
  1. killall lircd; lircd /storage/.config/lircd.conf
  2. irw
Copy code

5. Add lircd to /storage/.config/autostart.sh:
  1. #!/bin/sh
  2. killall lircd; lircd /storage/.config/lircd.conf
Copy code

6. Reboot OpenELEC or restart kodi
  1. reboot
Copy code


1

threads

25

posts

216

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
216
Published in 2016-3-3 03:52:13 | Show all floors
Very Useful Information thank you

3

threads

165

posts

1203

credits

Gold member

Rank: 6Rank: 6

credits
1203
Published in 2016-3-3 05:04:13 | Show all floors
Also, try another remote. I also had one remote that had duplicate codes (too small difrence of IR blast) for different buttons. Therefore it also didn't work properly.

12

threads

99

posts

375

credits

Intermediate member

Rank: 3Rank: 3

credits
375
 Author| Published in 2016-3-3 14:40:10 | Show all floors
If anybody knows what other remote codes are supported by Kodi please write them in this post. Still don't know how to handle equivalent of 'o' key on the keyboard.

4

threads

1118

posts

9206

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9206
Published in 2016-3-3 15:25:25 | Show all floors
I think that all possible "devinput" keys are listed here: https://github.com/xbmc/xbmc/blob/Jarvis/system/Lircmap.xml#L541

12

threads

99

posts

375

credits

Intermediate member

Rank: 3Rank: 3

credits
375
 Author| Published in 2016-3-3 16:05:10 | Show all floors
Thanks.
I also found keyboard keymap: https://github.com/xbmc/xbmc/blo ... eymaps/keyboard.xml
<o>CodecInfo</o>

1

threads

90

posts

764

credits

Senior member

Rank: 4

credits
764
Published in 2016-3-3 21:40:22 | Show all floors
Edited by lymon at 2016-3-3 21:58
cbm80 replied at 2016-3-3 14:40
If anybody knows what other remote codes are supported by Kodi please write them in this post. Still ...
  1. irrecord -l
Copy code

gives a list of all possible ir/key-codes

  1. cat /usr/share/kodi/system/Lircmap.xml
Copy code
and then scroll to section "devinput"...shows all  ir/key-codes possible for devinput


the 'o' key is not available for devinput...unless you mean 0 (zero)....
You could create a custom Lircmap and do it that way:

<codecinfo>KEY_WHATEVER</codecinfo>

Also I think if you link the key you need to ircode "KEY_INFO", then it will also show codec-information when pressing that particular key, but I'm not 100% sure
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list