drm_client_modeset_dpms(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– drm_client_modeset_dpms(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual entry for drm_client_modeset_dpms β€” yes that's a whole mouthful, we're calling her the "Set DPMS mode" girlie from here on out ✨


🌸 NAME 🌸

drm_client_modeset_dpms β€” Set DPMS mode, that's the whole vibe πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int drm_client_modeset_dpms (struct drm_client_dev *client , int mode );

like, it takes a client and a mode and hands you back an int. simple. iconic. no notes πŸ’…


✨ ARGUMENTS ✨

  • client β€” the DRM client, aka the whole reason we're here 🫢
  • mode β€” the DPMS mode you want to set, bestie 🌈

πŸ’œ NOTE πŸ’œ

okay so listen up, this one matters: for atomic drivers, mode gets reduced to on/off. that's it, that's the note, no in-between, binary queen energy πŸ‘‘βœ¨


⭐ RETURN ⭐

  • Zero on success πŸŽ‰
  • a negative error code on failure 😭

fr fr, check it. don't just assume it slayed.


πŸ”₯ SEE ALSO πŸ”₯

like the whole friend group, honestly πŸ§šπŸ’–


and that's the page, bestie πŸŽ€ she lives in ./drivers/gpu/drm, dated October 2026 in this here Kernel API Manual β€” mwah, go forth and set those DPMS modes πŸ’…πŸ¦‹πŸ‘‘

πŸ“¦ where this page comes from