! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-power-manager.git fails to get suspend/hibernate authorization from con...
Status:
RESOLVED: FIXED
Product:
Xfce4-power-manager
Component:
General

Comments

Description Derk te Bokkel 2015-02-27 15:50:38 CET
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")
Comment 1 Derk te Bokkel 2015-02-27 19:26:04 CET
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
Comment 2 Derk te Bokkel 2015-02-27 20:58:23 CET
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
Comment 3 Eric Koegel editbugs 2015-02-28 18:43:20 CET
Created attachment 6015 
Fix dbus call for suspend

Oh, wow, how did I miss that? Can you try out this patch?
Comment 4 Derk te Bokkel 2015-02-28 19:15:51 CET
okay your patch works .. both hibernate and suspend .. as selected for both powered and on battery conditions ..

many thanks
Comment 5 Eric Koegel editbugs 2015-03-01 07:33:47 CET
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

Bug #11610

Reported by:
Derk te Bokkel
Reported on: 2015-02-27
Last modified on: 2015-03-01

People

Assignee:
Ali Abdallah
CC List:
3 users

Version

Attachments

Fix dbus call for suspend (1.08 KB, patch)
2015-02-28 18:43 CET , Eric Koegel
no flags

Additional information