DPMSInfo(3) X Version 11 DPMSInfo(3)

# [NAME](#NAME)

DPMSInfo - returns information about the current DPMS state

# [SYNOPSIS](#SYNOPSIS)

```
cc [ flag ... ] file ... -lXext [ library ... ]
#include <X11/extensions/dpms.h>

Status DPMSInfo (


      Display *display,


      CARD16 *power_level,


      BOOL *state
);
```

# [ARGUMENTS](#ARGUMENTS)

[*display*](#display)

Specifies the connection to the X server

[*power\_level*](#power_level)

Specifies the current power level

[*state*](#state)

Specifies the current DPMS state

# [DESCRIPTION](#DESCRIPTION)

The **DPMSInfo** function returns information about the current Display Power Management Signaling (DPMS) state. The *state* return parameter indicates whether or not DPMS is enabled (TRUE) or disabled (FALSE). The *power\_level* return parameter indicates the current power level (one of **DPMSModeOn**, **DPMSModeStandby**, **DPMSModeSuspend**, or **DPMSModeOff**.)

# [RETURN VALUES](#RETURN_VALUES)

[**TRUE**](#TRUE)

The *DPMSInfo* function returns TRUE, if values are returned.

[**FALSE**](#FALSE)

The *DPMSInfo* function returns FALSE, if no values are returned.

# [SEE ALSO](#SEE_ALSO)

[**DPMSEnable**(3)](/man/os/libxext/DPMSEnable.3)

2005-06-28 libXext 1.3.7

---

Document: DPMSInfo(3) from libxext 1.3.7-r5 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libxext.git
