On Thu, Jul 27, 2023 at 04:15:46PM +0100, Salil Mehta wrote:
Typically I use RTC on systems as I need not physical access to the platform to test that. $echo +20 > /sys/class/rtc/rtc0/wakealarm $ echo mem > /sys/power/state
This might not work as after putting the VM into s2idle state VM kind of hangs and becomes unresponsive.
That's strange, I tried Sudeep's command on QEMU and Linux master and it does wake up the system after 20 seconds (with /sys/power/mem_sleep as "[s2idle]"). I was curious because last time I needed to test suspend, I had to update the DT to set the console interrupt as a wakeup source. This RTC method is a lot better.
Thanks, Jean