Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC
Bug 702550 - xfce-base/xfce4-session-4.14.0 : Hybrid Sleep mode not working from logout menu
Summary: xfce-base/xfce4-session-4.14.0 : Hybrid Sleep mode not working from logout menu
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: XFCE Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-12-11 16:06 UTC by j.emken@gmx.net
Modified: 2019-12-11 18:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/etc/portage/patches/xfce-base/xfce4-session-4.14.0/hybrid-sleep.patch (hybrid-sleep.patch,2.57 KB, patch)
2019-12-11 16:06 UTC, j.emken@gmx.net
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.