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 β€” the DPMSCapable function returns True if the X server is capable of DPMS. πŸ‘‘
  • False β€” the DPMSCapable function returns True if the X server is incapable of DPMS. πŸ™ˆ
okay so NOT me noticing that the False entry also says True up 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 says False and the sentence says True, 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