[Lazarus] "Defeating" a screen saver

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Tue Sep 25 16:03:41 CEST 2012

Graeme Geldenhuys wrote:
> On 2012-09-25 11:55, Mark Morgan Lloyd wrote:
>> stringgrid with an updating field on the screen, I've not yet tried e.g.
>> simulating a shiftkey event.
> Another option.  From the 'man xscreensaver-command' output.
> -----------------------------
>   -deactivate
> This tells xscreensaver to pretend that there has just been user 
> activity.  This means that if the  screensaver is  active  (the  screen 
>  is blanked), then this command will cause the screen to un-blank as if 
> there had been keyboard or mouse activity.  If the screen is locked, 
> then the password dialog will pop up first, as usual.  If the  screen 
> is  not  blanked,  then  this simulated user activity will re-start the 
> countdown (so, issuing the -deactivate command periodically is one way 
> to prevent the screen from blanking.)
> -----------------------------
> But then I don't know if this applies to kde-screensaver and 
> gnome-screensaver too, even though they are forks of xscreensaver.

Thanks for that, interesting. I've certainly had problems getting 
screensaver+powerdown to work properly in the past, which I tracked down 
to different configuration requirements for the X and KDE 
implementations (specifically, IIRC, the X server had to be told not to 
do various things to give KDE a chance).

Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

More information about the Lazarus mailing list