Hello, can the imx93 evk ONOFF button do short press standby and short press wake-up function again? How to achieve it?
Oh, sorry I see you have already figured it out. Please ignore my response.
@xiang_1001 yes ONOFF button is routed to a gpio line which further goes to the PMIC inputs and can be configured to act as a wake-up source.
as part of default bsp, you can definitely wake the system from suspend by short pressing the ONOFF button. you can try by executing 'echo mem > /sys/power/state' to send it to suspend and then press the onoff button just once to wake it up.
Or If you want to configure the onoff button to 'suspend' the system, you have to do the following: -
1. Edit the conf file - /etc/systemd/logind.conf
set HandlePowerKey variable to 'suspend'
2. Restart systemd-logind
systemctl restart systemd-logind
after this you will be able to send imx93 to suspend state with short pressing ONOFF button