I use this remote controller with an Intel NUC with onboard CIR sensor, running Fedora.
The steps should be more-or-less the same for any modern distribution.
Step 1. Install the v4l-utils
package, which contains the program ir-keytable
.
Do not use lirc. The latest kernels come with most of lirc functionality built in.
sudo dnf install v4l-utils
sudo apt install v4l-utils
sudo pacman -S v4l-utils
Step 2. Save the following configuration file as /usr/lib/udev/rc_keymaps/insignia_ns_rc03a_13.toml
[[protocols]]
name = "Insignia_NS-RC03A-13"
protocol = "nec"
variant = "necx"
[protocols.scancodes]
0x860500 = "KEY_1"
0x860501 = "KEY_2"
0x860502 = "KEY_3"
0x860503 = "KEY_4"
0x860504 = "KEY_5"
0x860505 = "KEY_6"
0x860506 = "KEY_7"
0x860507 = "KEY_8"
0x860508 = "KEY_9"
0x860509 = "KEY_0"
0x860542 = "KEY_UP"
0x860516 = "KEY_LEFT"
0x860543 = "KEY_DOWN"
0x860515 = "KEY_RIGHT"
0x860518 = "KEY_ENTER"
0x86051b = "KEY_BACK"
0x860570 = "KEY_PLAY"
0x860581 = "KEY_PAUSE"
0x860571 = "KEY_STOP"
0x86057e = "KEY_REWIND"
0x86057d = "KEY_FORWARD"
0x860580 = "KEY_FASTREVERSE"
0x86057f = "KEY_FASTFORWARD"
0x860541 = "BTN_RIGHT"
Note:0x860541 = "BTN_RIGHT" is the period (dot) button, which functions as a mouse right-click.
Step 3: Load this new configuration as the default keytable:
sudo ir-keytable -c
sudo ir-keytable -w /usr/lib/udev/rc_keymaps/insignia_ns_rc03a_13.toml
Step 4: Ensure the newly added keytable is loaded on boot. Append the following line to the end of /etc/rc_maps.cfg
:
* * insignia_ns_rc03a_13.toml
You should now be able to use your remote control on Linux.
Helpful references:
https://madaboutbrighton.net/articles/remote-control-media-player-without-lirc-using-ir-keymap
https://peppe8o.com/setup-raspberry-pi-infrared-remote-from-terminal/
https://manpages.debian.org/testing/ir-keytable/rc_keymap.5.en.html