Howto: wake up with RTC

Thank you for your reply!
First attempt to try the suspend state with

sudo bash -c "echo `date '+%s' -d '+ 10 seconds'` > /sys/class/rtc/rtc0/wakealarm"
sudo bash -c "echo mem > /sys/power/state"

seem failed in a way: a) the first command did not seem to wake up; Then after trying power button, the fan started spinning, but the display/keyboard never resumed; Trial used AGX though; as NX doesn’t have RTC batery by default, does it?
ref: Welcome — Jetson Linux<br/>Developer Guide 34.1 documentation
On the second attempt; however, interruption from keyboard has woken up the system, despite the fact that until I detached/ reattached the usb-c display it wouldn’t display anything.
Upd:

sudo rtcwake -l -t $(date +%s -d ' + 10 seconds')
rtcwake: wakeup from "suspend" using /dev/rtc0 at Thu Aug 20 10:05:01 2020
rtcwake: write error

rtcwake -l -t $(date +%s -d 'tomorrow 02:00')
rtcwake: wakeup from "suspend" using /dev/rtc0 at Fri Aug 21 06:00:00 2020
rtcwake: write error
root@

tried on AGX
UPD: after few trials despite the write error system seem to resume including display output.
The question wheither NX has rtc battery at the default carrier board remains. It seems doesn’t have a battery by defalt so that AGX devkit is more handy for RTC wakeup experiments as it has the battery.
ref: RTC battery