I've been struggling with wake-on-lan (WoL) capability of my onboard Realtek RTL8111/8168B ethernet controller (MB: Gigabyte Z68AP-D3) for almost a week now. The main issue seems to be that network card is switched off completely during shutdown (i.e., both link and (act)ivity LED lights are off).
I made an extensive review of similar issues and tried the following (among others):
- Putting
ethtool -s eth0 wol g
torc.local
file. - Installing latest r8168 driver(s) from Realtek.
- Putting
echo -n "my_lan_id" >> /proc/acpi/wakeup
torc.local
file. - Switching WOL option on and off in BIOS.
I can find no way to prepare my NIC to work properly so I decided to try with external PCI network card. Please suggest me which network card should I try to enable WoL? (Maybe IntelĀ® PRO/1000 GT Desktop Adapter?)
Best Answer
I found a solution, it works on my system (RTL8111/8168B PCI Express Gigabit Ethernet + Ubuntu 12.04 AMD64). This bug report discribes the issue, and someone suggested that using the r8168 module instead of the r8169 module would do the trick. Also somewhere else I saw this can be done via dkms, but I'm in a rush this morning, so didn't get chance to look, this might help
Although I was doing this over ssh, it actually worked, the connection just locked for a while, but picked up again after the new module installed.