DPMSDisable(3)

✨ DPMSDisable(3) β€” X FUNCTIONS ✨

okay bestie, gather round, because we're talking about DPMSDisable from the X FUNCTIONS section of the manual, and honestly? it's giving "one job, does it perfectly" πŸ’…


🌸 NAME 🌸

DPMSDisable β€” disables DPMS on the specified display 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

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

Status DPMSDisable ( Display *display );

πŸŽ€ ARGUMENTS πŸŽ€

  • display β€” the connection to the X server, obviously πŸ’– this is how you tell it which display we're talking to.

πŸ‘‘ DESCRIPTION πŸ‘‘

so the DPMSDisable function disables Display Power Management Signaling β€” that's DPMS for short, iykyk β€” on the display you passed in. ✨

when it's disabled, DPMS sets the display to DPMSModeOn. that's the whole vibe. screen stays on, no power-saving shenanigans, main character energy only. πŸ”₯

now here's the chill part: if you invoke DPMSDisable on a display where DPMS is already disabled, or on a display that doesn't even support DPMS at all? nothing happens. no change is made, and no error is returned. it's just like. okay cool, moving on. no drama, no crash, no nothing. 😌 literally the most unbothered function in the whole library.


πŸ’œ RETURN VALUES πŸ’œ

  • TRUE β€” the DPMSDisable function always returns TRUE. every single time. no cap. it does not have a bad day, it does not have an off day, it is simply always TRUE. iconic behaviour honestly πŸ‘‘

🌈 SEE ALSO 🌈

go read those too bestie, they're the rest of the DPMS friend group 🫢


and that's the whole page, fr fr πŸ’– this one shipped with X Version 11, libXext 1.3.6 β€” mwah, slay, go turn off your power management the responsible way πŸ’…βœ¨

πŸ“¦ where this page comes from