Advertisement
Guest User

Untitled

a guest
Feb 14th, 2018
53,309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. Firstly we need to stop Kodi and Lirc so SSH to your device and type the following commands
  2.  
  3. systemctl stop kodi
  4. systemctl stop eventlircd
  5.  
  6. Next we need to scan for the IR codes
  7.  
  8. ir-keytable -t
  9.  
  10. Now press buttons on your remote and make a note of the keycodes in notepad
  11.  
  12. Now with the keycodes you need to create your map you can look at https://github.com/LibreELEC-AML/LibreELEC.tv/tree/master/packages/sysutils/v4l-utils/keymaps for an example and here https://github.com/tirithen/xbmc/blob/master/xbmc/platform/linux/input/LinuxInputDevices.cpp#L126 is a list of all available commands to map the buttons to
  13.  
  14. After finishing your file it must be saved in
  15.  
  16. /storage/.config/rc_keymaps/YOURMAPNAME
  17.  
  18. Next edit the following file
  19.  
  20. /storage/.config/rc_maps.cfg
  21.  
  22. and add the following line
  23.  
  24. meson-ir * YOURMAPNAME
  25.  
  26. Now load your new map with the following commands
  27.  
  28. ir-keytable -a /storage/.config/rc_maps.cfg -s rc0
  29.  
  30. Start Kodi and test your map works
  31.  
  32. systemctl start eventlircd
  33. systemctl start kodi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement