xfce4-power-manager.git fails to get suspend/hibernate authorization from consolekit2.git although xfce4-session logout has suspend and hibernate functional Method "Suspend" with signature "" on interface "org.freedesktop.ConsoleKit.Manager" doesn't exist viewing with qdbusviewer shows the item does exist under System Bus but not in Session Bus since it is found by xfce4-session (logout buttons etc.) something is messed up with the call in power manager .. Code works perfectly fine with consolekit-0.4.6 ( this is on gentoo with some custom+xfce-dev "*.9999.ebuilds i.e. git source")
additional info the message: Method "Suspend" with signature "" on interface "org.freedesktop.ConsoleKit.Manager" doesn't exist appears as notification with a "stop/warning" icon on laptop-lid closure xfce4-power-manager-plugin has suspend and hibernate active as options with consolekit2.git so detection of availablity is correct but activation via a lid close does not work with consolekit2-0.9.2 these selections are not even functional .. xfce4-session does not work with consolekit-0.9.2 either but xfce4-session does work with the latest consolekit2.git version
more info: using qdbusviewer to directly change/toggle the value of Method: Suspend or Hibernate to TRUE results in the appropriate response ... computer suspends or hiberantes so the error must be in the communication set-up with dbus from xfce4-power-manger
Created attachment 6015 Fix dbus call for suspend Oh, wow, how did I miss that? Can you try out this patch?
okay your patch works .. both hibernate and suspend .. as selected for both powered and on battery conditions .. many thanks
Thanks for verifying, pushed to master in: commit ba081cefcb97c1903ce05d353cb0ee030e020195 Author: Eric Koegel <eric.koegel@gmail.com> Date: Sun Mar 1 09:19:13 2015 +0300 Fix dbus call for CK2 suspend (Bug #11610) Looks like the parameter order got messed up when adding the suspend/hibernate code for ConsoleKit2. This patch fixes it. http://git.xfce.org/xfce/xfce4-power-manager/commit/?id=ba081cefcb97c1903ce05d353cb0ee030e020195