xcb_dpms_get_timeouts(3)
πΈ xcb_dpms_get_timeouts(3) πΈ
okay bestie, welcome to the XCB Requests corner of the manual, page xcb_dpms_get_timeouts(3) π this one's about asking the X server what your screen's power-saving timeouts are set to. short page, but we're gonna treat it with the respect it deserves. periodt.
β¨ NAME β¨
xcb_dpms_get_timeouts β and honestly? that's it. the manpage leaves the description blank, so no cap, the name is doing all the heavy lifting here π«Ά
β¨ SYNOPSIS β¨
first things first, you gotta bring in the header:
#include <xcb/dpms.h>
π Request function
xcb_dpms_get_timeouts_cookie_t
xcb_dpms_get_timeouts(xcb_connection_t *conn,
yes the trailing comma is really there. i don't make the rules, i just transcribe them π
π Reply datastructure
this is the lil struct you get back, verbatim, no edits, iconic:
typedef struct xcb_dpms_get_timeouts_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint16_t standby_timeout;
uint16_t suspend_timeout;
uint16_t off_timeout;
uint8_t pad1[18];
} xcb_dpms_get_timeouts_reply_t;
π Reply function
xcb_dpms_get_timeouts_reply_t
*xcb_dpms_get_timeouts_reply(xcb_connection_t *conn,
xcb_dpms_get_timeouts_cookie_t cookie, xcb_generic_error_t **e);
β¨ REQUEST ARGUMENTS β¨
connβ the XCB connection to X11. your lil phone line to the server, basically π
β¨ REPLY FIELDS β¨
let's unpack this reply like it's a group chat screenshot π
response_typeβ the type of this reply, and in this specific case it'sXCB_DPMS_GET_TIMEOUTS. this field is also chillin' insidexcb_generic_reply_t, and you can use it to tell replies apart from each other. it's the name tag at the party π·οΈsequenceβ the sequence number of the last request processed by the X11 server. keeping track, as she should πlengthβ the length of the reply, in words (and a word is 4 bytes, bestie, don't forget).standby_timeoutβ TODO: NOT YET DOCUMENTED. π we know nothing. it's a mystery. a little enigma. the docs simply did not show up.suspend_timeoutβ TODO: NOT YET DOCUMENTED. π same vibe, same void.off_timeoutβ TODO: NOT YET DOCUMENTED. π three for three, the documentation is on vacation.
β¨ DESCRIPTION β¨
...it's empty. that's the whole thing. the description section is giving minimalism, giving silence, giving "we said what we said" π¦ nothing to add, nothing to summarize β that's literally all the original has, so that's all you get.
β¨ RETURN VALUE β¨
you get back an xcb_dpms_get_timeouts_cookie_t πͺ β yes, a cookie, that's the actual name, we love a themed API.
and listen: errors have to be handled when you call the reply function xcb_dpms_get_timeouts_reply.
but if you'd rather handle errors in the event loop instead? use xcb_dpms_get_timeouts_unchecked π« and if you want the whole tea on how that works, go read xcb-requests(3).
β¨ ERRORS β¨
this request does never generate any errors. not a single one. zero. flawless. no drama. π
β¨ SEE ALSO β¨
also empty, bestie. nothing linked, nothing referenced. it's just you and this page. romantic, honestly π
β¨ AUTHOR β¨
generated from dpms.xml π and if you spot something wrong or wanna make it better, hit up xcb@lists.freedesktop.org for corrections and improvements π
and that's the whole page, bestie!! πβ¨ this was X Version 11, libxcb 1.17.0, and we read it together like the little Unix girlies we are π§ββοΈ slay, bye ππ
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms