- Platform: i.MX6UL EVK
- BSP: Linux 4.1.15
- Flashed Default i.MX6UL EVK Binaries to micro SD.
Background: On Power up the EVK boots successfully and we get Linux console. When I press the PWR button for more than 5 seconds, the system goes to power off state.The PWR button is connected to ONOFF pad of i.MX6UL processor. When I press again the PWR button the system boots and able to get the Linux console again.
One more Experiment: Using following command, able to put the system in stand-by mode successfully.
- echo standby > /sys/power/state
And able to wake successfully using PWR Button
Requirement: On pressing PWR button for more than 5 seconds the system should go for standby mode. And
when PWR button is pressed again it should wake up
We would like to implement a feature, where system goes to Stand-by mode when this button is pressed.
How can we achieve this?
Is there any option to read this ONOFF PAD.?
On pressing PWR button for 5 seconds, How can we change the functionality of the system to go to stand-by mode instead of system shutdown?
Any input about this would be a great help
Thanks in advance.
Keshava Kumar B