CoreELEC on U22-XJ

What's the secret to getting the power button working on CoreELEC with the U22-XJ? I have the A2 Lite remote, I've enabled the bl301 blob, and set the remote code to Minix, rebooted... but there has been no change, the power button continues to do nothing in CoreELEC.
 
You need to set the correct gpio number in config.ini. But I need to take a look first what gpio is used for the power button. Maybe it's even not possible when the power button is connected to the MCU and not to the Amlogic SoC.
 
You need to set the correct gpio number in config.ini. But I need to take a look first what gpio is used for the power button. Maybe it's even not possible when the power button is connected to the MCU and not to the Amlogic SoC.

How does one go about determining the "correct gpio" number? I haven't been able to locate any documentation whatsoever regarding this for the U22-XJ so far.

Edit: Sorry, I didn't notice that you said that *you* need to take a look first... thanks for your help.
 
Have you tried this, from the first post in the How to Install CoreElec on the U22-XJ thread?

Remote control configuration:
If you plan to use the Minix remote or the A2/A3 remotes then save the following file here on the root of your flash drive as X:/remote.conf.

This works for me.
 
@nuggler what "power button" you talk about?
I just tried it with the power button on the device. It works without any issue with and without bl301 injected.

Or you mean the power button on the A2 remote to wake it up?

I also tried the A2 remote and the power up does work if BL301 got injected.
Just set the Minix as remote code and it should work.

/flash/config.ini does look like this for Minix remote:
Code:
#------------------------------------------------------------------------------------------------------
#
# IR setup
#   Setup a custom keycode to wake the N2/C4 from suspend or poweroff
#   You can stop kodi and eventlircd and use "ir-keytable -u" to obtain a compatible u-boot
#   IR keycode
#   This setting will require a injected bl301 blob.
#
remotewakeup='0xe718fe01'
#
#   decode_type can be one of the following:
#   NEC='0x0', DUOKAN='0x1', TOSHIBA='0x2', RCA='0x3', RC5='0x4', RC6A='0x5', NEC_TOSHIBA_2IN1='0x6',
#   NEC_RCA_2IN1='0x7', RCMM='0x8', NEC_RC5_2IN1='0x9', NEC_RC5_2IN1='0xa', RC6='0xb'
#   This setting will require a injected bl301 blob.
#
decode_type='0x0'
#
#   remote power key mask:
#   Some IR protocols implement a toggle bit, this can be ignored by the "and" mask:
#   RC5='0x37ff', RC6='0x1effff', RC6A='0xffff7fff'
#   This setting will require a injected bl301 blob.
#
remotewakeupmask='0xffffffff'
#
#------------------------------------------------------------------------------------------------------
 
Last edited:
@Portisch It was the power button on the A2 Lite remote that I meant, the power switch on the device itself works fine. I did inject the BL301 and set Minix remote code, but the remote power button on the remote neither suspends nor wakes up it up after booting into CoreELEC. I'll check the contents of my config.ini.

Edit: Well this is bizarre. I went over to it and pressed the power button on the remote again and it woke it right up. I didn't change a thing since yesterday when I swear the button was completely ineffectual after multiple reboots. Problem... solved? :)

Edit 2: Okay. It is waking it up. But the remote power button is still not suspending it. I need to go into the menu to suspend/power off.
 
Last edited:
remote.conf put into configfiles folder did not work for the basic (not A2) remote that comes with U22-XJ.. any other ideas? I used the T5 remote.conf file. (by the way, the remote does work to turn on the box from shutdown/suspend)
 
Back
Top