Re: Wake on lan with RTL8111/8168B

2013-06-27 Thread Peter Wu
On Monday 11 February 2013 06:27:57 assir...@nonada.if.usp.br wrote:
 I have an ASUS P8Z77-M motherboard with an onboard RTL8111/8168B network
 card. I want to enable wake on lan for this card. Wake on lan itself is
 workg when I call
 
 wakeonlan mac address
 
 from another machine, but when I shutdown the computer, the system powers
 down and about 5 seconds later it powers up again without any sending of
 magic packets. The effective result is therefore a reboot and not the
 wished power down.
 
 I wonder if anyone had the same problem?

Is this EFI BIOS? I experience a similar issue on a Gigabyte GA-Z68X-UD3H-B3 
(rev 1.0) motherboard which has a RTL8168E network card (lspci reports the 
wrong name for vendor:device 10ec:8168 rev 06).

I contacted Gigabyte using http://ggts.gigabyte.com/, but they have asked me 
to try to reproduce this on Windows. I do not have such an installation laying 
around for this machine, so that will be slightly more difficult to test. My 
request for BIOS source code was also denied due to the rule of firma.

What I have tried:
- Clear the PM_Status bit to stop asserting a wake-up:

  sudo setpci -v -s 06:00.0 CAP_PM+5.B=80
- Disabling wake-on-lan with `sudo ethtool -s eth0 wol d`. On the Ubuntu 
3.5.0-34-generic kernel, the flag gets set to d, but on resume it becomes the 
default g again. IIRC, on Arch Linux with Linux 3.9.6-1, WOL stays disabled, 
but then enabling it again did not work (MagicPacket did not trigger a wake-
up).

NOTE: as you experienced, a machine woken with WOL will restart on shutdown. I 
experience the same behavior with suspend. That is, if a machine was woken 
with WOL, after suspend it takes a few seconds before it decides to resume 
again without any interaction.

NOTE2: WOL worked fine on older non-EFI AWARD BIOS versions, F12 and older. The 
EFI BIOSes version U1h and U1l both have this WOL issue. Downgrading to AWARD 
BIOS resolves the problem (but then I miss certain newer features).

Can you reproduce this WOL issue on other non-Linux OSes? (where WOL is 
functioning of course) Please mention BIOS version as well.

