Re: [AD] Disable screensaver

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2008-11-06, Thomas Fjellstrom <tfjellstrom@xxxxxxxxxx> wrote:
> On Thursday 06 November 2008, Peter Wang wrote:
> > Instead, we could move all that junk into a shell script that Allegro
> > calls.  When al_inhibit_screensaver() is first called, we call the shell
> > script to detect which screensaver program is in use, which it returns
> > via the exit code.  Then, periodically, we'll call the shell script with
> > the detected screensaver program as an argument, whose job it is to do
> > the equivalent of XResetScreenSaver() for whatever piece of crap is
> > running.  If we detect no piece of crap running, we can just call
> > XResetScreenSaver().
> >
> > Peter
> 
> I'm not sure what you mean by the "native" screensaver. The little moving X 
> logo? or DPMS?

The screen blanking built into the X server that you control with the
"xset" utility.

Note: apparently the KDE screensaver respects XResetScreenSaver() just
fine as of 3.5.9.  Good on them!

Peter





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/