drm_helper_connector_dpms(9)
β¨ drm_helper_connector_dpms β¨
Okay bestie, so we're looking at a page from the drm Helper Connector DPMS 9 manual, and honestly? It's giving legacy vibes but in a "we respect our elders" kind of way. Let me break it down for you π
πΈ SYNOPSIS πΈ
int drm_helper_connector_dpms(struct drm_connector *connector, int mode);
Like, this is the whole vibe. Two args, one return, no cap.
π ARGUMENTS π
connectorβ the affected connector, aka the main character of this whole situationmodeβ the DPMS mode you're setting, periodt
π DESCRIPTION π
So the drm_helper_connector_dpms helper function implements the drm_connector_funcs.dpms callback for drivers that are using the legacy CRTC helpers. It's literally the go-to function for that whole setup π₯
This is the main helper function provided by the CRTC helper framework for implementing the DPMS connector attribute. Obsessed with that for it β¨ It computes the new desired DPMS state for all encoders and CRTCs in the output mesh (like, the whole squad gets a vibe check), and then it calls the drm_crtc_helper_funcs.dpms and drm_encoder_helper_funcs.dpms callbacks that the driver provides. Slay.
β οΈ Bestie, listen to me: this function is deprecated. Like, it's a legend and we respect it, but new drivers must implement atomic modeset support, where DPMS is handled in the DRM core. That's the future, honey, no cap π
π¦ RETURN π¦
It always returns 0. Literally every single time. No surprises, no drama, just zero. Iconic consistency honestly π«Ά
π SEE ALSO π
Here's the whole friend group, iykyk:
- Kernel file
./drivers/gpu/drm/drm_crtc_helper.coverview(9) drm_helper_encoder_in_use(9)drm_helper_crtc_in_use(9)drm_helper_disable_unused_functions(9)drm_crtc_helper_set_mode(9)drm_crtc_helper_atomic_check(9)drm_crtc_helper_set_config(9)drm_helper_resume_force_mode(9)drm_helper_force_disable_all(9)
π Okay and like, this whole page lives at ./drivers/gpu/drm and it was dated October 2026, which is giving main character energy from the future or whatever. Anyway bestie, you got this! Go read those other manpages, muah πβ¨π
π¦ 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