Supports Wake On Pumbg

  • I'm looking to buy a motherboard, and I need one with wake on lan, but I'm not really sure where I should expect to see that a motherboard supports wake on lan. For example I'm looking at MSI Z97I AC, and I cant see that it says 'supports Wake On Lan' or something like that on the dedicated page, and not in the board's manual either.
  • The target computer's motherboard and Network Interface Controller have to support Wake-on-LAN. The target computer has to be physically connected (with a cable) to a router or to the source computer for WoL to work properly. Some wireless cards have support for Wake on Wireless (WoWLAN or WoW).

$ sudo ethtool enp2s0 grep Wake Supports Wake-on: pumbg Wake-on: g $ sudo ethtool -i enp2s0 grep bus bus-info: 0000:02:00.0 $ cat /proc/acpi/wakeup grep 0000:02:00.0 PXSX S4.enabled pci:0000:02:00.0 $ lspci grep Ethernet 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet. (255) Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: on MDI-X: Unknown Supports Wake-on: pumbg Wake-on: d Current message level: 0x00000001 (1) drv Link detected: no Settings for eth9: Supported ports: TP Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supports auto-negotiation.

Configuring Wake-on-LAN is a simple process on Alpine Linux. First, check if your network card supports Wake-on-LAN (WOL):

Supports Wake-on: pumbg means that WOL is supported, Wake-on: d means that it is currently disabled. To enable it, edit /etc/network/interfaces as follows:

Reboot, and you should now be able to wake your machine from LAN. You can check if it is really enabled like so:

Wake-on: g means that it is now enabled.

There are many tools that allow you to wake up the machine now that WOL is supported; https://github.com/sabhiram/go-wol is an excellent one.

Retrieved from 'http://wiki.alpinelinux.org/w/index.php?title=Configure_Wake-on-LAN&oldid=18049'
Supports Wake On Pumbg
Introduction

The typical steps to make your Ubuntu server wake on LAN are:

  • Find your network card interface name
  • Check your network card capabilities
  • Use ethtool to set “Wake-on” option to “g” value

And that’s all, then you put your server in suspend or hibernate mode and wake it up remotely. It works like a charm, but then you try a second time, you hibernate the server again and… it doesn’t wake remotely.

What happened, is that you didn’t repeat the third step to set again the “Wake-on” option to “g” value. The value you set for the network interface is volatile and you have to repeat the third step on each boot… unless you make it sticky.

Setup the network interface to work just once

1.- Find your network card interface name

In my case, the server has three interfaces:

1: lo (the local loopback)

Supports Wake On Pumbg

2: enp3s0: one 100Mbps ethernet card (not being used)

3: eno1: one 1Gbs ethernet card (this is the one I want to use to wake the system remotely, as it is the one configured to connect to my LAN). I will copy two values:

Interface name: eno1 (be aware of one (1) and lowercase L (l)). Usually interface name ends with a number, not a letter.

MAC address: e8:94:f6:08:5a:60

Now we know the interface name, we will check the Wake-on capabilities:

Wake

Take a look at the last lines. We are looking for two different lines:

Supports Wake-on: pumbg

and

Wake-on: d

The “Wake-on” mode configured by default is “d”, which means that the network card will not switch on the server when it receives a magic packet but, as the network interface supports “g” mode (it is one the letters in pumbg) we can set the value of “Wake-on” to “g”.

We will use ethtool for this. If it is not already installed on your system, do it:

Now, if you repeat the step to check your network card capabilities (ethtool eno1) you shoud see the “Wake-on” option set to “g” value.

That means your server is ready to sleep and wake remotely.

Put the server into hibernation mode:

Supports Wake On Pumbg

And now wake it remotely using one of the many available tools. Depending on the platform you will use an Android, Windows, Linux, … tool for this purpose and the only thing you will need is the MAC address you copied some steps above.

Supports Wake On Pumbg

If everything went right, your server has woken, but what if you repeat the previous steps? (hibernate – remotely wake) It doesn’t work.

As I mentioned in the introduction, the value you configure in the “Wake-on” option of your network card is volatile. Each time you reboot your server it resets its value (usually to “d”).

Make your configuration sticky

We will create a system service to set the “Wake-on” value to “g” each time the server boots or restart.

There are a lot of recipes for these, but most of them didn’t work in my case. I’ll tell you one configuration line that did the trick for me.

1.- Create the .service file using your favourite editor

Now, copy the next content inside the file (change the name of the interface card and set the description you prefer):

Save the file (^O + ENTER + ^X)

Now we will start the service for the first time

And check its status

You will notice the service is dead or inactive. This is normal because it is not actually a service and it is not running like a daemon, it starts, do whatever it has to do and finishes.

Centos Wake On Lan

If we restart the server now, our service entry will not run at startup because we haven’t enabled it. To do so:

Now, you can restart the server and it will wake remotely because “Wake-on: g” should be already set when it boots.

The explanation to “TRULY sticky”

But, why did I titled my post with a “TRULY sticky”?. Well, the reason is that all the recipes I’ve found to do this didn’t work. After rebooting, always the “d” value was set for the “Wake-on” option.

In fact it is not a problem of executing the configuration or not. Although the service entry run on every reboot, it was doing it before the network card was available to be configured.

So, the problem is when to run the network card configuration.

Supports Wake-on D

That’s the reason you should put this line in you .service file:

To make sure it configures the network card when it’s really available.

I hope it to work for you too.