Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 702550

Summary: xfce-base/xfce4-session-4.14.0 : Hybrid Sleep mode not working from logout menu
Product: Gentoo Linux Reporter: j.emken <j.emken>
Component: Current packagesAssignee: XFCE Team <xfce>
Status: UNCONFIRMED ---    
Severity: normal CC: mgorny
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: /etc/portage/patches/xfce-base/xfce4-session-4.14.0/hybrid-sleep.patch

Description j.emken@gmx.net 2019-12-11 16:06:43 UTC
Created attachment 599130 [details, diff]
/etc/portage/patches/xfce-base/xfce4-session-4.14.0/hybrid-sleep.patch

When I try to go to Hybrid-Sleep from the log out menu, nothing happens.
Looking into "~/.xsession-errors" reveals this error msg:

(xfce4-session:17690): GLib-GIO-CRITICAL **: 15:33:02.335: g_dbus_proxy_call_sync_internal: assertion 'parameters == NULL || g_variant_is_of_type (parameters, G_VARIANT_TYPE_TUPLE)' failed


So I test it manually in the terminal:
$ dbus-send --print-reply --dest=org.xfce.SessionManager /org/xfce/SessionManager org.xfce.Session.Manager.Suspend
This works.

But not:
$ dbus-send --print-reply --dest=org.xfce.SessionManager /org/xfce/SessionManager org.xfce.Session.Manager.HybridSleep


xfce then seems to fall back to "xfsm-shutdown-helper" with the option "--hybrid-sleep" which should call "/usr/sbin/pm-suspend-hybrid". Here is the message in syslog:

Dec 10 20:40:05 gentoo pkexec[30348]: me: Executing command [USER=root] [TTY=unknown] [CWD=/home/me] [COMMAND=/usr/lib64/xfce4/session/xfsm-shutdown-helper --hybrid-sleep]


But running
$ /usr/lib64/xfce4/session/xfsm-shutdown-helper --hybrid-sleep

gives me: 
No valid option was specified


$ /usr/lib64/xfce4/session/xfsm-shutdown-helper --help

Application Options:
  --shutdown       Shutdown the system
  --restart        Restart the system
  --suspend        Suspend the system
  --hibernate      Hibernate the system


Looking into the code reveals that hybrid-sleep mode is included in "xfce4-session-4.14.0/xfce4-session-logout/main.c" but not in "xfce4-session-4.14.0/xfsm-shutdown-helper/main.c"


I attached a simple patch that enables Hybrid-Sleep for "xfsm-shutdown-helper" (as /etc/portage/patches/xfce-base/xfce4-session-4.14.0/hybrid-sleep.patch) but I wonder why calling the method HybridSleep in dbus mode won't work for me. Any suggestions?
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-12-11 18:16:03 UTC
Could you file a bug upstream @ https://bugzilla.xfce.org/ ?  This is something they need to fix, not us.