I am triying to wake-on-line via SSH. I have done it once but after I suspend remote desktop via sudo systemctl suspend suspend, I can not do it again.
All steps I have done is from this link.
I think, my first problem is ethtool enp5s | grep wake-on returns Cannot get wake-on-lan settings: Operation not permitted. When I do it with sudo, it works:
Supports Wake-on: pumbg
Wake-on: u
The u means u (unicast activity), and I think this is what i need for wake-on via SSH. Here is the problem: When I run systemctl suspend with wake-on: u configuration, system suspend and for a second and reopen. What should I do?
------------ UBUNTU VERSION ------------
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu Focal Fossa"
------------------------
------------ MINT VERSION ------------
No LSB modules are available.
Distributor ID: Linuxmint
Description: Linux Mint 20
Release: 20
Codename: ulyana
EDIT1: Interestingly, sudo pm-suspend works perfectly to suspend my computer (not reopen), but when I try to wake-on via ssh it is not wake-on. The weird thing is, it converts my Wake-on parameter from u to g.