Hi there,

Thank you for taking the time to look into this. This is actually not a
PowerNap bug, but rather, pm-utils (not really a bug though). pm-utils
ships a disable_wol script that, as its name says, disables wake-on-lan
when executing the pm-powersave (which powernap executes).

To fix this, you could either disable this script when pm-powersave
executes by removing the execution bit form the script. You'll find the
script at:

/usr/lib/pm-utils/power.d/disable_wol

Now, what should be done in PowerNap though, is to ensure WoL is enabled
when performing a poweroff/suspend action. I'll retarget this bug for
that.

Cheers.

** Changed in: powernap (Ubuntu)
       Status: New => Triaged

** Changed in: powernap (Ubuntu)
       Status: Triaged => Confirmed

** Summary changed:

- Powernap prevents waking from WakeOnLAN
+ Powernap should ensure WoL is enabled before Second Stage

** Description changed:

- I have a server running Ubuntu 12.04. The current issue is the
- following:
+ PowerNap should ensure that WoL is enabled before executing the second
+ stage action (poweroff/susped) as first stage action (powersave) will
+ disable WoL.
+ 
+ Note that powernap does not disable WoL, but rather, pm-utils ships a
+ script called disable_wol.
+ 
+ ============= Background ================
+ I have a server running Ubuntu 12.04. The current issue is the following:
  
  * if I activate 2nd-stage powernap to poweroff (or 'shutdown -h' by
  using /etc/powernap/action), the computer will not wake when sent a
  magic packet.
  
  * if however, I manually shutdown the computer (using shutdown -h from
  the console), the computer can be woken up with a magic packet without
  any problem.
  
  I have no idea about the reason for this. I used previously powernap
  with 11.04 (or 11.10, I don't remember) and it worked correctly (the
  current installation is a clean one).
  
  I have attached the powernap main config (with 2nd stage deactivated,
  but of course I ran the tests by activating it).
  
  Note that the symptoms are the same if I try using suspend instead of
  poweroff/shutdown -h
  
  ############################
  Description:  Ubuntu 12.04 LTS
  Release:      12.04
  ############################
  root@souris:~# apt-cache policy powernap
  powernap:
-   Installé : 2.17-0ubuntu2
-   Candidat : 2.17-0ubuntu2
-  Table de version :
-  *** 2.17-0ubuntu2 0
-         500 http://fr.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
-         100 /var/lib/dpkg/status
+   Installé : 2.17-0ubuntu2
+   Candidat : 2.17-0ubuntu2
+  Table de version :
+  *** 2.17-0ubuntu2 0
+         500 http://fr.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
+         100 /var/lib/dpkg/status
  
  ############################
  root@souris:~# ethtool eth0
  Settings for eth0:
-       Supported ports: [ TP MII ]
-       Supported link modes:   10baseT/Half 10baseT/Full 
-                               100baseT/Half 100baseT/Full 
-                               1000baseT/Half 1000baseT/Full 
-       Supported pause frame use: No
-       Supports auto-negotiation: Yes
-       Advertised link modes:  10baseT/Half 10baseT/Full 
-                               100baseT/Half 100baseT/Full 
-                               1000baseT/Half 1000baseT/Full 
-       Advertised pause frame use: Symmetric Receive-only
-       Advertised auto-negotiation: Yes
-       Link partner advertised link modes:  10baseT/Half 10baseT/Full 
-                                            100baseT/Half 100baseT/Full 
-                                            1000baseT/Half 1000baseT/Full 
-       Link partner advertised pause frame use: Symmetric Receive-only
-       Link partner advertised auto-negotiation: Yes
-       Speed: 1000Mb/s
-       Duplex: Full
-       Port: MII
-       PHYAD: 0
-       Transceiver: internal
-       Auto-negotiation: on
-       Supports Wake-on: pumbg
-       Wake-on: g
-       Current message level: 0x00000033 (51)
-                              drv probe ifdown ifup
-       Link detected: yes
- --- 
+  Supported ports: [ TP MII ]
+  Supported link modes:   10baseT/Half 10baseT/Full
+                          100baseT/Half 100baseT/Full
+                          1000baseT/Half 1000baseT/Full
+  Supported pause frame use: No
+  Supports auto-negotiation: Yes
+  Advertised link modes:  10baseT/Half 10baseT/Full
+                          100baseT/Half 100baseT/Full
+                          1000baseT/Half 1000baseT/Full
+  Advertised pause frame use: Symmetric Receive-only
+  Advertised auto-negotiation: Yes
+  Link partner advertised link modes:  10baseT/Half 10baseT/Full
+                                       100baseT/Half 100baseT/Full
+                                       1000baseT/Half 1000baseT/Full
+  Link partner advertised pause frame use: Symmetric Receive-only
+  Link partner advertised auto-negotiation: Yes
+  Speed: 1000Mb/s
+  Duplex: Full
+  Port: MII
+  PHYAD: 0
+  Transceiver: internal
+  Auto-negotiation: on
+  Supports Wake-on: pumbg
+  Wake-on: g
+  Current message level: 0x00000033 (51)
+           drv probe ifdown ifup
+  Link detected: yes
+ ---
  ApportVersion: 2.0.1-0ubuntu5
  Architecture: amd64
  DistroRelease: Ubuntu 12.04
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 
(20120324.1)
  Package: powernap 2.17-0ubuntu2 [modified: usr/sbin/powernap]
  PackageArchitecture: all
  ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
  Tags:  precise
  Uname: Linux 3.2.0-23-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
  mtime.conffile..etc.powernap.action: 2012-04-18T22:08:05.480260
  mtime.conffile..etc.powernap.config: 2012-04-25T20:25:37.642992

** Also affects: powernap
   Importance: Undecided
       Status: New

** Changed in: powernap
       Status: New => Confirmed

** Changed in: powernap
   Importance: Undecided => Wishlist

** Changed in: powernap (Ubuntu)
   Importance: Undecided => Low

** Changed in: powernap (Ubuntu)
   Importance: Low => Wishlist

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/989175

Title:
  Powernap should ensure WoL is enabled before Second Stage

To manage notifications about this bug go to:
https://bugs.launchpad.net/powernap/+bug/989175/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to