Bump
Still struggling with this WOL issue. It really is a pain, see, because the MD is a laptop that I want to keep closed to keep out dust and muck and ultimately I actually want to hide it in a cabinet or something so getting to the power switch is a no-no.
Progress-
Since WOL works fine with my other MDs I'm certain it has something to do with the Broadcom BCM5787M NIC, the tg3 driver which controls it or a combination of these. Most posts on the web state that the NIC has to be properly shut down in the poweroff sequence and because this isn't happening, it can't react to WOL packets. That makes sense because when I remove mains power (after shutting down) and then plug it back in, WOl works! So it seems that on shutdown the NIC is left in some state that is not right and when power is removed, the NIC is forceably closed or dropped to the appropriate state.
So I tried a couple of things-
1. I tried upgrading the tg3 driver to the latest in case this was fixed. Doesn't seem to have made a difference although I must confirm that I *am* using the latest (just be sure I created the correct initramfs etc)
2. I tried purging network-manager which worked for some people. Didn't help me.
3. I tried adding a patch to the /etc/init.d/halt script that forcibly does an ifconfig eth0 down
but this just causes the system to hang on shutdown. I suspected this was because the root file system was still mounted on NFS and therefore the system wouldn't take the NIC down? The reason I suspected NFS still mounted was because there are some messages on shutdown like / still busy
.
4. Based on 3 above I thought perhaps the shutdown scripts were incorrectly ordered (I came across a post somewhere that suggested this was possibly the case) so I modded that to make NBD shutdown come earlier (as per advice in the post) but that doesn't seem to have improved things.
Next steps:
1. Confirm I am actually using the new tg3 driver (perhaps replace tg3.ko whcih I think I'm using with a nonsense file, rebuild initramfs and confirm that the system doesn't work!!).
2. Use live ubuntu CDs for 8.10, 10.04 and 12.xx to confirm that the WOL problem exists for 10.04 only. Then, possibly force the NIC driver from 8.10 or 12.xx in? Sounds like a major hack but who knows? Is it possible to use an alternative, *generic* driver to TG3 that might work?
3. Stick an X-10 controller on the mains source so I can forcibly pull the plug and then re-power the machine each time I shut it down!!!