PS3 Wake-On-Lan HOWTO
2011.04.14

Copyright (c) 2008 Sony Computer Entertainment Inc.
Copyright 2008 Sony Corporation

Permission is granted to copy, distribute and/or modify this document under the
terms of the GNU Free Documentation License, Version 1.2 published by the Free
Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no
Back-Cover Texts. A copy of the license is included in the section entitled "GNU
Free Documentation License".

DISCLAIMER

THIS DOCUMENT IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS
OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE;
THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE
IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS,
COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE
OR IMPLEMENTATION OF THE CONTENTS THEREOF.

TRADEMARK NOTICE

"PLAYSTATION" and "PS3" are registered trademarks of Sony Computer Entertainment
Inc. "Cell Broadband Engine" is a trademark of
Sony Computer Entertainment Inc. Linux® is the registered trademark of Linus
Torvalds in the U.S. and other countries.
Other company, product and service names may be registered trademarks,
trademarks or service marks of others.

ABOUT THIS DOCUMENT

This note describes how to use the PS3 Other OS Wake-On-Lan feature introduced
in system firmware 2.20.

You can always find the latest version of this document, and some other useful
technical documents here:

  http://www.kernel.org/pub/linux/kernel/people/geoff/cell/

Please send comments to <geoff@infradead.org>.

PS3 WAKE-ON-LAN HOWTO

The PS3 Other OS Wake-On-Lan feature uses a standard network MagicPacket to
turn on the PS3.  The default Linux shutdown procedure does not enable this
feature, i.e. you have to re-enable Wake-On-Lan after each boot-up.

Other OS Wake-On-Lan support was added in PS3 firmware update 2.20, and Linux
kernel support was added in linux-2.6.26-rc2.

1) View the Wake-On-Lan status

  [@ps3]# ethtool eth0

  Settings for eth0:
        Supports Wake-on: g
        Wake-on: d

  Notes:
    g = Wake on MagicPacket(tm)
    d = Disable. This option clears all previous options.

2) Enable Wake-On-Lan

  [@ps3]# ethtool -s eth0 wol g
  [@ps3]# ethtool eth0

3) Determine PS3 MAC address

  Each PS3 has a unique Ethernet MAC address, and it must be used when sending
  the MagicPacket.  Use the value reported with the etherwake utility.

  [@ps3]# ifconfig eth0 | grep HWaddr

  eth0 Link encap:Ethernet  HWaddr aa:bb:cc:dd:ee:ff

4) Shutdown PS3

  Any method that does a proper Linux shutdown will put the stystem into
  stand-by mode and allow the system to wake up via a MagicPacket.  Any of
  these methods will work:

  [@ps3]# shutdown -h now
  [@ps3]# shutdown
  [@ps3]# poweroff
  - Press the power button

  Notes:
   - If system power is removed or the main power switch is turned off while in
     stand-by mode the Wake-On-Lan feature will be disabled.
   - When the Wake-On-Lan feature is enabled additional hardware devices will
     remain powered on when in stand-by mode.  The PS3 will consume more
     power than when the Wake-On-Lan feature is not enabled.

5) Wake up PS3

  From a remote host on the same subnet as the PS3:

  [@host]# etherwake -i ethX aa:bb:cc:dd:ee:ff

  Notes:
    - ethX is the host's network device on the same subnet as the PS3.  Replace
      ethX with the proper network device on your host system.
    - aa:bb:cc:dd:ee:ff is the Ethernet MAC address of the PS3.