You can skip to the next step if you don't need to wake up your PC from outside of your local network. You could save it also as a bash file (save it as wol.sh): #!/bin/bashsudo etherwake-i eth0 AA:BB:CC:DD:EE:FFĪnd open the file with sudo bash /path/to/file/wol.sh You will have to issue this command via SSH (or type in terminal) each time you want to wake up the PC. This method requires sudo, but allows you to specify the interface, which is what we need. The command to wake your PC up is: sudo etherwake -i eth0 AA:BB:CC:DD:EE:FF (click on the details of that connection to reveal the IP and MAC listed as AA:BB:CC:DD:EE:FF in the example ). Once this is installed, you have to go to the PC and note the MAC address of the LAN adapter the RPI is connected to. The best way to do this is to use the etherwake: sudo apt-get install etherwake This is important because we have to force the Magic Packet to go through the eth0 instead of WIFI. If you configured the RPI in the same way as in the Guide 2 (see step 2) your microcomputer will have a link via LAN with the computer but will use the WIFI to connect to the internet. Feel free to connect via Facebook, Twitter or Google+ Love the sound of this setup? Follow the for more. a PC which has a LAN port with Wake On Lan support (most of them).a Raspberry Pi with the ethernet port and WIFI connectivity. When the Magic Packet is received by the PC via LAN cable, it wakes up. The RPI is constantly awake and is able to receive a request to wake the PC through the LAN interface. If your PC is connected to the internet via WIFI, and the card does not support Wake on LAN, you have no other options of waking up the PC remotely. Running a LAN cable may not always be a feasible solution. You can wake up the PC within seconds when needed, saving a lot of power in the process. This means you no longer have to keep your PC on, to access the files remotely. It can be done on the local network as well as from the internet. You can wake up any PC linked to the Raspberry Pi remotely. The Raspbian image has changed, and the old version is no longer valid. You can of course also use a graphical tool or an app to send a WOL magic packet.First of all, this is an updated revision of my previous tutorial. Link/ether 70:85:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff Send a Wake on LAN magic packetĪny other computer (or even mobile phone) in the same network can now send such a magic packet to wake up and start up the computer.įrom another Linux machine you can use the wakeonlan command by using the MAC address noted down ~ $ sudo apt-get install ~ $ wakeonlan 70:85:xx:xx:xx:xx Now run the command ip a and note down the physical (MAC) address of the ~ $ ip a | grep ether Verify that the setting was ~ $ sudo ethtool enp3s0 | grep Wake To enable Wake-on on this card, set the option to "g" (Wake on ~ $ sudo ethtool -s enp3s0 wol g However right now the current setting (Wake-on) is set to d (disabled). This shows what kind of Wake-on options this card supports: "pumbg". To see the Wake on LAN specific settings, ~ $ sudo ethtool enp3s0 | grep Wake Link partner advertised FEC modes: Not reported Link partner advertised auto-negotiation: Yes Link partner advertised pause frame use: Symmetric Link partner advertised link modes: 10baseT/Half 10baseT/Full Supported pause frame use: Symmetric Receive-onlyĪdvertised link modes: 10baseT/Half 10baseT/FullĪdvertised pause frame use: Symmetric Receive-only Supported link modes: 10baseT/Half 10baseT/Full The full output of ethtool run against the network interface (here enp3s0) shows the card's ~ $ sudo ethtool enp3s0 In Linux this can be achieved with the ethtool command. The network card also needs to be told that it should listen to magic packets. Enable Wake on LAN in Linuxīut that's not enough (yet) to accept Wake on LAN magic packets. Once you've set "PCIE Devices Power On" to enabled, save the settings and exit UEFI.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |