Wake on Lan on an Intel Mac Mini with Linux

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.

3 Comments

1 Trackback

Leave a Reply

Your email address will not be published. Required fields are marked *