You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In rare circumstances Wake-On-Lan is not active on the machine.
73
+
74
+
Check the following:
75
+
- Check the BIOS if Wake-On-Lan is enabled.
76
+
+ If no option is present it might not be configurable through the BIOS
77
+
- Check `$ sudo ethtool <YOUR_INTERFACE>`
78
+
+ Output should list: `Wake-on: g`
79
+
80
+
If the value is `d` it is disabled. You can activate it temporarily until the next suspend / reboot with: `$ sudo ethtool -s <YOUR_INTERFACE> wol g`
81
+
82
+
Persist it with a *systemd* service: `$ sudo nano /etc/systemd/system/wol.service`
83
+
84
+
```systemd
85
+
[Unit]
86
+
Description=Enable Wake-on-LAN on YOUR_INTERFACE
87
+
After=network-online.target
88
+
Wants=network-online.target
89
+
90
+
[Service]
91
+
Type=oneshot
92
+
ExecStart=/sbin/ethtool -s <YOUR_INTERFACE> wol g
93
+
RemainAfterExit=yes
94
+
95
+
[Install]
96
+
WantedBy=multi-user.target
97
+
```
98
+
99
+
### Activating suspend to ram
100
+
101
+
Instead of powering the system off you can also bring it to a suspend mode.
102
+
103
+
To really save power your system should support *Suspend to RAM*.
104
+
105
+
Check `$ cat /sys/power/state`. It should list `mem` as part of the output.
106
+
107
+
This means the OS supports bringing the system to *Suspend to RAM*.
108
+
109
+
Now check `$ cat /sys/power/mem_sleep`. A sample output looks like this:
110
+
```log
111
+
s2idle [deep]
112
+
```
113
+
114
+
If *deep* is in brackets all is good. If *s2idle* is in brackets you have the wrong setting.
115
+
To change the setting you can set a kernel boot parameter:
116
+
117
+
Add `mem_sleep_default=deep` to GRUB: `GRUB_CMDLINE_LINUX_DEFAULT="... mem_sleep_default=deep"`
118
+
Then `$ sudo update-grub` and reboot.
119
+
120
+
If your output is only *[s2idle]* then your network card driver or some other component does not support *Suspend to Ram* or is prohibiting it's activation.
121
+
For instance disabling CPU power saving modes can block this setting.
0 commit comments