boltblog

Wake on Lan on an Intel Mac Mini with Linux

Posted on April 22, 2009

Both Wake on Lan and turning on after a power loss can be enabled on the Intel Mac Mini with the use of the setpci command. I stuffed this into my /etc/rc.local (to run them at boot time. yes, they need to be run on each boot)

# reboot on power loss
setpci -s 0:1f.0 0xa4.b=0

# wake on lan
setpci -d 8086:27b9 0xa4.b=0
ethtool -s eth1 wol g

Don't ask me what they mean. I have no idea.

Note: this requires ethtool to be installed

EDIT: For some newer mac mini's, here are two other setpci commands for the WOL part, if the one above doesn't work:
setpci -s 00:03.0 0xa4.b=0
setpci -s 00:03.0 0x7b.b=19
Try one at a time, see which works.

Comments (3) Trackbacks (0)
  1. Where did you get this information from?
    I guess you didn’t just come up with it out of the blue..

  2. Each of them came from two separate newsgroup posts I found with google. Hope it works for you too.

  3. Worked a treat for me. Just had to change eth1 for eth0.


Leave a comment

(required)

No trackbacks yet.