Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| wake_on_lan [2022/01/14 06:12] – Change 1: USB-LAN Adapters removed as there will be too many challenges (e.g. WoL capability and "Always Power On USB"). Change 2: WoL is a Layer 2 protocol. As WoL packages are not going to be routed across subnets anyway they never pass the router. The grandmabetty | wake_on_lan [2022/09/28 08:52] (current) – [Machine will not wake up] clarification on what batocera does automatically atari | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Wake on LAN (WoL) ====== | ====== Wake on LAN (WoL) ====== | ||
| - | The [[wp> | + | The [[wp> |
| ===== Requirements ===== | ===== Requirements ===== | ||
| Line 8: | Line 8: | ||
| * **BIOS**: The system' | * **BIOS**: The system' | ||
| * **NIC**: The system' | * **NIC**: The system' | ||
| + | |||
| + | WoL is designed for use with wired Ethernet connections, | ||
| <WRAP center round tip> | <WRAP center round tip> | ||
| Line 13: | Line 15: | ||
| </ | </ | ||
| - | After checking for the above, boot Batocera and [[: | + | ===== Setting up the BIOS ===== |
| - | <WRAP center round todo> | + | This section can not be specific to your motherboard' |
| - | Typical example output here. | + | |
| - | </ | + | |
| - | ^ Property | + | * **Wake-on |
| - | | '' | + | * **Wake-on |
| - | | '' | + | * **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. | ||
| - | The value '' | + | When done, save and reboot to apply. |
| - | Here is a full list of output possibilities (more info at https:// | + | <WRAP center round info> |
| - | * '' | + | You may be wondering if you also need to enable |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | + | ||
| - | The most important value is '' | + | |
| - | + | ||
| - | ==== Output example of disabled WoL NIC ==== | + | |
| - | + | ||
| - | It may be that WoL is disabled on your NIC which would result in the following output when executing the command above: | + | |
| - | + | ||
| - | < | + | |
| - | Supports | + | |
| - | Wake-on: | + | |
| - | </ | + | |
| - | + | ||
| - | This means the machine' | + | |
| - | + | ||
| - | ===== Enabling WoL via udev ===== | + | |
| - | + | ||
| - | First, if it doesn' | + | |
| - | + | ||
| - | <file - 99-wol.rules> | + | |
| - | ACTION!=" | + | |
| - | SUBSYSTEM!=" | + | |
| - | ENV{INTERFACE}!=" | + | |
| - | + | ||
| - | TEST=="/ | + | |
| - | + | ||
| - | ACTION==" | + | |
| - | + | ||
| - | LABEL=" | + | |
| - | + | ||
| - | </ | + | |
| - | + | ||
| - | <WRAP center round tip> | + | |
| - | The code below will enable WoL for all of your system' | + | |
| </ | </ | ||
| - | |||
| - | Reboot the machine. | ||
| ===== Wake up your Batocera device remotely ===== | ===== Wake up your Batocera device remotely ===== | ||
| <WRAP center round important> | <WRAP center round important> | ||
| - | Note: It is important to have your WoL client and your Batocera system within the same [[https:// | + | Note: It is important to have your WoL client and your Batocera system within the same [[https:// |
| + | |||
| + | It is possible to set up a dynamic DNS and port forwardings on your router to send WoL from other subnets | ||
| </ | </ | ||
| Line 93: | Line 55: | ||
| * **Internet Address** => The IP of the NIC on the Batocera machine (if only one NIC is present on the WoL client, you can leave this empty). | * **Internet Address** => The IP of the NIC on the Batocera machine (if only one NIC is present on the WoL client, you can leave this empty). | ||
| * **Subnet Mask** => [[wp> | * **Subnet Mask** => [[wp> | ||
| - | * **Send options** => FIXME (what is this for? Why would I want to change it?) Choose '' | + | * **Send options** => Choose '' |
| * **Remote Port Number** => The port to send the traffic on. Acceptable values are generally 9 (default) or 7. | * **Remote Port Number** => The port to send the traffic on. Acceptable values are generally 9 (default) or 7. | ||
| Line 104: | Line 66: | ||
| * 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 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. | * 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's WoL capability are: | ||
| + | ^ 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... ==== | ==== It works great the first time! But not any time after... ==== | ||
| Line 109: | Line 125: | ||
| If dual booting, the cause is most likely the second operating system turning WoL back off. On Windows, [[: | 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.1642140756.txt.gz
- Last modified: 4 years ago
- by grandmabetty