Public bug reported: pm-utils version 1.4.1-8ubuntu1 in oneiric fails to put NetworkManager 0.9 to sleep, which causes external applications to not notice the loss of connectivity.
It fails because pm-utils uses the sleep() and wake() methods which are deprecated since NetworkManager 0.7 and have been removed in NetworkManager 0.9, in favor of Sleep(bool). The attached patch fixes this. Here are the relevant lines from /var/log/pm-suspend.log: Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend: Having NetworkManager put all interaces to sleep...Failed. /usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend: success. [...] Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager resume suspend: Having NetworkManager wake interfaces back up...Failed. /usr/lib/pm-utils/sleep.d/55NetworkManager resume suspend: success. ** Affects: pm-utils (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/906347 Title: 55NetworkManager uses deprecated API. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/906347/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs