WOL not working after reboot - a fix

ghstryder
Posts: 65
Joined: Mon Jun 14, 2010 3:14 am

WOL not working after reboot - a fix

Postby ghstryder » Sat Oct 22, 2011 9:29 am

I haven't seen a lot of people having problems with WOL, so maybe this was unique to me. I'm going to post it just in case it might help someone.

I made the appropriate settings in the BIOS and then followed the Amahi WOL Wiki. I installed ethtool and issued

Code: Select all

ethtool -s eth0 wol g
This enabled WOL, it would work once and only once.

WOL would not work after the machine had been started/shut down. A search (on the internet, not here) reveals dozens of posts about the issue, with the usual variety of fixes and non-fixes. I finally narrowed things down and found a solution I'm happy with.

As root, edit /etc/rc.local, add the following line and save the file.

Code: Select all

/sbin/ethtool -s eth0 wol g
Reissue

Code: Select all

ethtool -s eth0 wol g
Issue the shutdown command of your choice and test.

I've shutdown from the command line with shutdown -h now, with the power button (the options are set for the power button to shutdown) and remotely via vnc and ssh. WOL appears to be working correctly for me, at long last.

Who is online

Users browsing this forum: No registered users and 14 guests