Rtc wakeup alaram is not working in TX2 SDK 32.4.3

i am setting the rtc wakeup alaram value through sys interface to 120second and then i am running shutdown command from terminal but after lapes of 120 second device is not wakeup from shutdown.

what could be the issue?

Have a check the command from below comand.

this output i am getting

root@localhost:/home/ubuntu# sudo rtcwake -t $(date +%s -d ’ + 10 seconds’) -m mem -v rtcwake
rtcwake: assuming RTC uses UTC …
Using UTC time.
delta = 663231554
tzone = 0
tzname = UTC
systime = 1609931090, (UTC) Wed Jan 6 11:04:50 2021
rtctime = 946699536, (UTC) Sat Jan 1 04:05:36 2000
alarm 1609931100, sys_time 1609931090, rtc_time 946699536, seconds 0
rtcwake: wakeup from “mem” using /dev/rtc0 at Sat Jan 1 04:05:46 2000
suspend mode: mem; suspending system
[ 132.197255] tegra_cec 3960000.tegra_cec: suspended
[ 133.293644] CPU1: shutdown
[ 133.317593] CPU2: shutdown
[ 133.350480] CPU3: shutdown
[ 133.374447] CPU4: shutdown
[ 133.410417] CPU5: shutdown
[ 133.419271] cache: parent cpu1 should not be sleeping
[ 133.431767] cache: parent cpu2 should not be sleeping
[ 133.440543] cache: parent cpu3 should not be sleeping
[ 133.446253] cache: parent cpu4 should not be sleeping
[ 133.451910] cache: parent cpu5 should not be sleeping
[ 133.545180] tegra_cec 3960000.tegra_cec: Resuming
[ 133.549918] tegra_cec 3960000.tegra_cec: tegra_cec_init started
root@localhost:/home/ubuntu# [ 134.578238] tegra_cec 3960000.tegra_cec: tegra_cec_init Done.

i am not able to understand what is happening

Looks like after enter the command the system shutdown and resumed after 10 seconds.

so you are saying it is working…

I am writing a application to set alarm so i should use /dev/rtc0 right or /dev/rtc1



if i will write in walealaram it should wakeup automatically after that time,right?

Yes, but from the relative topic should only support suspend to memory. (-m mem)