Regards,
Peter

 PS. let me know if you need Realtek datasheets.

 I am running Wheezy. The problem occours with kernels 3.2, 3.7 (from
 experimental) and vanilla 3.8-rc6, both with the native r8169 and Realtek
 provided r8168. I also tried to call
 
 ethtool -s eth0 wol g
 
 and / or
 
 
 pci-config -B 3 -# 1 -S
 (as described in http://lists.debian.org/debian-user/2012/01/msg00241.html)
 
 before every shutdown. I also tried combinations
 
 ethtool -s eth0 wol ug
 ethtool -s eth0 wol mg
 ethtool -s eth0 wol bg
 ethtool -s eth0 wol mug etc
 
 as described in wiki.archlinux.org/index.php/Wake-on-LAN, with no
 improvement.
 
 Any hint will be greatly appreciated!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/10503989.IAAQ7pyvH5@al



Re: Wake on lan with RTL8111/8168B

2013-02-26 Thread Johan Lindahl
Did you ever get this to work? I have the same problem. It seems like every
second time I start my computer with WOL it reboots when a issue a poweroff.



--
View this message in context: 
http://debian.2.n7.nabble.com/Wake-on-lan-with-RTL8111-8168B-tp2867498p2878147.html
Sent from the Debian User mailing list archive at Nabble.com.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1361884883737-2878147.p...@n7.nabble.com



Re: Wake on lan with RTL8111/8168B

2013-02-11 Thread Morel Bérenger
Le Lun 11 février 2013 9:27, assir...@nonada.if.usp.br a écrit :
 Hello,


 I have an ASUS P8Z77-M motherboard with an onboard RTL8111/8168B network
 card. I want to enable wake on lan for this card. Wake on lan itself is
 workg when I call

 wakeonlan mac address

 from another machine, but when I shutdown the computer, the system powers
  down and about 5 seconds later it powers up again without any sending of
  magic packets. The effective result is therefore a reboot and not the
 wished power down.

 I wonder if anyone had the same problem?

I think your problem is not related to the wake on lan, since you
correctly start the needed computer with WoL.
Your problem here is to shutdown, and not reboot.

So, how do you shut it down?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/9ba6c431d34ad2075c24d6766ab71eed.squir...@www.sud-ouest.org



Re: Wake on lan with RTL8111/8168B

2013-02-11 Thread assirati
 Le Lun 11 février 2013 9:27, assir...@nonada.if.usp.br a écrit :
 Hello,


 I have an ASUS P8Z77-M motherboard with an onboard RTL8111/8168B network
 card. I want to enable wake on lan for this card. Wake on lan itself is
 workg when I call

 wakeonlan mac address

 from another machine, but when I shutdown the computer, the system
 powers
  down and about 5 seconds later it powers up again without any sending
 of
  magic packets. The effective result is therefore a reboot and not the
 wished power down.

 I wonder if anyone had the same problem?

 I think your problem is not related to the wake on lan, since you
 correctly start the needed computer with WoL.
 Your problem here is to shutdown, and not reboot.

 So, how do you shut it down?



Sorry for not including this in the description. I tried the following
ways to shut down.

shutdown -h now
shutdown -hP now
poweroff
telinit 0

both from runlevel 2 and single. All of them gave the same results.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/520216b5a4a498671d9c1e973c0898fe.squir...@nonada.if.usp.br



Re: Wake on lan with RTL8111/8168B

2013-02-11 Thread Morel Bérenger
Le Lun 11 février 2013 10:29, assir...@nonada.if.usp.br a écrit :
 Le Lun 11 février 2013 9:27, assir...@nonada.if.usp.br a écrit :

 Hello,



 I have an ASUS P8Z77-M motherboard with an onboard RTL8111/8168B
 network card. I want to enable wake on lan for this card. Wake on lan
 itself is workg when I call

 wakeonlan mac address

 from another machine, but when I shutdown the computer, the system
 powers down and about 5 seconds later it powers up again without any
 sending of magic packets. The effective result is therefore a reboot
 and not the wished power down.

 I wonder if anyone had the same problem?


 I think your problem is not related to the wake on lan, since you
 correctly start the needed computer with WoL. Your problem here is to
 shutdown, and not reboot.

 So, how do you shut it down?




 Sorry for not including this in the description. I tried the following
 ways to shut down.

 shutdown -h now shutdown -hP now poweroff telinit 0

 both from runlevel 2 and single. All of them gave the same results.

 Also, the problem must be related to WOL somehow, because it restarts
 only if it was turned on by WOL. If I turn it on by the power button, it
 shuts down normally.



And, how do you connect to that distant computer? SSH, I guess?
If I had the same problem, I would check that the correct profile
(environment variables, rights, such kind of things) related to poweroff
is loaded, since I think ssh does not provide all environment variables to
connected users.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/8be41b751703713d1fb5980f6050ab4b.squir...@www.sud-ouest.org



Re: Wake on lan with RTL8111/8168B

2013-02-11 Thread assirati
 Le Lun 11 février 2013 9:27, assir...@nonada.if.usp.br a écrit :
 Hello,


 I have an ASUS P8Z77-M motherboard with an onboard RTL8111/8168B
 network
 card. I want to enable wake on lan for this card. Wake on lan itself is
 workg when I call

 wakeonlan mac address

 from another machine, but when I shutdown the computer, the system
 powers
  down and about 5 seconds later it powers up again without any sending
 of
  magic packets. The effective result is therefore a reboot and not the
 wished power down.

 I wonder if anyone had the same problem?

 I think your problem is not related to the wake on lan, since you
 correctly start the needed computer with WoL.
 Your problem here is to shutdown, and not reboot.

 So, how do you shut it down?



 Sorry for not including this in the description. I tried the following
 ways to shut down.

 shutdown -h now
 shutdown -hP now
 poweroff
 telinit 0

 both from runlevel 2 and single. All of them gave the same results.

Also, the problem must be related to WOL somehow, because it restarts only
if it was turned on by WOL. If I turn it on by the power button, it shuts
down normally.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/f95ae38bd6bae08301fce900d8e5b7a2.squir...@nonada.if.usp.br



Re: Wake on lan with RTL8111/8168B

2013-02-11 Thread Joao Luis Meloni Assirati
 And, how do you connect to that distant computer? SSH, I guess?
 If I had the same problem, I would check that the correct profile
 (environment variables, rights, such kind of things) related to poweroff
 is loaded, since I think ssh does not provide all environment variables to
 connected users.

All my tests until now were done with local shells. I assure it is not such a 
problem.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130211162018.ca6cc...@nonada.if.usp.br