Comment 40 for bug 160413

concertedrxn (travisejones) wrote :

I found a solution to the problem. I have the same ethernet card as the original reporter of the bug, and I'm still running Intrepid (AMD64).

$ lspci -nn | grep Realtek

04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller [10ec:8168] (rev 01)

I solved the problem by downloading and compiling the driver for the r8168 from Realtek's web site: <>.

To get it to compile I had to manually edit the Makefile in the src/ directory so it would point to the correct src/ directory. For whatever reason, the line "$(MAKE) -C $(KDIR) SUBDIRS=$(PWD)/src modules" wouldn't work, so I replaced "$(PWD)/src" with the actual path.

After a "sudo modprobe -r r8169 && sudo modprobe r8168" I was able to suspend my computer and wake it up with a MagicPacket without any other change to the configuration. I suppose I need to blacklist the r8169 module in /etc/modprobe.d/blacklist to keep it from loading on the next reboot, though.

Realtek's r8168 driver is licensed under the GPL. It would be great if it could be included in Ubuntu.