Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wake_on_lan [2022/01/13 17:35] – grandmabetty | wake_on_lan [2026/06/24 12:55] (current) – Added more technical infomation for better understanding WoL in general. grandmabetty | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Wake on Lan (WoL) ====== | + | ====== Wake on LAN (WoL) ====== |
| - | ===== General information ===== | + | |
| - | Since Batocera V33 Beta there is a tool called | + | The [[wp>Wake_On_LAN|Wake-on-LAN (WoL)]] |
| ===== Requirements ===== | ===== Requirements ===== | ||
| - | On your Batocera system, the functionality of WoL is dependent on three things that must support WoL: | ||
| - | - **BIOS**: Your system' | ||
| - | - **NIC**: Your system' | ||
| - | - **OS**: You typically need a device driver and/or tool for the specific NIC to be able to enable the hardware' | ||
| - | After enabling | + | The functionality of WoL is dependent on three components supporting it: |
| - | < | + | * **BIOS**: The system' |
| - | <WRAP center round tip 60%> | + | * **NIC**: The system's network |
| - | Fortunately, | + | * **OS**: The OS needs to be capable to tell the according |
| - | </ | + | |
| - | Now look out for the following two output lines: \\ | + | WoL is designed |
| - | '' | + | |
| - | and \\ | + | |
| - | '' | + | |
| - | Example output: \\ | + | |
| - | '' | + | |
| - | '' | + | |
| - | The value '' | + | |
| - | Note that your NIC could also support multiple WoL functions and therefore you would get multiple output values, e.g. '' | + | |
| - | Here is a full list of output possibilities | + | |
| - | * p → Wake on PHY activity | + | |
| - | * u → Wake on unicast messages | + | |
| - | * m → Wake on multicast messages | + | |
| - | * b → Wake on broadcast messages | + | |
| - | * a → Wake on ARP | + | |
| - | * g → Wake on MagicPacket™ | + | |
| - | * s → Enable SecureOn™ password for MagicPacket™ | + | |
| - | * d → Disable (wake on nothing). This option clears all previous options. | + | |
| - | The most important value is the '' | + | |
| - | \\ | + | |
| - | \\ | + | |
| - | Now: If for example your output looks like this: \\ | + | |
| - | '' | + | |
| - | '' | + | |
| - | it means your system' | + | |
| - | {{: | + | |
| - | ===== Configuring WoL ===== | + | <WRAP center round tip> |
| - | To do so, create the following file... | + | If you are dual-booting |
| - | < | + | |
| - | ...and paste the following content (if you want deeper explanation about udev rules, visit [[udev_rules|this]] page): | + | |
| - | <WRAP center round tip 60%> | + | |
| - | Note: The code below will enable WoL for all of your system' | + | |
| </ | </ | ||
| - | < | + | ===== Setting up the BIOS ===== |
| - | ACTION!=" | + | |
| - | SUBSYSTEM!=" | + | |
| - | ENV{INTERFACE}!=" | + | |
| - | TEST=="/ | + | This section can not be specific to your motherboard's BIOS configuration, |
| - | ACTION==" | + | * **Wake-on LAN**: Any setting that's related to this should be **enabled**/activated/unblocked. |
| + | * **Wake-on PCI**: The same as above (**enabled**), | ||
| + | * **Network stack**: Set to **disabled**. Usually, this setting is in relation to whether or not the BIOS itself gains control of the network connection; if it does then WoL cannot function. | ||
| + | * **IP configuration**: | ||
| + | * **Power savings profile**: When mentioned in relation to the shutting down of devices when the machine is in S3/4, **disable** this. It may cause the NIC to shutdown after a period of inactivity. | ||
| - | LABEL=" | + | When done, save and reboot to apply. |
| - | </ | + | |
| - | Save the file and quit the editor (Sidenote: No need to make the file executable). Because of [[modify_the_system_while_it_s_running|Batocera.linux' | + | |
| - | < | + | |
| - | Now reboot | + | |
| - | ===== Wake up your Batocera device remotely ===== | + | <WRAP center round info> |
| - | <WRAP center round tip 60%> | + | You may be wondering if you also need to enable |
| - | Note: It is important | + | |
| </ | </ | ||
| - | To find out the unique MAC address of your Batocera | + | ===== Wake up your Batocera |
| - | < | + | |
| - | ...which will give you a similiar output as the following example screenshot: \\ | + | <WRAP center round important> |
| - | {{: | + | Note: It is important to have your WoL client and your Batocera system |
| - | As you can see on the screenshot above, the MAC address for the NIC '' | + | |
| - | Note: A MAC address | + | It is possible to set up a dynamic DNS and port forwardings |
| </ | </ | ||
| - | You can now use the given MAC address to wake your Batocera | + | |
| - | Example of a basic GUI based WoL client for Windows (which you can download | + | To find out the unique MAC address of your Batocera system' |
| + | |||
| + | {{: | ||
| + | |||
| + | The MAC address for this NIC ('' | ||
| + | |||
| + | You can now use the given MAC address to wake the Batocera | ||
| + | |||
| + | Example of a WoL client for Windows ([[https:// | ||
| {{: | {{: | ||
| - | | + | |
| - | * **Internet Address** | + | Most utilities require the following information (or similar enough to it): |
| - | * **Subnet Mask** | + | |
| - | * **Send options** | + | * **Internet Address** |
| - | * **Remote Port Number** | + | * **Subnet Mask** |
| - | Click on '' | + | * **Send options** |
| + | * **Remote Port Number** | ||
| + | |||
| + | Click on **Wake Up** to wake the Batocera | ||
| ===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
| - | If you have followed | + | |
| + | ==== Machine will not wake up ==== | ||
| + | |||
| + | * Try changing the port number from 9 to 7. If the machine uses an esoteric port this will usually be noted in its documentation. | ||
| + | * Try sending the packet via **Internet** instead of **Local Subnet** if you are using the GUI based WoL client mentioned above. | ||
| + | * Check if your system does even support WoL by [[: | ||
| + | < | ||
| + | Settings for eth0: | ||
| + | Supported ports: [ TP ] | ||
| + | Supported link modes: | ||
| + | 100baseT/ | ||
| + | 1000baseT/ | ||
| + | Supported pause frame use: No | ||
| + | Supports auto-negotiation: | ||
| + | Advertised link modes: | ||
| + | 100baseT/ | ||
| + | 1000baseT/ | ||
| + | Advertised pause frame use: No | ||
| + | Advertised auto-negotiation: | ||
| + | Speed: 1000Mb/s | ||
| + | Duplex: Full | ||
| + | Port: Twisted Pair | ||
| + | PHYAD: 1 | ||
| + | Transceiver: | ||
| + | Auto-negotiation: | ||
| + | MDI-X: on (auto) | ||
| + | Supports Wake-on: pumbg | ||
| + | Wake-on: g | ||
| + | Current message level: 0x00000007 (7) | ||
| + | drv probe link | ||
| + | Link detected: yes | ||
| + | </ | ||
| + | |||
| + | The important two parts for getting information about your NIC' | ||
| + | ^ Property | ||
| + | | '' | ||
| + | | '' | ||
| + | |||
| + | The value '' | ||
| + | |||
| + | Here is a full list of output possibilities (more info at https:// | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | * '' | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | The most important value is '' | ||
| + | |||
| + | Batocera should automatically turn on the MagicPacket(tm) feature when the connection is established. If that fails, in order to turn on WoL manually run the following: | ||
| + | |||
| + | < | ||
| + | ethtool -s eth0 wol g | ||
| + | </ | ||
| + | |||
| + | where '' | ||
| + | |||
| + | ==== It works great the first time! But not any time after... ==== | ||
| + | |||
| + | If dual booting, the cause is most likely the second operating system turning WoL back off. On Windows, [[: | ||
| + | |||
| + | ==== Machine will not wake up anymore ==== | ||
| + | |||
| + | If you were successfully using WoL but suddenly it does not work anymore, a power outage of your Batocera system could be the issue. Since WoL functionality relies on a " | ||
wake_on_lan.1642095354.txt.gz · Last modified: by grandmabetty