dc_stream_adjust_vmin_vmax(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dc_stream_adjust_vmin_vmax(9)

okay so bestie, welcome to the Kernel API Manual ✨ this one's about dc_stream_adjust_vmin_vmax and honestly it's giving "small function, big power-savings energy" πŸ”‹πŸ’–


🌸 NAME 🌸

dc_stream_adjust_vmin_vmax β€” look up the pipe context and update parts of DRR πŸŽ€


✨ SYNOPSIS ✨

bool dc_stream_adjust_vmin_vmax (struct dc *dc , struct dc_stream_state
*stream , struct dc_crtc_timing_adjust *adjust );

literally the whole signature, copy-pasted with love 🫢 returns a bool, takes three pointers, we move πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dc β€” your dc reference, the main character of the whole display subsystem πŸ‘‘
  • stream β€” the initial dc_stream_state, aka the stream we're about to poke at 🌈
  • adjust β€” the updated parameters for vertical_total_min and vertical_total_max, the actual new numbers going in πŸ“₯

πŸ’œ DESCRIPTION πŸ’œ

So what it does, fr fr: it looks up the pipe context of the dc_stream_state 🧚 and then updates the vertical_total_min and vertical_total_max of the DRR β€” that's Dynamic Refresh Rate, no cap β€” which is a power-saving feature πŸ“ the whole point of DRR is targeting a lower panel refresh rate while the screen is static, so your battery doesn't get absolutely drained for no reason 😭✨

it's giving "quietly iconic efficiency move" honestly πŸ’…


⭐ RETURN ⭐

  • true β†’ the pipe context was found and adjusted, slay βœ…
  • false β†’ the pipe context was not found, and it returns false πŸ™ˆ (nothing adjusted, bestie, vibe check failed πŸ’€)

πŸ”₯ SEE ALSO πŸ”₯

like, that's a whole friend group right there 😭 go read them too iykyk πŸ’–


and that's the page! 🌸 source: ./drivers/gpu/drm/amd/display/..., dated October 2026, and it's dc_stream_adjust_vmin_vmax(9) β€” love that for us, mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from