Power on/off Khadas Edge

Which system do you use? Android, Ubuntu, OOWOW or others?

Android

How can I turn on/off Khadas Edge without using the power button?

@DanTretyakov

#sleep
echo mem > /sys/power/state
#wakeup
echo on > /sys/power/state

Thanks, @goenjoy! I meant something a little different. I supply power to Khadas, but I only have a microcontroller STM32 connected to the device via the SPI. I can’t enter text in the console

@DanTretyakov I found that the above method is also not effective because after hibernation, it cannot be awakened through commands. If you don’t use the power key, you can only achieve your needs through the power key of the infrared remote control.

If I understand correctly, infrared control of turning on the device occurs through element1? on board 1. Is this the initial turn on after power is applied or a return from sleep mode?