drm_mode_set_crtcinfo(9)
π drm_mode_set_crtcinfo(9) π
okay bestie, welcome to the Kernel API Manual page for drm_mode_set_crtcinfo β yes, that whole name, we love her. This is the one that sets up your CRTC modesetting timing parameters, and I'm gonna walk you through it like we're in the group chat. π
β¨ NAME β¨
drm_mode_set_crtcinfo β set CRTC modesetting timing parameters.
π SYNOPSIS π
void drm_mode_set_crtcinfo (struct drm_display_mode *p , int
adjust_flags );
π ARGUMENTS π
pβ the mode. like, thestruct drm_display_mode *you're working on, bestie.adjust_flagsβ a combination of adjustment flags. a little combo of flags that tell it how to adjust.
π« DESCRIPTION π«
okay so the whole vibe is: this sets up the CRTC modesetting timing parameters for p, and it adjusts them if necessary. no cap, that's the job. π«Ά
Here are the flags doing their little iconic things:
CRTC_INTERLACE_HALVE_Vβ this flag can be used to halve the vertical timings of interlaced modes. it's giving half, but specifically for vertical timings, iykyk.CRTC_STEREO_DOUBLEβ this flag can be used to compute the timings for buffers containing two eyes. only adjust the timings when needed, eg. for"frame packing"or"side by side full". two eyes, one timing situation, slay. πCRTC_NO_DBLSCANandCRTC_NO_VSCANβ these flags request that adjustment not be performed fordoublescanandvscan > 1modes respectively. so yeah, respectfully, do not adjust those. periodt. π
π SEE ALSO π
Kernel file ./drivers/gpu/drm/drm_modes.c β that's where the code lives, bestie. go look, it's giving main character energy.
drm_mode_debug_printmodeline(9)drm_mode_create(9)drm_mode_destroy(9)drm_mode_probed_add(9)drm_analog_tv_mode(9)drm_cvt_mode(9)drm_gtf_mode_complex(9)drm_gtf_mode(9)drm_display_mode_from_videomode(9)drm_display_mode_to_videomode(9)drm_bus_flags_from_videomode(9)of_get_drm_display_mode(9)of_get_drm_panel_display_mode(9)drm_mode_set_name(9)drm_mode_vrefresh(9)drm_mode_get_hv_timing(9)drm_mode_copy(9)drm_mode_init(9)drm_mode_duplicate(9)drm_mode_match(9)drm_mode_equal(9)drm_mode_equal_no_clocks(9)drm_mode_equal_no_clocks_no_stereo(9)drm_mode_validate_driver(9)drm_mode_validate_size(9)drm_mode_validate_ycbcr420(9)drm_mode_prune_invalid(9)drm_mode_compare(9)drm_mode_sort(9)drm_connector_list_update(9)drm_mode_parse_command_line_for_connector(9)drm_mode_create_from_cmdline_mode(9)drm_mode_convert_to_umode(9)drm_mode_convert_umode(9)drm_mode_is_420_only(9)drm_mode_is_420_also(9)drm_mode_is_420(9)drm_set_preferred_mode(9)
mwah π signing off from ./drivers/gpu/drm, October 2026, with all the drm_mode_set_crtcinfo(9) energy β bye bestie! π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms