suspend/hibernate support in xfce4-session
aliov at xfce.org
Sat Nov 1 22:32:36 CET 2008
Brian J. Tarricone wrote:
> On Sat, 01 Nov 2008 14:44:18 +0100 Maximilian Schleiss wrote:
>> Le samedi 01 novembre 2008 à 02:59 -0700, Brian J. Tarricone a
>> écrit :
>>> I just committed suspend/hibernate support for xfce4-session, based
>>> on a patch from Xubuntu (recently updated by Michael Casadevall).
>>> I can't test this myself (susp/hibernate doesn't work on my
>>> laptop), so please give it a quick test if you can before beta2.
>> suspend and hibernate work here
>> but shows this error message when it
>> resumes even though it did suspend, hibernate and resume properly:
>> *TITLE*Shutdown Failed
>> Failed to suspend session
>> Did not receive a reply. Possible causes include: the remote
>> application did not send a reply, the message bus security policy
>> blocked the reply, the reply timeout expired, or the network
>> connection was broken.
> Boo! That's strange. Does it happen every time, or just sometimes?
> Mike says it doesn't happen for him and suspend otherwise works :-( .
> Unfortunately I don't think there's a way to tell in code if this
> message is spurious as in your case, or is a real error (hald died, or
> wasn't running, or whatever).
> Well, it looks like the dbus default method call timeout is 25 seconds,
> but xfce4-session was requesting a timeout of only 2 seconds. Maybe
> that's part of the problem. I changed xfce4-session to just use the
> default. Can you svn up and give that a try?
The problem here is the D-Bus timeouts, nothing can be set here to fix
it, any timeout set for suspend/hibernate messages will possibly
produces this error message, so one has to ignore it,
gnome-power-manager ignores this and xfce4-power-manager as well, in
xfce4-power-manager there is a filter to get only serious errors with
respect also with the exit code sent by HAL ( if we manage to get it ),
this approach seems to work.
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
More information about the Xfce4-dev