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

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

Juan Sierra Pons <juan@elsotanillo.net> writes:

>lspci -v
>02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
 ^^ The 2 digit at the beginning of the line means the pci bus

More info:
or google: pci-config wol

> 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.

Use pci-config (apt-get install nictools-pci) to put the nic into
sleep mode

(part of my /etc/network/interfaces)
#              pci-config -B 4 -#1
# gigabyte p35c-ds3r pci bus ^   ^ device number
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
        # wol gigabyte p35c-ds3r (on asus p5b I don't need this)
        #pre-up pci-config -W -B 4 -#1 # I don't use
        #pre-up pci-config -B 4 -#1 # I don't use
        pre-down pci-config -S -B 4 -#1 # Put device to sleep (ACPI D3)
        pre-down pci-config -B 4 -#1 # Show the current status

Also, if you share the drive with MS-Windows it may change the status of
the driver.

Reply to: