Maybe your Wireless network card. supports Wake on WIFI ( WoWLAN
).
You can check Wake on WLAN capabilities running (assuming you have only single a WiFi device)
$ iw list
If it has support, it will look like this:
WoWLAN support:
* wake up on disconnect
* wake up on magic packet
* wake up on pattern match, up to 20 patterns of 16-128 bytes,
maximum packet offset 0 bytes
* can do GTK rekeying
* wake up on GTK rekey failure
* wake up on EAP identity request
* wake up on rfkill release
You can activate it by:
sudo iw phy0 wowlan enable any
Then proceed to test it, by sending a magic-packet like you would in Wake on LAN from another device that is turned on and can send magic packets. (E.G. your router, another computer, …)
It might work it might not, your BIOS/UEFI firmware might not allow this.
You might even have a trouble with suspend / hibernate.