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 β€” The DPMSInfo function returns TRUE, if values are returned. πŸŽ‰
  • FALSE β€” The DPMSInfo function returns FALSE, 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