Wake on LAN
Included with Macro DeckTurn on a PC, NAS or other device on your network from a Macro Deck button.
The Add a device dialog with the MAC address, broadcast address, port and packet settings
- Save any number of devices by name
- One action, Wake device, for buttons, scripts and automations
- Directed broadcast for devices in another subnet
- Several packets with a delay for devices that are hard to wake
- No account or online service, the packet stays on your network
Wake on LAN turns on a device that is switched off or asleep by sending it a small network packet, the magic packet. The Wake on LAN integration saves the devices you want to wake and gives you one action, Wake device, for a button, script or automation. It works on Windows, macOS and Linux and needs no account or online service.
What you save for each device
Each device is one configuration with a name, the MAC address of its network adapter and the address the packet is sent to. By default that is 255.255.255.255 on port 9, which reaches every device on the network the Macro Deck computer is in. For a device in another subnet, enter that subnet's broadcast address, for example 192.168.2.255. You can also send up to 10 packets with a delay between them, for devices that miss a single packet in deep sleep.
Some example setups:
- A Gaming PC button that turns on the computer in the next room before you walk over.
- A button that wakes your NAS before you start a media player.
- An automation or script that wakes a server when you start your stream.
What Wake on LAN cannot tell you
The device does not answer a magic packet, so Macro Deck reports success as soon as the packets were sent. Whether the device actually woke up has to be checked separately. If the packet could not be sent at all, the action says why, for example that there is no route to the address.
What you need
- Macro Deck 3 on Windows, macOS or Linux
- A device with Wake on LAN turned on in its firmware and network adapter settings, connected by cable
- The MAC address of the device's network adapter
- The device in the same network as the Macro Deck computer, or a router that forwards directed broadcasts
Set it up
Step 1: Prepare the device
Turn on Wake on LAN in the device's firmware (BIOS or UEFI) and, on a computer, allow its network adapter to wake it. On Windows this is in the adapter's properties in Device Manager. A NAS usually has its own Wake on LAN setting. Note the MAC address of the wired network adapter, for example from your router's device list.
Step 2: Open Wake on LAN in Macro Deck
In Macro Deck, click Integrations in the sidebar and click Wake on LAN. On the Overview tab, click Add configuration. Turning on the switch at the top right opens the same dialog.
Step 3: Save the device
Fill in the dialog Add a device:
- Configuration name: shown when you pick the device in the action, for example Gaming PC.
- MAC address: the device's MAC address, for example
AA:BB:CC:DD:EE:FF. Dashes and other common formats work too. - Broadcast address and Port: keep
255.255.255.255and9unless the device is in another subnet or listens on another port. - Packets and Delay between packets (ms): send more than one packet to a device that does not always wake up.
Click Continue. Add one configuration for each further device.
Step 4: Add the action to a button
On the Deck page, click the button you want to use. The deck must be unlocked: when the button at the top right reads Lock, it is unlocked. The editor opens with Short Press selected. Click + Add action, select Wake on LAN on the left of the Add action dialog and pick Wake device. Choose the saved device under Device.
Step 5: Press the button
Press the button on your phone, tablet or in the web client. Macro Deck sends the magic packet and the device starts up. If it does not, check its Wake on LAN settings, the MAC address and the broadcast address.
Actions1
Put these on a button or run them from a flow.
- Wake device
- Sends a Wake on LAN magic packet to a saved device. A sent packet does not confirm that the device woke up.
Frequently asked questions
Why does my device not wake up?
Most often Wake on LAN is not allowed in the device's firmware or for its network adapter, or the device is connected by Wi-Fi, which usually cannot be woken. Check that the MAC address belongs to the wired adapter. After a power cut, many computers only wake up again once they were turned on by hand.
Can I wake a device in another subnet?
Yes, if your router forwards directed broadcasts, which most home routers do not do. Enter that subnet's broadcast address, for example 192.168.2.255, as the Broadcast address.
Macro Deck runs on a computer with a VPN or several network adapters. What should I enter?
255.255.255.255 goes out through one network only, which may be the wrong one. Enter the broadcast address of the device's subnet instead, for example 192.168.1.255 when the device has an address starting with 192.168.1..
Why does the action fail on macOS?
macOS can block Macro Deck from reaching devices on your local network. The action then reports that the packet was not allowed or that there is no route to the address. Allow Macro Deck under System Settings, Privacy & Security, Local Network.
Does the action tell me when the device is on?
No. A device does not answer a magic packet, so the action succeeds as soon as the packets were sent. Whether the device is online has to be checked separately.
More in Your computer
System
Included with Macro DeckControl your computer from your deck: apps, volume, commands, notifications, sleep and shutdown.
Keyboard
Included with Macro DeckPress shortcuts, type text and run key sequences on your computer from a button.
Mouse
Included with Macro DeckClick, move the pointer, drag and scroll on your computer from a button.
Clipboard
Included with Macro DeckCopy text, images and files from a button, read the clipboard into a variable and react when something new is copied.
AutoHotkey
Included with Macro DeckKeep your AutoHotkey v2 scripts in Macro Deck, run and stop them from a button and let them read and set variables.
ADB / Android Debug Bridge
Included with Macro DeckControl an Android phone or tablet over USB or Wi-Fi: wake it, start apps, tap, type and take screenshots.
Steam
Included with Macro DeckStart and close Steam games, and show what you play, your friends and your library on your deck.