xcb_randr_add_output_mode(3)
π xcb_randr_add_output_mode β the XCB Requests manual, bestie edition β¨
okay so you're here because you want to add a mode to an output in RandR, and the manual page for it is... a little sparse. not me reading it. anyway, this is xcb_randr_add_output_mode(3) from the XCB Requests crew, and we're gonna walk through every single crumb of it together. no crumbs left behind. π
πΈ NAME πΈ
xcb_randr_add_output_mode β literally the function that adds an output mode. that's it. that's the name section. the original left it blank after the dash, and honestly? we respect the mystery. π
π¦ SYNOPSIS π¦
first things first, you gotta pull in the header:
#include <xcb/randr.h>
β¨ Request function β¨
here's the main character herself:
xcb_void_cookie_t xcb_randr_add_output_mode(xcb_connection_t *conn,
xcb_randr_output_t output, xcb_randr_mode_t mode);
she returns an xcb_void_cookie_t and takes three args. slay. π
π REQUEST ARGUMENTS π
one bullet per argument, no gatekeeping:
connβ your XCB connection to X11. your link to the mothership, the little thread connecting you to the display server. hold her gently. π«Άoutputβ the original literally says TODO: NOT YET DOCUMENTED. so like... we don't know. ngl the manpage is keeping secrets from us. πmodeβ same energy, bestie. TODO: NOT YET DOCUMENTED. the lore is unfinished. π
not me documenting a manpage that refuses to document itself. iconic behaviour honestly.
π DESCRIPTION π
okay so this section is... empty. nothing. a void. the original has the heading and then just vibes. the way that i cannot add a single technical claim here without inventing it β periodt. so we sit in the silence together. π§
π RETURN VALUE π
she returns an xcb_void_cookie_t. that's your little receipt for the request. π
here's the important part though: errors (if any) have to be handled in the event loop. you don't get them handed to you directly, you gotta go find them.
but wait β if you'd rather handle errors directly with xcb_request_check instead, use xcb_randr_add_output_mode_checked. π
and for the full deets, go read xcb-requests(3). iykyk.
π₯ ERRORS π₯
this request does never generate any errors.
like, at all. zero. none. a clean slate, a flawless queen. π β¨
β SEE ALSO β
the original lists... nothing. no references, no cross-links, no little friends to visit. we love a lone wolf. πΊ (well β except xcb-requests(3) up in RETURN VALUE, which you already met.)
π AUTHOR π
Generated from randr.xml. if you spot something wrong and want to help make it better, contact xcb@lists.freedesktop.org for corrections and improvements. they're literally asking for your help, bestie. go be the change. πΈ
and that's the whole page!! thank you for coming to my ted talk. this was xcb_randr_add_output_mode(3) from X Version 11, shipped with libxcb 1.17.0. stay hydrated, read your cookies, and go handle those errors in the event loop. 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