Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
odroid-h2:application_note:wake_on_lan [2018/12/04 18:18]
joshua [Update Your System]
odroid-h2:application_note:wake_on_lan [2020/06/12 11:00] (current)
joshua [Download The Latest Realtek RTL8111G LAN Driver]
Line 2: Line 2:
 <WRAP important round> <WRAP important round>
   * Operation confirmed with    * Operation confirmed with 
-    * **Ubuntu 18.10 with 4.15 kernel**.+    * **Ubuntu 18.10 with 4.18 kernel**.
     * **Manjaro 18.0 with 4.19 kernel**.     * **Manjaro 18.0 with 4.19 kernel**.
-    * **Windows 10 RS5 (version 1809)**. +    * **Ubuntu 20.04 with 5.4 kernel**. 
-  * Confirmed version of Realtek LAN Driver is **8.046.00**.+  * Confirmed version of Realtek LAN Driver is 
 +    ​H2: **r8168 ​8.046.00** 
 +    * H2 Plus: **r8125 9.003.05**
 </​WRAP>​ </​WRAP>​
  
Line 11: Line 13:
  
 This guide helps you to set WOL on your system.\\ ​ This guide helps you to set WOL on your system.\\ ​
-===== Linux ===== + 
-==== Update Your System ====+===== Update Your System ​=====
 It is recommended to update your system before following the guides.\\ ​ It is recommended to update your system before following the guides.\\ ​
  
 ----- -----
  
-=== Ubuntu or Debian Based Linux DISTRO ===+==== Ubuntu or Debian Based Linux DISTRO ​====
 <code bash target> <code bash target>
 # Upgrade system packages # Upgrade system packages
Line 28: Line 30:
 ----- -----
  
-=== Manjaro or Arch Linux Based Linux DISTRO ===+==== Manjaro or Arch Linux Based Linux DISTRO ​====
 <code bash target> <code bash target>
 # Upgrade system packages # Upgrade system packages
Line 55: Line 57:
 </​code>​ </​code>​
  
-==== Download The Latest Realtek RTL8111G LAN Driver ====+===== Download The Latest Realtek RTL8111G LAN Driver ====
 + 
 +<WRAP info round> 
 +  * In **H2**, the kernel 5.0 or up has the fix for the WOL working. So you can ignore this chapter if you're using kernel 5.0 or up. 
 +  * In **H2 Plus**, you can ignore this procedure because you should install the dedicated driver in advance to use the Internet. But later, someday when the integrated r8125 driver is working with H2 Plus, you may have to install the Realtek driver then. 
 +</​WRAP>​ 
 [[https://​www.realtek.com/​en/​component/​zoo/​category/​network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software | Download the latest Realtek LAN driver]].\\ ​ [[https://​www.realtek.com/​en/​component/​zoo/​category/​network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software | Download the latest Realtek LAN driver]].\\ ​
 Download **LINUX driver for kernel up to 4.15**. It isn't downloaded directly on that page, you should enter your email address to get a temporary download page.\\ ​ Download **LINUX driver for kernel up to 4.15**. It isn't downloaded directly on that page, you should enter your email address to get a temporary download page.\\ ​
 +The driver described as "for kernel up to 4.15", but this works on 4.18 or 4.19. Maybe works on the future kernels as well.\\ ​
  
 Then extract that.\\ ​ Then extract that.\\ ​
-==== Build And Install The Driver ====+===== Build And Install The Driver ​=====
 Open a Terminal and go to the extracted directory.\\ ​ Open a Terminal and go to the extracted directory.\\ ​
 Then enter the commands below.\\ ​ Then enter the commands below.\\ ​
Line 71: Line 80:
 ----- -----
  
-=== Manjaro or Arch Linux Based Linux DISTRO === +==== Manjaro or Arch Linux Based Linux DISTRO ​==== 
-You should uninstall currently exist old module to apply the new r8168 driver.\\ ​+If you use Arch Linux based system, you should uninstall currently exist old module to apply the new r8168 driver.\\ ​
 <code bash target> <code bash target>
 # Remove exist old r8168 module # Remove exist old r8168 module
Line 84: Line 93:
 $ reboot $ reboot
 </​code>​ </​code>​
-==== Set To WOL Enabled ====+===== Set To WOL Enabled ​=====
 Enable WOL on both network interface.\\ ​ Enable WOL on both network interface.\\ ​
  
Line 116: Line 125:
 </​code>​ </​code>​
 Check that **g** character exists which means it wakes up by the **magic packet**.\\ ​ Check that **g** character exists which means it wakes up by the **magic packet**.\\ ​
-==== Opt. Make It Persistent ====+ 
 +===== Opt. Make It Persistent ​=====
 Create the file **/​etc/​systemd/​system/​wol@.service** as root with the following content.\\ ​ Create the file **/​etc/​systemd/​system/​wol@.service** as root with the following content.\\ ​
 <code bash target> <code bash target>
Line 128: Line 138:
  
 [Service] [Service]
-ExecStart=/usr/​bin/​ethtool -s %i wol g+ExecStart=/​bin/​sh -c "ethtool -s %i wol g"
 Type=oneshot Type=oneshot
  
Line 146: Line 156:
 $ sudo systemctl start wol@enp3s0 $ sudo systemctl start wol@enp3s0
 </​code>​ </​code>​
-===== Windows 10 ===== 
  
 ===== References ===== ===== References =====
-[1] https://​en.wikipedia.org/​wiki/​Advanced_Configuration_and_Power_Interface ​\\  +  * https://​en.wikipedia.org/​wiki/​Advanced_Configuration_and_Power_Interface 
-[2] https://​help.ubuntu.com/​community/​WakeOnLan ​\\  +  ​* ​https://​help.ubuntu.com/​community/​WakeOnLan 
-[3] https://​wiki.archlinux.org/​index.php/​Wake-on-LAN ​\\ +  ​* ​https://​wiki.archlinux.org/​index.php/​Wake-on-LAN 
-[4] https://​wiki.archlinux.org/​index.php/​TLP ​\\ +  ​* ​https://​wiki.archlinux.org/​index.php/​TLP