pm-utils uses wrong interface for NetworkManager hook (should be org.freedesktop.NetworkManager.Sleep)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pm-utils |
Won't Fix
|
Medium
|
|||
pm-utils (Debian) |
Confirmed
|
Unknown
|
|||
pm-utils (Ubuntu) |
Triaged
|
Medium
|
Unassigned | ||
Bug Description
While looking at /var/log/
Running hook /usr/lib/
Having NetworkManager put all interaces to sleep...Failed.
Running hook /usr/lib/
Having NetworkManager wake interfaces back up...Failed.
Looking at the script is uses org.freedesktop
Calling this results in errors like this:
% sudo dbus-send --print-reply --system --dest=
Error org.freedesktop
According to the documentation [1], the interface is different / has changed.
The correct usage would be to call org.freedesktop
sudo dbus-send --print-reply --system --dest=
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: pm-utils 1.4.1-9
ProcVersionSign
Uname: Linux 3.2.0-25-generic x86_64
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
Date: Sat Jun 2 21:36:40 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
PackageArchitec
SourcePackage: pm-utils
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in pm-utils (Debian): | |
status: | Unknown → Confirmed |
Changed in pm-utils: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Changed in pm-utils (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in pm-utils: | |
status: | Confirmed → Invalid |
Changed in pm-utils: | |
importance: | Medium → Unknown |
status: | Invalid → Unknown |
Changed in pm-utils: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Changed in pm-utils: | |
status: | Confirmed → Won't Fix |
Created attachment 39281
add '--print-reply' and use Sleep() method
The patch adds '--print-reply' to 55NetworkManager hook. This works around a bug that D-Bus loses messages for short-lived processes. /bugs.freedeskt op.org/ show_bug. cgi?id= 896 (the core D-Bus bug) /bugzilla. redhat. com/show_ bug.cgi? id=477964
In reality this means that without '--print-reply' the message is not delivered to NetworkManager and it's not woken up on resume.
You can see these bugs for reference:
https:/
https:/
Moreover the patch uses Sleep() method instead of deprecated sleep() and wake() projects. gnome.org/ NetworkManager/ developers/ spec-08. html
http://