DPMSCapable(3)
π« DPMSCapable(3) β the "can ur X server even do DPMS tho" check π«
okay bestie, welcome to X FUNCTIONS, specifically the page for DPMSCapable(3). it's short, it's sweet, it's one whole question and one whole answer. we love a low-effort icon. π
β¨ NAME β¨
DPMSCapable β returns the DPMS capability of the X server πΈ
like. literally just that. it asks the X server "hey girl, do u do DPMS?" and the X server is like "yeah" or "no". that's the whole plot. no cap.
β¨ SYNOPSIS β¨
cc [ flag ... ] file ... -lXext [ library ... ]
#include <X11/extensions/dpms.h>
Bool DPMSCapable ( Display *display );
so you link against -lXext, you pull in <X11/extensions/dpms.h>, and you call it with a Display *. three steps. slay. π
β¨ ARGUMENTS β¨
displayβ the connection to the X server. that's the whole list bestie, one (1) argument, she's low maintenance. π«Ά
β¨ DESCRIPTION β¨
so DPMSCapable returns the Display Power Management Signaling (DPMS) capability of the X server. and because it's a Bool, you get exactly two possible vibes:
TRUEβ capable of DPMS π₯FALSEβ incapable of DPMS π
that's it. that's the function. she doesn't set anything, she doesn't negotiate, she just tells you whether the server can do the DPMS thing. vibe check complete. β¨
β¨ RETURN VALUES β¨
Trueβ theDPMSCapablefunction returnsTrueif the X server is capable of DPMS. πFalseβ theDPMSCapablefunction returnsTrueif the X server is incapable of DPMS. π
okay so NOT me noticing that theFalseentry also saysTrueup there π bestie i am reporting the text exactly as the original page wrote it, character for character, because that's the rule and we do not touch the sacred manpage text. i'm just saying. i'm just saying. read it twice, king. the header of that bullet saysFalseand the sentence saysTrue, and both of those facts are in the original and both of those facts are now in here. iykyk. π
π¦ TL;DR π¦
one function, one Display *, one Bool out. TRUE means the server is DPMS-capable, FALSE means it isn't, and the return-value section is out here living its own chaotic main-character life. iconic behaviour, honestly. β
and that's the whole page, bestie!! this was pulled from X Version 11, libXext 1.3.6, and the page itself is dated DPMSCapable(3). go forth and check ur DPMS capability, u absolute legend. ππ
π¦ 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