For Ubuntu and Fedora based on GUI - both as remote clients - in a laptop (and even PC) is possible execute remotely through either SSH
or Remmina
the following command:
sleep 15 && systemctl suspend
The system can be restarted by opening the laptop’s lid or pressing any key. Of course it must be accomplished locally and is practically mandatory do the login again. Until here all ok.
Consider a special policy of the company/university/client to suspend the system but for a special case is not possible restart it locally.
I did do a research and I found the rtcwake
command but it works locally and is based on scheduled time. It is very useful but what about if is need it to restart the system in a specific time, prior of the scheduled time, while it is suspended and remotely?.
Is possible restart the suspended system remotely?. And how?