roidy
6 December 2025 19:10
1
Does anybody know how to handle remote controls that use the necx protocol?
I’m trying to use a Roku ir remote control but it returns 2 scancodes pre button.
If I fast tap the “OK” button it returns the following:-
14677.572028: lirc protocol(necx): scancode = 0xeac22a
If I press it slightly longer, like a normal press length it returns the following:-
14785.464050: lirc protocol(necx): scancode = 0xeac22a
14785.572018: lirc protocol(necx): scancode = 0xeac2aa
If I long press for a repeat it returns:-
14849.820019: lirc protocol(necx): scancode = 0xeac22a
14849.928038: lirc protocol(necx): scancode = 0xeac2aa
14850.036027: lirc protocol(necx): scancode = 0xeac2aa
14850.148031: lirc protocol(necx): scancode = 0xeac2aa
14850.256031: lirc protocol(necx): scancode = 0xeac2aa
14850.364036: lirc protocol(necx): scancode = 0xeac2aa
14850.472043: lirc protocol(necx): scancode = 0xeac2aa
This is with ir-keytable set to the nec protocol:-
ir-keytable -p nec -t
I can’t seem to set necx as a protocol. Any help please.
Try ir-keytable -u. It will use a multi software decoder.
This HowTo applies to following devices:
Odroid N2
Odroid C4
Odroid HC4
Amlogic devices with bl301 injection
About bl301 injection: CoreELEC BL301 Wake-Up feature [inject_bl301]
Use predefined IR wake up code
There is a list of predefined IR power codes available in CoreELEC settings.
Settings
CoreELEC
Hardware
IR Remote Power Code
[IR-power-code]
Obtain IR wake up code by command line
Sometimes there is no matching IR power code predefined. Use this option to find your unique IR power …
roidy
6 December 2025 22:15
3
Thank, I tried -u but that doesn’t return any scan codes at all for the remote no matter what button I press.
Looking at the ir-keytable help the -u option only seems to be related to scanning for power on codes. I’m not trying to use power on or wake, I’m just trying to get a remote that uses the necx protocol to work.
Read the how to in more detail - debug the scan.
When you get the timings you can check GitHub - IRMP-org/IRMP: Infrared Multi Protocol Decoder .
It does support most IR protocols available.