Add your code in config.ini
#------------------------------------------------------------------------------------------------------
#
# IR setup for Odroid N2
# Setup a custom keycode to wake the N2 from suspend or poweroff
# You can stop kodi and eventlircd and use "ir-keytable -u" to obtain a compatible NEC keycode
#
remotewakeup="0xbf40fe01"
#
# decode_type can be one of the following
# UNKNOWN=0x0, NEC=0x1, DUOKAN=0x2, XMP_1=0x3, RC5=0x4, RC6=0x5,
# XMP_1_SW=0x6, NEC_SW=0x7, LEGACY_NEC=0x8, RC6_21BIT=0x9
#
decode_type="0x1" # NEC
#
#------------------------------------------------------------------------------------------------------
Mine works for me
Also check output of dmesg|grep lirc
. Should show something like this:
[ 0.000000@0] Kernel command line: console=ttyS0,115200 console=tty0 BOOT_IMAGE=kernel.img boot=UUID=1304-4710 disk=UUID=e7ae960d-36c0-4d51-b2d2-b7aae2017990 no_console_suspend logo=osd0,loaded,0x3f800000,1080p50hz vout=1080p50hz,enable voutmode=hdmi hdmimode=1080p50hz cvbsmode=nocvbs mac=00:1e:xx:xx:xx:xx consoleblank=0 max_freq_a53=1896 max_freq_a73=1800 maxcpus=6 enable_wol=1 hdmitx=cec3f quiet hk-lirc-helper.remotewakeup="0xbf40fe01" hk-lirc-helper.decode_type="0x1" # NEC
[ 5.540021@3] lirc_helper: wakeupkey 0xbf40fe01, protocol 0x1