How to configure IR wakeup code

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.

IR Remote 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 code.

As CoreELEC uses meson-ir by default you are able to scan your IR remote wakeup code and apply it to your config.ini. If you use meson-remote you have to temporary remove any remote.conf located in /flash/ and/or /storage/.config. After a reboot the meson-ir device will be active.

Firstly you need to SSH into your device and then stop the Kodi and eventlircd services:

systemctl stop kodi
systemctl stop eventlircd

Next you need to run ir-keytable with option -u:

ir-keytable -u

Press now the desired button for wake up on your IR remote. If the decoded protocol is implemented a code like this will be shown:

Received IRMP code: remotewakeup='0xbf40fe01', decode_type='0x0', remotewakeupmask='0xffffffff'

Add this values in your config.ini and reboot. On next suspend/power off you should be able to wake up the device with your previously scanned IR code.

Since 20210219 (name).remotewakeup user file is supported in CoreELEC-19:
Just place your custom IR wakeup code in a new file in /storage/.config.

Example H96Pro+ remote: Filename: H96Pro+.remotewakeup
Content of the file:


After a reboot the IR wakeup code should become available in the predefined list in CoreELEC settings.

If you get a error message like this: /sys/class/rc/: No such file or Directory please force first meson-ir modus by touch a file like this: /storage/.config/remote.force_meson_ir. After a reboot the command above should work. When the code got decoded the touched file can be deleted to be able to use meson-remote again.

If the decoded protocol is not implemented you will receive a message like this:

Received IRMP code: scancode='0x00251001', IRMP protocol = 7, decode_type is undefined!

Then a implementation/code mapping for u-boot would be needed.

If you receive nothing at all you will need to debug the IR pulses to detect the correct IR protocol:

echo 2 > /sys/module/rc_core/parameters/debug

The received IR pulses will be printed to the kernel console and can be read by entering dmesg.

Edit config.ini

The easiest way is to insert your eMMC/SD card to a PC and edit the values remotewakeup, decode_type and remotewakeupmask in the config.ini file by a unix compatible file editor.

The second way is to update via SSH.

Make /flash writable:

mount -o rw,remount /flash

Then edit the config.ini with your preferred editor like vi or nano:

nano /flash/config.ini

After saving type:

sync && reboot
CoreELEC BL301 Wake-Up feature [inject_bl301]
Power on/off with minix neo a2 remote with odroid N2
Wake corelec with bluetooth remote?
MCE remote wakeup on Generic S905W
Bl301 injection, problems, help,
How might I be able to turn system 'ON' from an 'OFF' state with my IR remote?
How to Edit config.ini?
N2 Core Elec Will Not Reboot After Shutdown Without Unplugging
X96MAX+ don´t start after IR option on
[S922X] X88 King
Odroid N2Plus how to suspend/resume power on/off
X96 (S905X), power on by IR remote not working
Strange CEC effect with Tanix TX3
Odroid N2+ IR powering : How to have separate buttons for power on and power off?
X96 mini Power Off not working
GT King power on issue
CEC with CoreELEC 9.2.2 breaks ARC?
Amlogic S905X3, S905Y3, S905D3 thread
[S905X2] Setup a Ugoos X2 Cube with CoreELEC 9.2.2? Power on by USB keyboard?
Nightly builds (NEW)
Power cycle via BT
Bl301 injection, problems, help, Discussion
Bl301 injection, problems, help,
CoreELEC Settings Hardware Section
CoreELEC Settings Hardware Section
Bl301 injection, problems, help,
Logitech Harmony 650 & Odroid N2+
Hardware settings - IR Remote wakeup
Hardware settings - IR Remote wakeup
CoreELEC 9.2.2 on T95 max(plus) and ceemmc tool
Odroid C4 not starting with remote
How Do I Get This Controller To Turn My N2+ On Using IR?
Wetek Play 2 remote on ODROID N2 [Guide]
IR WakeUP config does'nt work
Denon and Panasonic Non-supported remotes
Odroid N2 test builds
Bl301 injection, problems, help,
Nightly builds (NEW)
Bl301 injection, problems, help,
Bl301 injection, problems, help,
Issues with suspend/resume and Flirc
Bl301 injection, problems, help,
Odroid N2 test builds
Bl301 injection, problems, help,
Odroid N2 test builds
Please recommended a working Controller odroid n2
Logitech Harmony 650 & Odroid N2+
How can I change the power OFF code ? (+ how to reset meson-ir ?)
[S905X3] X96Air_P2/P3 4/32GB 1Gbit Lan (How to config)