Hi,
Shutdown command (shutdown -h -P now) cause system boot if 5V still remained that is expected behavior.
I tried it was success at first time but it failed at 2nd time.
I cleared SRTC registers once for secure interrupt but nothing changed.
Why 2nd shutdown command ignored (no boot)?
Can anybody help me?
Please try to use "shutdown -r now" instead of "-h".
Have a great day,
Victor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Dear Victor
Yes, -r works fine but actually what I like to want is "20sec delayed" wake up.
Finally I found hwclock command solved this problem as following.
WRONG:
# shutdown -h now
...
# shutdown -h now
CORRECT:
# shutdown -h now
...
# hwclock -w
# echo 0 > /sys/class/rtc/rtc0/wakealarm
# echo +20 > /sys/class/rtc/rtc0/wakealarm
# shutdown -h now
Just in case, could you explain why such command is need?
Thank you for your kindness.
BR