[S922X] Bee-link GT King

With the following keymap file now the power button shutdowns Kodi

# table gtkingboxkeymap, type: NEC
0x8051 KEY_POWER

However the behavior is the same as if I select the option on the UI: The box turns off the screen and the network but the leds are still on (green) and the only way to restart is to turn off the power and then turn on again.

PS: I discovered that if I unmount the emmc file system before shutdown (I’m mounting on startup doing something like this: How to run CoreElec on internal memory eMMC on NG boxes (S905X2, S922X) having full operating Android system too) then when I shutdown the box goes to sleep - I say it goes to sleep and not turns off because the led lights are dark red, not completely off, but perhaps that’s just how it works.
Problem is that with the key map the remote does not wake it.

Resume:

  • I can use the remote to turn off Kodi (using the keymap) or to wake the box (using config.ini), but not both.
  • Box does not shutdown if a mount to emmc exists (I have to automate the umount on shutdown.sh).
  • The box never completely turns the leds light off - they’re red on shutdown? / suspend.