RechercheTech / mss

Main MSS feature tracking repo. Also the place for default MSS issues fallinng under no other repo.
1 stars 3 forks source link

WOL on MSS #73

Closed intelliant01 closed 5 years ago

intelliant01 commented 5 years ago

Figure out how to enable WOL on MSS.

intelliant01 commented 5 years ago

In BIOS, ensure in Secondary Power Settings -

Wake on LAN from S4/S5 = Power On - Normal Boot

cat /lib/systemd/system/wol@.service

[Unit]
Description=Wake-on-LAN for %i
Requires=network.target
After=network.target

[Service]
RemainAfterExit=true
ExecStart=/sbin/ethtool -s %i wol g
ExecStop=/sbin/ethtool -s %i wol g
Type=oneshot

[Install]
WantedBy=multi-user.target
systemctl enable wol@.service

Add NETDOWN=no in /etc/default/halt and WOL_DISABLE=N in /etc/default/tlp

Ref: https://askubuntu.com/questions/764158/how-to-enable-wake-on-lan-wol-in-ubuntu-16-04 https://www.intel.com/content/www/us/en/support/articles/000027615/mini-pcs.html