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:
http://www.thinkwiki.org/wiki/WakeOnLAN
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
address 192.168.1.2
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# 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: