DPMSInfo(3)
π DPMSInfo β the X FUNCTIONS girlie of the manual pages π
okay so bestie, gather round, because today we're learning about DPMSInfo from the X FUNCTIONS section of the manual (that's manual page 3, for the uninitiated π«Ά). it tells you literally everything about what your display is doing right now power-wise. no cap.
β¨ NAME β¨
DPMSInfo β returns information about the current DPMS state π
πΈ SYNOPSIS πΈ
cc [ flag ... ] file ... -lXext [ library ... ]
#include <X11/extensions/dpms.h>
Status DPMSInfo
(
Display *display,
CARD16 *power_level,
BOOL *state
);
π ARGUMENTS π
displayβ Specifies the connection to the X server πpower_levelβ Specifies the current power level β‘stateβ Specifies the current DPMS state π¦
π DESCRIPTION π
so the DPMSInfo function returns information about the current Display Power Management Signaling (DPMS) state. that's the whole vibe, that's the assignment, and it ate. β¨
the state return parameter is the one telling you whether DPMS is enabled (TRUE) or disabled (FALSE). she's giving yes-or-no, on-or-off, main character energy.
the power_level return parameter tells you the current power level, which is one of DPMSModeOn, DPMSModeStandby, DPMSModeSuspend, or DPMSModeOff. four moods, one display, we love to see it. π
β RETURN VALUES β
TRUEβ TheDPMSInfofunction returnsTRUE, if values are returned. πFALSEβ TheDPMSInfofunction returnsFALSE, if no values are returned. π
π SEE ALSO π
and that's the whole page, bestie. this one's from X Version 11, rocking libXext 1.3.6 β go forth and check your power levels responsibly ππΈπ¦ periodt β¨
π¦ where this page comes from
- alpine 3.22: libxext-doc 1.3.6-r2 Β· MIT
- alpine 3.23: libxext-doc 1.3.6-r2 Β· MIT
- centos-stream 10: libXext-devel 1.3.6-3.el10 Β· MIT-open-group AND X11 AND HPND AND HPND-sell-variant AND SMLNJ AND MIT AND ISC AND HPND-doc AND HPND-doc-sell
- fedora 43: libXext-devel 1.3.6-4.fc43 Β· MIT-open-group AND X11 AND HPND AND HPND-sell-variant AND SMLNJ AND MIT AND ISC AND HPND-doc AND HPND-doc-sell
- fedora 43: libXext-devel 1.3.6-4.fc43 Β· MIT-open-group AND X11 AND HPND AND HPND-sell-variant AND SMLNJ AND MIT AND ISC AND HPND-doc AND HPND-doc-sell
- fedora 44: libXext-devel 1.3.6-5.fc44 Β· MIT-open-group AND X11 AND HPND AND HPND-sell-variant AND SMLNJ AND MIT AND ISC AND HPND-doc AND HPND-doc-sell
- fedora 44: libXext-devel 1.3.6-5.fc44 Β· MIT-open-group AND X11 AND HPND AND HPND-sell-variant AND SMLNJ AND MIT AND ISC AND HPND-doc AND HPND-doc-sell
- opensuse-leap 16.0: libXext-devel 1.3.6-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXext-devel 1.3.6-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXext-devel 1.3.6-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXext-devel 1.3.6-160000.3.2 Β· MIT
- Copyright (c) 1999, 2005, Oracle and/or its affiliates
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms