Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


Sidebar

products:sbc:common:configurations:wol

This is an old revision of the document!


WOL (Wake-On-Lan)

Introduction

This document mainly introduces WOL. You will learn how to enable WOL and wake up through WOL. The first part of the document describes the usage under Ubuntu, and the second part describes the usage under Android.

Wake-On-LAN (WOL) is a protocol standard that allows your PC/Smartphone to turn on a computer via your local network.

Ubuntu

Get Ethernet MAC Address

The Mac address is pasted onto the back of your SBC:

VIM2

wol-vim2

VIM3/3L

wol-vim3

VIM4

wol-vim4

Edge1

wol-edge

If the sticker has peeled-off, you can use following Terminal commands to get the MAC Address.

On Ubuntu, type ifconfig on terminal.

$ ifconfig
eth0      Link encap:Ethernet  HWaddr 98:aa:fc:60:46:de
          inet addr:192.168.1.142  Bcast:192.168.1.255  Mask:255.255.255.0 
          inet6 addr: fe80::9aaa:fcff:fe60:46de/64 Scope: Link

HWaddr 98:aa:fc:60:46:de corresponds to your Ethernet MAC address.

Enable WOL

Enable with U-Boot

By default Wake-On-LAN is disabled. So you’ll have to use the Khadas Bootloader Instructions (KBI)to enable it.

kvim2# kbi trigger wol w 1

If you want to check the WOL status, you can input:

kvim2# kbi trigger wol r
boot wol: enable

Enable with Ubuntu

You can enable WOL via the ApplicationsWake On LAN Setting.

vim2-ubuntu-wol1

Select WOL mode.

vim2-ubuntu-wol2

Testing WOL

After doing the steps above, you can test the WOL function.

  1. Connect with a LAN.
  2. Power off.
  3. Attempt to wake up, via a Ubuntu device on the same LAN.
    1. Install the wakeonlan tool.
      $ sudo apt-get install wakeonlan
    2. Wake up your VIM2 using it’s MAC Address.
      $ wakeonlan 98:aa:fc:60:46:de

Android

Wake-On-LAN (WOL) is a protocol standard that allows your PC/Smartphone to turn on a computer via your local network or the Internet.

Note: The operation of VIM2, VIM3 and Edge is almost the same, so this document will take VIM2 as an example.

VIM2, VIM3 and Edge are different from VIM1, as it supports the WOL-function.

Firstly, you have to connect VIM2 to your LAN, then get the Ethernet MAC address.

Get Ethernet MAC address

You can get it from Settings→More Settings→About→Status menu.

Enable WOL

You can enable WOL in the Setting→More Settings→WOL menu.

Test WOL

1) Connect VIM2 with LAN

2) Power off VIM2

3) Attempt to wake up your VIM2 on Android.

  • Download Wake-On-LAN Sender tool

  • Add a remote computer

  • Wake up VIM2 with this button

  • Note:On iPhone, you can search for wake on lan in the App Store.

See Also

Last modified: 2023/03/23 05:08 by xiong