X FUNCTIONS DPMSForceLevel(3xext)
NAME
DPMSForceLevel - forces a DPMS capable display into the
specified power levelSYNOPSIS
cc [ flag... ] file... -lXext [ library... ]
cc [ flag ... ] file ... -lXext [ library ... ]
#include
Status DPMSForceLevel ( Display *display, CARD16 level );
ARGUMENTS display Specifies the connection to the X server level Specifies the level to force power toDESCRIPTION
The DPMSForceLevel function forces a DPMS capable display
into the specified power level. The level must be one offollowing four states: DPMSModeOn, DPMSModeStandby, DPMSMo-
deSuspend, or DPMSModeOff. Values other than these will result in a BadValue error. If DPMS is disabled on the display, trying to set the power level on the display will result in a BadMatch protocol error.RETURN VALUES
TRUE The DPMSForceLevel function always returns
TRUE.ERRORS
BadValue A level other than DPMSModeOn, DPMSMode-
Standby, DPMSModeSuspend, or DPMSModeOff was specified. BadMatch DPMS is disabled on the specified display.SEE ALSO
DPMSCapable(3xext), DPMSInfo(3xext), DPMSGetTimeouts(3xext), DPMSSetTimeouts(3xext)ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes: X Version 11 Last change: libXext 1.1.2 1X FUNCTIONS DPMSForceLevel(3xext)
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | x11/library/libxext ||_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | See XInitThreads(3X11) |
|_____________________________|_____________________________|
X Version 11 Last change: libXext 1.1.2 2