screensaver and power manager dbus interfaces
David Zeuthen
david at fubar.dk
Thu Jun 1 15:12:58 BST 2006
On Thu, 2006-06-01 at 10:07 -0400, William Jon McCann wrote:
> Hi Waldo,
>
> Bastian, Waldo wrote:
> > The screensaver interface looks good. What is the use case for the
> > "Poke" method?
>
> The Poke method is a way to simulate user input. It is the programmatic
> equivalent to moving the mouse back and forth or hitting the Shift key
> or something. If the screensaver is activated and the lock is enabled
> then it will prompt for authentication. If the screensaver is activated
> and the lock is disabled then it will deactivate the screensaver. If
> the screensaver is not active (ie. blanked) then it will reset the idle
> timers.
Notably this is used by gnome-power-manager when resuming from a suspend
state, yes?
For example, the user opens the laptop lid (and is careful not to hit
the keyboard or mouse), g-p-m gets notified and pokes the screensaver
and either the session comes back (if lock is disabled) or the unlock
dialog is shown. Without the poke this probably wouldn't happen.
David
More information about the kde-core-devel
mailing list