Skip to content

How To

Wake and sleep the PC from Android

WolOn sends a magic packet so the tower comes out of sleep. ConnectBot SSHs in and runs SleepPC to put it back. Both apps are free. BIOS and Windows have to allow both.

25 min first timeBIOS + Android8 steps
  1. 01

    Use Ethernet, then fix BIOS

    Wake-on-LAN is reliable on the PC’s Ethernet port, not Wi-Fi. Plug the tower into the router with a cable. In BIOS/UEFI, turn Wake-on-LAN on and ErP off. Motherboard menus use different labels: enable Wake on LAN, Resume by LAN, Power On By PCI-E, Resume by PCI-E Device, or PME Event Wake Up. Disable ErP Ready, EuP 2013, or Deep Sleep — those cut standby power to the network card, so the magic packet never arrives.

    Tip. If you only change one BIOS line and WoL still fails, it is almost always ErP still enabled.

  2. 02

    Let Windows wake on a magic packet

    In Device Manager, open the Ethernet adapter. Power Management: allow this device to wake the computer, and only allow a magic packet. Advanced: Wake on Magic Packet and Enable PME, if those rows exist. Then turn Fast Startup off, or Windows hybrid-shutdowns and the NIC never stays armed.

    Control PanelPower OptionsChoose what the power buttons doTurn on fast startup — off

    Tip. Use the Ethernet MAC later, not the Wi-Fi MAC. They are different addresses.

  3. 03

    Copy the MAC, IP, and subnet

    On the PC, run ipconfig /all. Find the Ethernet adapter — not Wi-Fi. Physical Address is the MAC. IPv4 Address is the IP. Subnet Mask is usually 255.255.255.0. You will paste those three into the wake app in the next step.

    ipconfig /all
  4. 04

    Add the PC in WolOn

    Install WolOn from the Play Store — the free app is enough. Add a device, paste the Ethernet MAC, the PC’s IP, and port 9. Stay on the same Wi-Fi as the PC. Tap the device to wake it, or pin the free WolOn widget to the home screen. Skip WolOn’s SSH features; those are Pro. Sleep is ConnectBot in a later step.

    Tip. One free Play Store app that does wake and sleep well does not exist. WolOn wakes for free. ConnectBot sleeps for free.

  5. 05

    Wake it

    Put the PC to sleep, then tap the device in WolOn. The app sends a magic packet to that MAC. The NIC hears it and the tower comes back. Android has no Siri Shortcuts — the WolOn widget is the one-tap version.

    Tip. No blink, no boot: Ethernet cable, ErP off, Fast Startup off, and the Ethernet MAC — in that order.

  6. 06

    Make a SleepPC task on Windows

    Wake-on-LAN only turns the PC on. Sleep is a separate door. In Task Scheduler, create a task named exactly SleepPC. Action: start a program. Program rundll32.exe, arguments powrprof.dll,SetSuspendState 0,1,0. Allow the task to run whether you are logged on. If that hibernates instead of sleeps, turn hibernation off first with powercfg -h off, then try again.

    rundll32.exe powrprof.dll,SetSuspendState 0,1,0

    Tip. ConnectBot calls this task by name. If the name is not SleepPC, the phone will run nothing.

  7. 07

    Turn on OpenSSH Server

    Android does not put Windows to sleep by itself. ConnectBot logs in over SSH and starts that task. In Windows, add the OpenSSH Server optional feature, set the OpenSSH SSH Server service to Automatic, and start it. Port 22. The username is your Windows account — the one you type on the login screen, not an email.

  8. 08

    Sleep the PC with ConnectBot

    Install ConnectBot from the Play Store — free, no ads, no account. New host: your Windows user at the PC’s IP, port 22, password. Nickname it PC Sleep. Long-press the host, Edit host, then Post-login automation. Paste the two lines below and finish with a blank line so Enter is sent. Tap that host whenever you want sleep. A home-screen shortcut to the host is the closest thing Android has to Siri Shortcuts.

    schtasks /run /tn "SleepPC"
    exit

    Tip. Wake with WolOn. Sleep with ConnectBot. Two free apps, one couch.

Apps, cables, and other products in this guide are examples from personal experience — not ads. warmUP is not affiliated with, endorsed by, or paid by the makers of anything shown.