[Portland] Re: screensaver and power manager dbus interfaces

William Jon McCann mccann at jhu.edu
Thu Jun 1 07:22:08 PDT 2006


Hi David,

David Zeuthen wrote:
> 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.

Oh right Waldo asked for a use case.  :)
Yes, your example is a good one.

Thanks,
Jon


More information about the Portland mailing list