drm_self_re..._alter_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

drm_self_refresh_helper_alter_state β€” bestie, this one alters the atomic state for SR exit πŸ’…

(also yes, the manual is named drm_self_re..._alter_state(9) because the full name simply would not fit and the kernel is dramatic like that)


🌸 SYNOPSIS 🌸

void drm_self_refresh_helper_alter_state (struct drm_atomic_commit
*state );

πŸŽ€ ARGUMENTS πŸŽ€

  • state β€” the state currently being checked πŸ‘€ like, the atomic commit state we're looking at right now, that's the one

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: this function gets called at the end of atomic check. It goes through the state, looks for flags that are incompatible with self refresh exit, and changes them. That's the whole vibe check right there.

And yeah, ngl, it's a bit disingenuous 😭 β€” like, userspace is expecting one thing and we're giving it another. Kinda shady! But the reason is legit: to keep self refresh entirely hidden from userspace, this is required. No cap, it's literally mandatory. Periodt.

Then at the end, we queue up the self refresh entry work so we can enter PSR after the desired delay ✨ (PSR = panel self refresh, iykyk, and it enters after the delay you wanted, not before, we're not animals)

πŸ’€ friendly reminder from the manpage: this function will change your flags. That's not a bug, that's the assignment. It's giving "trust me bestie" energy.

πŸ‘‘ SEE ALSO πŸ‘‘


πŸŽ€ okay that's the whole page bestie, go forth and alter those states πŸŽ€

This icon of a manpage lives in ./drivers/gpu/drm and was stamped October 2026 β€” yeah, the future, main character energy fr fr πŸ’œβœ¨

πŸ“¦ where this page comes from