Hibernate/Suspend commands do not work in Ubuntu Karmic

Bug #410079 reported by Jonathan Davies
66
This bug affects 11 people
Affects Status Importance Assigned to Milestone
Do Plugins
Fix Released
Medium
Jonathan Davies
gnome-do-plugins (Ubuntu)
Fix Released
Medium
Iain Lane

Bug Description

The "GNOME Session Management" plugin does not work in Ubuntu Karmic, it fails with this error message for hibernating:

[Error 23:12:43.761] [PowerManagement] Could not hibernate: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PowerManagement was not provided by any .service files
[Debug 23:12:43.764] [PowerManagement] at IPowerManagementProxyProxy.Hibernate () [0x00000]
  at GNOME.PowerManagement.Hibernate () [0x00000]

And for suspend:

[Error 23:13:41.658] [PowerManagement] Could not suspend: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PowerManagement was not provided by any .service files
[Debug 23:13:41.661] [PowerManagement] at IPowerManagementProxyProxy.Suspend () [0x00000]
  at GNOME.PowerManagement.Suspend () [0x00000]

Looks like something changed in D-Bus.

Do version is:

||/ Name Version Description
+++-===============================================-===============================================-==============================================================================================================
ii gnome-do 0.8.1.3+dfsg-1 Quickly perform actions on your desktop
ii gnome-do-plugins 0.8.1.3+dfsg-2ubuntu2 Extra functionality for GNOME-Do launcher

Revision history for this message
Chris Halse Rogers (raof) wrote : Re: [Bug 410079] [NEW] Hibernate/Suspend commands do not work in Ubuntu Karmic

 affects do-plugins
 status triaged
 importance medium

 affects ubuntu/gnome-do-plugins
 status triaged
 importance medium

Yeah. Power management is, once again(!), undergoing DBus API changes.

We'll need to look at org.freedesktop.DeviceKit.Power in addition to the
existing interface.

Hopefully that one won't change!

Changed in do-plugins:
importance: Undecided → Medium
status: New → Triaged
Changed in gnome-do-plugins (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Jonathan Davies (jpds)
Changed in do-plugins:
assignee: nobody → Jonathan Davies (jpds)
status: Triaged → In Progress
Jonathan Davies (jpds)
Changed in do-plugins:
status: In Progress → Fix Committed
Revision history for this message
Robert Dyer (psybers) wrote :

I recently pushed a fix that allows the plugin to work on the older systems (Jaunty etc) that use PowerManagement and newer ones (Karmic) that use DeviceKit Power.

Revision history for this message
Maharifu (mail-lmcarvalho) wrote :

I accidentally clicked on the status... :s Sorry..

Changed in do-plugins:
status: Fix Committed → Fix Released
status: Fix Released → Fix Committed
Alex Launi (alexlauni)
Changed in do-plugins:
milestone: none → 0.8.2.1
status: Fix Committed → Fix Released
Changed in gnome-do-plugins (Ubuntu):
assignee: nobody → Iain Lane (laney)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-do-plugins - 0.8.2.1+dfsg-1~ubuntu1

---------------
gnome-do-plugins (0.8.2.1+dfsg-1~ubuntu1) karmic; urgency=low

  * Upload from pkg-cli-apps SVN to get this new bugfix release into Karmic.

gnome-do-plugins (0.8.2.1+dfsg-1) UNRELEASED; urgency=low

  * New upstream release 0.8.2.1
   - Correctly find Banshee indexer
   - Fix firefox leak on Mono < 2.4 (LP: #381064)
   - Close SSH hosts file after reading
   - Session plugin now works on devicekit-disks (LP: #410079)
  * 02_fix_banshee_plugin.dpatch: Drop, no longer required. Errors will be
    shown on console if Banshee is not installed but these are non-fatal.
  * rules, control: Use mono-csc

 -- Iain Lane <email address hidden> Wed, 14 Oct 2009 10:50:09 +0100

Changed in gnome-do-plugins (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Jonathan Davies (jpds) wrote :

Latest Karmic, trying to hibernate:

[Error 17:47:09.268] [PowerManagement] Could not get PowerManagement bus object: Duplicate type name within an assembly.
[Debug 17:47:09.269] [PowerManagement] at System.Reflection.Emit.ModuleBuilder.DefineType (System.String name, TypeAttributes attr, System.Type parent, System.Type[] interfaces, PackingSize packingSize, Int32 typesize) [0x00000]
  at System.Reflection.Emit.ModuleBuilder.DefineType (System.String name, TypeAttributes attr, System.Type parent, System.Type[] interfaces) [0x00000]
  at System.Reflection.Emit.ModuleBuilder.DefineType (System.String name, TypeAttributes attr, System.Type parent) [0x00000]
  at NDesk.DBus.TypeImplementer.GetImplementation (System.Type declType) [0x00000]
  at NDesk.DBus.BusObject.GetObject (NDesk.DBus.Connection conn, System.String bus_name, NDesk.DBus.ObjectPath object_path, System.Type declType) [0x00000]
  at NDesk.DBus.Connection.GetObject (System.Type type, System.String bus_name, NDesk.DBus.ObjectPath path) [0x00000]
  at NDesk.DBus.Connection.GetObject[IDeviceKitPower] (System.String bus_name, NDesk.DBus.ObjectPath path) [0x00000]
  at GNOME.PowerManagement.get_BusInstance () [0x00000]

Revision history for this message
Robert Dyer (psybers) wrote :

First, I assume youre using the new 0.8.2.1 which fixes this for Karmic.

Second, what you see there is a known NDesk DBus bug. Their bug report even has a patch that fixes it attached to it, but afaik it was never put into their trunk and thus not fixed. I personally downloaded their source, applied the patch, and voila it works fine!

Revision history for this message
Iain Lane (laney) wrote :

Hi Robert,

Could you file a bug at Debian about this ndesk-dbus issue and attach the patch and we'll see if we can get it applied there. Maybe we'll even be able to SRU into Karmic in a couple of weeks. If you could poke upstream about getting it applied too then it would help us to know that the patch is safe.

Regards,
Iain

Revision history for this message
Jonathan Davies (jpds) wrote :

Bug #377672 seems to be the NDesk issue and yes, I'm running with the updated GNOME Do with all Karmic updates applied.

Revision history for this message
Ahmed Kamal (kim0) wrote :

This is broken now again in Maverick ?

Revision history for this message
Rasmus (rasmus-up) wrote :

I have the same problem in Lucid. Although I don't get the error messages.

dbus-monitor outputs this for hibernate:

method call sender=:1.27 -> dest=org.freedesktop.DBus serial=13 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameHasOwner
   string "org.freedesktop.PowerManagement"

And this for suspend:

method call sender=:1.27 -> dest=org.freedesktop.DBus serial=14 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameHasOwner
   string "org.freedesktop.PowerManagement"

Revision history for this message
Charlie Schluting ☃ (cschluti) wrote :

Broken in Maverick.

Revision history for this message
Robert Dyer (psybers) wrote :

The packaged version of do-plugins most likely does not contain the UPower code that is in trunk. Try compiling from source.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.