1DPMSInfo(3) X FUNCTIONS DPMSInfo(3)
2
3
4
6 DPMSInfo - returns information about the current DPMS state
7
9 cc [ flag ... ] file ... -lXext [ library ... ]
10 #include <X11/extensions/dpms.h>
11
12 Status DPMSInfo
13 (
14 Display *display,
15 CARD16 *power_level,
16 BOOL *state
17 );
18
20 display
21 Specifies the connection to the X server
22
23 power_level
24 Specifies the current power level
25
26 state Specifies the current DPMS state
27
29 The DPMSInfo function returns information about the current Display
30 Power Management Signaling (DPMS) state. The state return parameter
31 indicates whether or not DPMS is enabled (TRUE) or disabled (FALSE).
32 The power_level return parameter indicates the current power level (one
33 of DPMSModeOn, DPMSModeStandby, DPMSModeSuspend, or DPMSModeOff.)
34
36 TRUE The DPMSInfo function returns TRUE, if values are
37 returned.
38
39 FALSE The DPMSInfo function returns FALSE, if no values are
40 returned.
41
43 DPMSEnable(3)
44
45
46
47X Version 11 libXext 1.1.2 DPMSInfo(3)