dmxdpms.c File Reference

#include "dmx.h"
#include "dmxdpms.h"
#include "dmxlog.h"
#include "dmxsync.h"
#include "windowstr.h"
#include <X11/extensions/dpms.h>

Functions

static void _dmxDPMSInit (DMXScreenInfo *dmxScreen)
void dmxDPMSInit (DMXScreenInfo *dmxScreen)
void dmxDPMSTerm (DMXScreenInfo *dmxScreen)
void dmxDPMSWakeup (void)

Variables

static unsigned long dpmsGeneration = 0
static Bool dpmsSupported = TRUE

Detailed Description

Provides DPMS support and unifies all DPMS and other screen-saver support in one file. If -dpms is given on the command line, or the Xdmx server is not compiled with DPMS support, then the DPMS extension does not work for clients, but DPMS on the backends is still disables (and restored at Xdmx server shutdown time).


Function Documentation

static void _dmxDPMSInit ( DMXScreenInfo dmxScreen  )  [static]
void dmxDPMSInit ( DMXScreenInfo dmxScreen  ) 

Initialize DPMS support. We save the current settings and turn off DPMS. The settings are restored in dmxDPMSTerm.

References _dmxDPMSInit(), _DMXScreenInfo::beDisplay, dmxSync(), and _DMXScreenInfo::savedTimeout.

Referenced by dmxBEScreenInit().

void dmxDPMSTerm ( DMXScreenInfo dmxScreen  ) 
void dmxDPMSWakeup ( void   ) 

Called when activity is detected so that DPMS power-saving mode can be deactivated.


Variable Documentation

unsigned long dpmsGeneration = 0 [static]

Referenced by _dmxDPMSInit().

Bool dpmsSupported = TRUE [static]

Referenced by _dmxDPMSInit().


Generated June 29, 2004 for Distributed Multihead X by doxygen 1.3.4.