NEW Repo for Remote files (Thanks to Betatester)

X92 remote example
There are 2 modes available for remote: remote or keyboard
x92_remote_mod1

X92 in remote mode
X92_remote.zip (1.9 KB)

Green buttons description

6 - works as backspace
5 - work as guide button
4 - in PVR - OSD Channel list, in main menu as TV channel list
3 - works as home button
2 - change audio stream for video content
1 - info about video or about PVR channel, in main menu it open settings

  • copy the file “X92_remote” to /storage/.config/rc_keymaps/ and “rc_maps.cfg” to /storage/.config/
  • copy “remote.xml” to /storage/.kodi/userdata/keymaps/
  • reboot

X92 in keyboard mode (with longpress buttons)
X92_keyboard.zip (2.1 KB)

Green buttons description

6

  • works as backspace on virtual keyboard
  • delete for selections and return in all other places
  • at home screen - go to weather

5

  • main screen - channel EPG
  • PVR - channel EPG, longpress as EPG
  • video - bookmarks

4

  • in PVR - OSD Channel list
  • in main menu as TV channel list
  • as context menu somewhere, longpress as other menu

3

  • shows player info for video content, longpress - home screen

2

  • change audio stream for video content, longpress - Favorites

1

  • info about video or about PVR channel, longpress - PlayerDebug
  • in main menu it open settings

Default settings:
Power longpress - power menu
OK longpress - content menu

To use all described functionality:

  • copy the file “X92_keyboard” to /storage/.config/rc_keymaps/ and “rc_maps.cfg” to /storage/.config/
  • copy “keymaps.xml” to /storage/.kodi/userdata/keymaps/
  • copy empty “98-eventlircd.rules” to “/storage/.config/udev.rules.d/”
  • reboot

For all modes:
You can change the value how long it takes until Linux recognizes that you released a button. Test you remote with command ir-ctl -t 20000 where (20000 is 20 ms - minimal for X92 remote, use bigger values if remote doesn’t work after this command) and after:
Copy /usr/lib/udev/rules.d/70-input-repeat.rules to /storage/.config/udev.rules.d, and then add this line with correct value at the end (all in a single line, after the LABEL=“end” line):

ACTION==“add|change”, KERNEL==“lirc*[0-9]”, DRIVERS==“meson-ir”, RUN+=“/usr/bin/ir-ctl -d $devnode -t 20000”

P.S.: If you receive some errors, try to use files above as template and replace only names and mapping or check in Notepad++ for correct EOL conversion:
Edit->EOL conversion->Unix

And also default kodi keymap for remote:
https://github.com/xbmc/xbmc/blob/master/system/keymaps/remote.xml
Default kodi keymap for keyboard:
https://github.com/xbmc/xbmc/blob/master/system/keymaps/keyboard.xml
Kodi keys Lircmap(not all work):
https://github.com/xbmc/xbmc/blob/master/system/Lircmap.xml

3 Likes