locking screen on suspend
Ali Abdallah
aliov at xfce.org
Sun Feb 20 16:19:28 CET 2011
From a script you can do the following:
dbus-send --system --print-reply --dest=org.freedesktop.UPower
/org/freedesktop/UPower org.freedesktop.UPower.*
Replace * with Hibernate or Suspend; so before doing the above command
you can lock your screen then call it.
On thing also important to do before suspend/hibernating is:
dbus-send --system --print-reply --dest=org.freedesktop.NetworkManager
/org/freedesktop/NetworkManager org.freedesktop.NetworkManager.sleep
Regards,
Ali
On 02/20/2011 04:10 PM, Jonathan Stott wrote:
> On 20 February 2011 13:19, Ali Abdallah<aliov at xfce.org> wrote:
>> On 02/20/2011 12:46 PM, Jonathan Stott wrote:
>>> When I tell the session to suspend via the log out dialog, it
>>> suspends, but doesn't lock the screen. What configuration do I need
>>> to enable to have the session suspend honour those settings?
>> There is no way to lock the screen from the log out dialog, this issue will
>> be addressed in future xfce releases by having a wide configuration between
>> the power manager and the session manager.
> Ah, thanks for the quick response.
>
> Is there some way I can call suspend from a script, so I can at least
> make a suspend button for the panel? The application page on
> goodies.xfce.org mentions that there is a dbus interface, but doesn't
> give any details on it.
>
> Regards
> Jon
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> http://foo-projects.org/mailman/listinfo/xfce
> http://www.xfce.org
More information about the Xfce
mailing list