This tutorial is no longer up to date due to changes in the Raspbpian image. Please follow the updated tutorial here:
WOL is present nearly on all Ethernet ports nowadays. This isn't the truth for the WIFI cards, not as common and more on the expensive side.
Using Raspberry PI, wireless adapter and Ethernet cable you can create the WOL server and wake your pc up over the network regardless of how it is hooked up to the network.
- Raspberry PI
- Ethernet cable
- Wi-Fi adapter for R PI
It is a simple project and requires only a basic knowledge to follow.
Step 1: Connect Everything.
Your Raspberry should be connected via Ethernet to the PC you want to wake up, Wifi adapter should be connected to R PI as well and linked to your WIFI.
You will be asked to modify few files on the Raspberry to make this work, and set up the local connection with your pc.
Lets start with a Raspberry:
Install wakeonlan sudo apt-get install wakeonlan
Navigate to /etc/network/interfaces sudo nano /etc/network/interfaces
Add the configuration from interfaces.txt changing your WIFI information. This will assure that the RPI is using WIFI adapter for network address and Ethernet for LAN connectivity with your PC
Reboot your RPI
Step 2: On Your PC
On your PC go to networks.
You will need enable WOL, save your PC's Mac address, and configure your IPv4 settings.
Enable your WOL in power management settings on Windows, then go to the network card configuration and enable WOL support. If you are unable to see WOL settings you may want to go to BIOS to enable it.
Set your IPv4 to:
- IP: 10.0.0.2
- Subnet mask: 255.255.255.0
- Default gateway: 10.0.0.1
When this is all done, reboot your PC and RPI.
Step 3: Wake Up!
To wake up your PC from sleep - you will need to send an SSH command to your RPI (you can do this in multiple ways - check my you youtube channel for issuing commands like this from mobile)
To wake up your PC use the following SSH command (replace underlined bit with your mac address):
wakeonlan -i 10.0.0.2 aa:bb:cc:dd:ee:ff:gg:hh
And there you go! You have additional superpowers over your pc!