HOW-TO:Set up Wake-on-LAN for Ubuntu: Difference between revisions
>MacUsers (Created page with '{{XBMC wiki toc Inline}} __NOEDITSECTION__ __NOTOC__ =Before you start= First off, the motherboard should support the WOL (Wake On LAN) and it should be enabled in the BIOS. Diff…') |
>MacUsers No edit summary |
||
Line 7: | Line 7: | ||
=Enable WOL in the OS= | =Enable WOL in the OS= | ||
Even though WOL works in network layer 2, OS support is still one of the important things to make it work. Even if you see the light on the Ethernet port is on after the halt/shutdown, the OS shuts off the Ethernet internally. One must tell Ethernet controller to WOL when boots up and tell "halt" script not to bring down controller during shut-down. | Even though WOL works in network layer 2, OS support is still one of the important things to make it work. Even if you see the light on the Ethernet port is on after the halt/shutdown, the OS shuts off the Ethernet internally. One must tell Ethernet controller to WOL when boots up and tell "halt" script not to bring down controller during shut-down. | ||
===Install ethtool=== | |||
I found "ethtool" is one of the easiest to use to enable WOL; install it first if it's not there yet. | |||
<source lang="bash"> | |||
sudo apt-get ethtool | |||
</source> | |||
===Create an init.d script=== | |||
Next, create a file, say "WOLconfig" in the "/etc/init.d" to automatically start WOL at the boot time. | |||
Revision as of 18:50, 28 May 2010
Before you start
First off, the motherboard should support the WOL (Wake On LAN) and it should be enabled in the BIOS. Different BIOS/motherboard do it differently; on ASUS (P5N7A-VM), it's under Power > APM Configuration and in there "Resume On PCIE Wake" and "Resume On LAN(MAC)" should be enabled.
Enable WOL in the OS
Even though WOL works in network layer 2, OS support is still one of the important things to make it work. Even if you see the light on the Ethernet port is on after the halt/shutdown, the OS shuts off the Ethernet internally. One must tell Ethernet controller to WOL when boots up and tell "halt" script not to bring down controller during shut-down.
Install ethtool
I found "ethtool" is one of the easiest to use to enable WOL; install it first if it's not there yet.
sudo apt-get ethtool
Create an init.d script
Next, create a file, say "WOLconfig" in the "/etc/init.d" to automatically start WOL at the boot time.