Ubuntu

dbus-send: no suspend or hibernate

Reported by hakaishi on 2010-04-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-power-manager (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: gnome-power-manager

Version 2.28.1-0ubuntu1.3 of gnome-power-manager:

desktop:~$ dbus-send --session --dest=org.gnome.PowerManager --type=method_call --print-reply --reply-timeout=2000 /org/gnome/PowerManager org.gnome.PowerManager.Suspend
Error org.freedesktop.DBus.Error.UnknownMethod: Method "Suspend" with signature "" on interface "org.gnome.PowerManager" doesn't exist

desktop:~$ dbus-send --session --dest=org.gnome.PowerManager --type=method_call --print-reply --reply-timeout=2000 /org/gnome/PowerManager org.gnome.PowerManager.Hibernate
Error org.freedesktop.DBus.Error.UnknownMethod: Method "Hibernate" with signature "" on interface "org.gnome.PowerManager" doesn't exist

desktop:~$ dbus-send --session --dest=org.gnome.PowerManager --print-reply /org/gnome/PowerManager org.freedesktop.DBus.Introspectable.Introspect
method return sender=:1.20 -> dest=:1.191 reply_serial=2
   string "<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
  <interface name="org.freedesktop.DBus.Introspectable">
    <method name="Introspect">
      <arg name="data" direction="out" type="s"/>
    </method>
  </interface>
  <interface name="org.freedesktop.DBus.Properties">
    <method name="Get">
      <arg name="interface" direction="in" type="s"/>
      <arg name="propname" direction="in" type="s"/>
      <arg name="value" direction="out" type="v"/>
    </method>
    <method name="Set">
      <arg name="interface" direction="in" type="s"/>
      <arg name="propname" direction="in" type="s"/>
      <arg name="value" direction="in" type="v"/>
    </method>
    <method name="GetAll">
      <arg name="interface" direction="in" type="s"/>
      <arg name="props" direction="out" type="a{sv}"/>
    </method>
  </interface>
  <interface name="org.gnome.PowerManager">
    <method name="GetPreferencesOptions">
      <arg name="capability" type="i" direction="out"/>
    </method>
  </interface>
  <node name="Backlight"/>
</node>
"

Is there no suspend and hibernate anymore, or am I doing something wrong?
The methods RequestShutdown and RequestReboot are doing fine...

Kind regards
 Hakaishi

Chris Coulson (chrisccoulson) wrote :

Thanks, but that's not a bug. This interface was removed some time ago

Changed in gnome-power-manager (Ubuntu):
status: New → Invalid
hakaishi (hakaishi) wrote :

Is there another way to do this? - I've searched the Internet a few times, but didn't find anything...
Even these two don't work: http://live.gnome.org/GnomePowerManager/FAQ#How_do_I_query_or_do_actions_on_gnome-power-manager_from_my_shell_script.3F

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

Other bug subscribers