LastPass

The Last password you'll have t remember!

2012-08-14

MAC OS WOL How do I do it?


Here's what's going on:  Apple changed the kernel's response to magic packets (the Ethernet WoL packet) so that, by default, the machine no longer wakes up fully when it recieves one; it stays in low-power wake.  Instead, they want you to buy an AirPort or use another computer (a Bonjour Sleep Proxy) to watch the network for traffic trying to reach certain services on your sleeping machine, and to give it a kick (a WoL packet) when it sees such traffic.  This kernel feature is called Dark Wake.

But that's annoying.  Many things don't use mDNS, and many people aren't using Apple router products.  I use SVN to sync things between my computers, so when my Mac Pro is asleep, I want to be able to wake it up from wherever I am and from whatever device/platform I'm using.  So, I told the kernel not to use Dark Wake.

The kernel is the very first program that the boot loader (which is the first screen you see when you power on your computer -- probably grey and with an Apple logo) calls.  The boot loader can pass arguments to it, much like other programs you might run from the command line.

Here's the procedure I used (please don't do this unless you're comfortable using vi to edit system files):

  1. Opened a Terminal window.
  2. Changed to /Library/Preferences/SystemConfiguration by typing the following: cd /Library/Preferences/SystemConfiguration
  3. Edited com.apple.Boot.plist using vi under sudo (because the file is owned by root):
    1. sudo vi com.apple.Boot.plist
    2. Moved the insertion point down to the  associated with the Kernel Flags
    3. Hit the "i" key to begin inserting text
    4. Typed darkwake=0
    5. Hit the "esc" key to exit insertion mode
    6. Typed ":wq" to save the file and exit
  4. Rebooted the system.


WOL How do I do it?


Inga kommentarer: