xcb_randr_set_crtc_config(3)
β¨ xcb_randr_set_crtc_config π
okay bestie, we're diving into the XCB Requests corner of the manual, page xcb_randr_set_crtc_config(3), and honestly? this one is giving "screen glow-up" energy. it's how you tell the X server how to set up a CRTC. slay.
πΈ NAME πΈ
xcb_randr_set_crtc_config β (yeah, the original just leaves this blank, no cap, not a single word of description. iconic of them honestly.) π
β¨ SYNOPSIS β¨
first up, the include, as always:
#include <xcb/randr.h>
π Request function π
xcb_randr_set_crtc_config_cookie_t
xcb_randr_set_crtc_config(xcb_connection_t *conn,
xcb_randr_crtc_t crtc, xcb_timestamp_t timestamp,
xcb_timestamp_t config_timestamp, int16_t x, int16_t y,
xcb_randr_mode_t mode, uint16_t rotation, uint32_t outputs_len,
const xcb_randr_output_t *outputs);
π Reply datastructure π
typedef struct xcb_randr_set_crtc_config_reply_t {
uint8_t response_type;
uint8_t status;
uint16_t sequence;
uint32_t length;
xcb_timestamp_t timestamp;
uint8_t pad0[20];
} xcb_randr_set_crtc_config_reply_t;
π Reply function π
xcb_randr_set_crtc_config_reply_t
*xcb_randr_set_crtc_config_reply(xcb_connection_t *conn,
xcb_randr_set_crtc_config_cookie_t cookie,
xcb_generic_error_t **e);
π¦ REQUEST ARGUMENTS π¦
connβ your XCB connection to X11. the main character, the plug, the whole reason we're here. π«ΆcrtcβTODO: NOT YET DOCUMENTED.(the docs really said "figure it out bestie" π)timestampβTODO: NOT YET DOCUMENTED.config_timestampβTODO: NOT YET DOCUMENTED.xβTODO: NOT YET DOCUMENTED.yβTODO: NOT YET DOCUMENTED.modeβTODO: NOT YET DOCUMENTED.rotationβTODO: NOT YET DOCUMENTED.outputs_lenβTODO: NOT YET DOCUMENTED.outputsβTODO: NOT YET DOCUMENTED.
like... they left the whole menu blank, we're ordering blind, but we still copy every line exactly, periodt. π
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_RANDR_SET_CRTC_CONFIG. this field is also chillin' insidexcb_generic_reply_t, so you can use it to tell your replies apart from each other. lowkey the social security number of replies.sequenceβ the sequence number of the last request processed by the X11 server. it's giving "receipt number". π§Ύlengthβ the length of the reply, in words (and a word is4bytes, keep that in your notes bestie). β¨statusβTODO: NOT YET DOCUMENTED.timestampβTODO: NOT YET DOCUMENTED.
π DESCRIPTION π
(the original leaves this section completely empty. yes, truly. nothing. void. the silence is deafening. πΈ)
π RETURN VALUE π
it hands you back an xcb_randr_set_crtc_config_cookie_t. πͺ
errors? you gotta handle those yourself when you call the reply function xcb_randr_set_crtc_config_reply.
and if you'd rather catch errors in the event loop instead β very valid, very "I'll deal with it when it arrives" of you β use xcb_randr_set_crtc_config_unchecked. peep xcb-requests(3) for all the deets. π
π ERRORS π
this request does never generate any errors. zero. none. clean run, no drama, we love a low-maintenance request. β¨
π SEE ALSO π
(the original section is empty, so there's literally nothing to reference here. we respect the emptiness.)
π AUTHOR π
Generated from randr.xml. π Contact xcb@lists.freedesktop.org for corrections and improvements β they're literally asking for your notes, so don't be shy.
and that's the whole page, bestie!! π this gorgeous little number comes to you from X Version 11, libxcb 1.17.0, and it's filed under xcb_randr_set_crtc_config(3). go configure a CRTC and be iconic about it. mwah. ππ
β¨
π¦ 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