Ok, here are my first steps (and failures) to edit the config.ini to make my HC4 wakeup with the X96 Air remote control. At first I need to inform you that I removed petitboot from my HC, so it is booting directly from the µSD card using the builtin “uboot” of the HC4.
My first step was to modify the config.ini like is is shown in the guide.
# 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='0xbf40fe01'
#
# 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'
After a reboot dmesg shows that these parameters are realised:
[ 0.000000@0]d Kernel command line: BOOT_IMAGE=kernel.img boot=UUID=0904-1322 disk=UUID=cc9edc25-198b-43a4-b6a6-37b5a1e93de9 console=ttyS0,115200 console=tty0 no_console_suspend keymap=de remotewakeup=0xbf40fe01 decode_type=0x0 remotewakeupmask=0xffffffff vout=1080p60hz,en logo=osd0,loaded,0x3d800000 frac_rate_policy=1 native_4k_gui=0 hdr_policy=1 quiet ssh systemd.show_status=auto
But when switching to suspend mode or power down something seems to be wrong since the seriell log shows the following error message:
customer pwrkeys for IR is NULL, use defaults!
but it also shows, that the IR receiver is operational and receiving the correct wakeup code
customer pwrkeys for IR is 0xbf40fe01
Do you have any idea was going wrong here ? If needed you will find the 3 complete logs as attachments.
Thx in advance for any hint, Nanobot
config.ini (6.0 KB)
dmesg.txt (72.3 KB)
serial_log.txt (11.0 KB)