Skip to content

Instantly share code, notes, and snippets.

@akhilman
Last active March 23, 2024 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akhilman/80a17aef80e9e4246ac5c6a356237df4 to your computer and use it in GitHub Desktop.
Save akhilman/80a17aef80e9e4246ac5c6a356237df4 to your computer and use it in GitHub Desktop.
IR remote config for X96 TV box
# /etc/rc_maps.cfg
#
# Keymaps table
#
# This table creates an association between a keycode file and a kernel
# driver. It can be used to automatically override a keycode definition.
#
# Although not yet tested, it is mented to be added at udev.
#
# To use, you just need to run:
# ./ir-keytable -a
#
# Or, if the remote is not the first device:
# ./ir-keytable -a -s rc1 # for RC at rc1
#
# Format:
# driver - name of the driver provided via uevent - use * for any driver
# table - RC keymap table, provided via uevent - use * for any table
# file - file name. If directory is not specified, it will default to
# /etc/rc_keymaps.
# For example:
# driver table file
# cx8800 * ./keycodes/rc5_hauppauge_new.toml
# * rc-avermedia-m135a-rm-jx ./keycodes/kworld_315u.toml
# saa7134 rc-avermedia-m135a-rm-jx ./keycodes/keycodes/nec_terratec_cinergy_xs.toml
# em28xx * ./keycodes/kworld_315u.toml
# * * ./keycodes/rc5_hauppauge_new.toml
# Table to automatically load the rc maps for the bundled IR's provided with the
# devices supported by the linux kernel
#driver table file
meson-ir * /etc/rc_keymaps/x96
# /etc/rc_keymaps/x96
# table X96, type: NEC
0x141 KEY_MUTE
0x110 KEY_YELLOW
0x118 KEY_BLUE
0x10f KEY_GREEN
0x143 KEY_RED
0x151 KEY_LEFT
0x116 KEY_UP
0x150 KEY_RIGHT
0x11a KEY_DOWN
0x113 KEY_ENTER
0x119 KEY_BACK
0x111 KEY_HOMEPAGE
0x140 KEY_POWER
0x14c KEY_MENU
0x100 KEY_CONTEXT_MENU # mouse
0x101 KEY_0
0x14e KEY_1
0x10d KEY_2
0x10c KEY_3
0x14a KEY_4
0x109 KEY_5
0x108 KEY_6
0x146 KEY_7
0x105 KEY_8
0x104 KEY_9
0x142 KEY_BACKSPACE
0x0d KEY_CONFIG # TV Control - Set
0x1f1 KEY_POWER2 # TV Control - Power
0x1f3 KEY_TV # TV Control - TV In
0x1f4 KEY_VOLUMEDOWN # TV Control - Vol-
0x1f5 KEY_VOLUMEUP # TV Control - Vol+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment