[Goodies-dev] ANN: xfce4-power-manager version 0.8.0beta2 released
Ali Abdallah
aliov at xfce.org
Mon Apr 20 09:29:02 CEST 2009
Mike Massonnet wrote:
> Ali Abdallah wrote:
>> Mike Massonnet wrote:
>>> 2009/4/18 Ali Abdallah <aliov at xfce.org>:
>>>
>>>> Mike Massonnet wrote:
>>>>
>>>>> When I press the Power button, and xfpm is configured to Shutdown,
>>>>> the X
>>>>> session is closing, however quickly after that it is being
>>>>> restarted. This
>>>>> must be related to Moblin of course, I just had like to know what.
>>>>> Can I
>>>>> reproduce a shutdown the same way xfpm is doing it from the
>>>>> command line?
>>>>>
>>>>>
>>>> If xfce4-session is running then yes, i just use the shutdown DBus
>>>> interface
>>>> on the session, because in this way the session will cleanly
>>>> shutdown, you
>>>> can send DBus shutdown message of type 2.
>>>>
>>>> dbus-send --print-reply --session --dest=org.xfce.SessionManager
>>>> /org/xfce/SessionManager org.xfce.Session.Manager \
>>>> uint32:2 boolean:true
>>>>
>>>
>>> In fact, using the Shutdown and Reboot actions through the DBus
>>> service renders the bug. Xfce4-session is patched on Moblin, I don't
>>> know if I would get the same result with a pristine version. But using
>>> those actions through the prompt dialog works fine.
>>>
>>>
>>>> For suspend/hibernate i have the DBus interfaces in xfpm on
>>>> org.freedesktop.PowerManagement (standard), but probably i should add
>>>> shutdown interface as well that uses the xfce4-session if it is
>>>> running or
>>>> internally if not. (if this can help you i can do it right now).
>>>>
>>>
>>> Yes, that is probably what it should be doing as the Shutdown method
>>> from the session manager allows the clients to close safely, but still
>>> it must be able to revert to an internal shutdown command in case it
>>> runs with another manager or outside Xfce.
>>>
>>>
>>
>> Mike,
>>
>> This is a subject for a bug report on the xfce4-session, because
>> using xfce4-session-logout --halt does an X server restart, i have
>> tested on my system, i think the shutdown interface is broken on the
>> session, using the logout dialog always works.
>
> Regarding xfce4-session-logout --halt, there is already bug 5032.
>
> Regarding the Moblin issue, it works fine for instance under Debian,
> they cannot be related. I didn't get to build the rpm source package
> yet, in fact I post-pone this a little before getting on it.
>
Anyway, i have added interface for shutting down the computer, the
interface just uses xfce4-session if it is running or do it manually if
no xfce4-session running, you can invoke the shutdown with dbus-send on
org.freedesktop.PowerManagement.Shutdown.
> Mike
>
Cheers,
Ali.
>> Cheers,
>>
>>>> Cheers and many thanks,
>>>> Ali.
>>>>
>>>
>>> Cheers
>>> Mike
>>> _______________________________________________
>>> Goodies-dev mailing list
>>> Goodies-dev at xfce.org
>>> http://foo-projects.org/mailman/listinfo/goodies-dev
>>>
>>
>> _______________________________________________
>> Goodies-dev mailing list
>> Goodies-dev at xfce.org
>> http://foo-projects.org/mailman/listinfo/goodies-dev
>
> _______________________________________________
> Goodies-dev mailing list
> Goodies-dev at xfce.org
> http://foo-projects.org/mailman/listinfo/goodies-dev
More information about the Goodies-dev
mailing list