[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RTL8111/8168B wake on lan (WOL) working randomly

Dear all,

I have been spending many  days trying to make my computer start using
the with wake on lan (WOL) feature.

My PC has a "Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)"
integrated NIC

lspci -v

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
        Subsystem: ASUSTeK Computer Inc. P5B
        Flags: bus master, fast devsel, latency 0, IRQ 41
        I/O ports at dc00 [size=256]
        Memory at fdfff000 (64-bit, non-prefetchable) [size=4K]
        [virtual] Expansion ROM at fdd00000 [disabled] [size=128K]
        Capabilities: [40] Power Management version 2
        Capabilities: [48] Vital Product Data
        Capabilities: [50] MSI: Enable+ Count=1/2 Maskable- 64bit+
        Capabilities: [60] Express Endpoint, MSI 00
        Capabilities: [84] Vendor Specific Information: Len=4c <?>
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [12c] Virtual Channel
        Capabilities: [148] Device Serial Number 1a-00-00-00-10-ec-81-68
        Capabilities: [154] Power Budgeting <?>
        Kernel driver in use: r8168

I have found on many mailing lists, forums that it is necessary the
r8168 module to make it works as by default Debian wheezy uses the
r8169 so I have installed the newest r8168 module from

For example:

The problem is that when I shutdown the computer the NIC is switched
off too. I can see it as the port in my home ADSL router is switched
off. BUT randomly I can see that the NIC is not switched off after a
shutdown and if I send the WOL packet from another computer it works
like a charm.

I have already checked the following:

* My computer uses the right module as i have blacklisted the r8169:

more /etc/modprobe.d/blacklist-network.conf
blacklist r8169

* I am using the last module version:

ethtool -i eth0
driver: r8168
version: 8.027.00-NAPI
bus-info: 0000:02:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: yes
supports-register-dump: yes

* NIC has the WOL feature enabled (Wake-on: g)

root@mediacenter:/etc# ethtool eth0

Settings for eth0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Speed: 100Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        MDI-X: Unknown
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000033 (51)
                               drv probe ifdown ifup
        Link detected: yes

* I have already modified the /etc/init.d/halt script with NETDOWN=no
to do not switch off the NIC
# Make it possible to not shut down network interfaces,
        # needed to use wake-on-lan
        if [ "$NETDOWN" = "no" ]; then

I can not see any pattern as it works around 10-20% of the times I
shutdown the computer locally, remotely or from the poweroff button.

Thanks a log for your time.

Best regards

Juan Sierra Pons

Juan Sierra Pons                                 juan@elsotanillo.net
Linux User Registered: #257202       http://www.elsotanillo.net
GPG key = 0xA110F4FE
Key Fingerprint = DF53 7415 0936 244E 9B00  6E66 E934 3406 A110 F4FE

Reply to: