Wake-On-Lan from hibernation in Fedora
Posted on 2007-07-28
I'm trying to setup a fileserver running Fedora 7 that uses Wake-On-Lan to remotely power up from S4 or S3 because these are the options that work according to the BIOS. I'm fairly certain that it's possible to make it work since the ethtool reports the NIC supports the pumbg options. And indeed, when I set the b option (broadcast) and then send a packet over the broadcast address the PC powers up from S4 and S3 even though the lights on the NIC are off.
However this is not ideal and I really need the magic packet option to work. Since the broadcast option is working it's safe to assume that there's no problem with the power supply or the WOL connection. (It's an onboard NIC anyways).
In short I need a way to enable the 'wake on lan with a magic packet option' Some options that I've tried already:
-adding a hook script to cd /etc/pm/sleep.d
-adding options to the halt script (which doesn't work because I'm using S3/S4?)
-using ethtool -s eth0 wol g right before hibernate/suspend
-using ethtool -s eth0 wol bg right before hibernate/suspend (when the PC wakes up after this sometimes only the b option is still enabled or the wol functions are completely disabled.)
I hope we can find a solution to this rather annoying problem.