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 in‐
31 dicates whether or not DPMS is enabled (TRUE) or disabled (FALSE). The
32 power_level return parameter indicates the current power level (one of
33 DPMSModeOn, DPMSModeStandby, DPMSModeSuspend, or DPMSModeOff.)
34
36 TRUE The DPMSInfo function returns TRUE, if values are re‐
37 turned.
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.3.5 DPMSInfo(3)