DPMSEnable(3)

✨ DPMSEnable(3) ✨

okay bestie, gather round, because we're talking about a lil X FUNCTION from the libXext corner of the universe and it's honestly so much cuter than it sounds πŸ’–


πŸŽ€ NAME πŸŽ€

DPMSEnable β€” turns DPMS on for the display you point at. that's it. that's the whole job. slay.


🌸 SYNOPSIS 🌸

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

Status DPMSEnable ( Display *display );

like yes, you compile it with cc, you pass whatever flag ... and file ... and library ... you need, you link -lXext, you pull in the header, and you call it. no cap. ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • display β€” the connection to the X server. that's the vibe you're handing over, bestie, and it's the only thing this function wants from you πŸ’…

πŸ‘‘ DESCRIPTION πŸ‘‘

so the DPMSEnable function enables Display Power Management Signaling (DPMS) on the specified display. lowkey iconic of it.

when DPMS is enabled, DPMS will use the currently saved timeout values. then it will trigger the appropriate DPMS power level based on those timeout values. (if you're like "wait, timeout values??" β€” go read DPMSSetTimeouts. iykyk 🫢)

and here's the detail that matters: all physical screens are affected by DPMSEnable at the same time. every single one. it's giving main character energy, it does not do partial. πŸ”₯

🫠 okay now the caveat, and it's important: if DPMSEnable is invoked on a display which has DPMS already enabled, or on a display which does not support DPMS, then no change is made and no error is returned. so it just… shrugs. silently. no drama, no error code, nothing. πŸ’€

⭐ RETURN VALUES ⭐

  • TRUE β€” the DPMSEnable function always returns TRUE. always. every time. no exceptions, no plot twists, no surprises. periodt. πŸ’–

🌈 SEE ALSO 🌈


and that's the whole page, bestie!! 🧚 this little gem lives in X Version 11, shipping with libXext 1.3.6, and the header at the top of the original was literally just DPMSEnable(3) chillin' under the X FUNCTIONS banner β€” so now you know exactly where it came from. go forth and enable some power management, you absolute legend πŸ‘‘βœ¨πŸ’œ

πŸ“¦ where this page comes from