drm_helper_r...e_force_mode(9)
π drm_helper_resume_force_mode(9)
okay so real talk, this is a page from the Kernel API Manual β yes, the kernel API manual, we're in that part of the docs bestie, the DRM helpers zone π and today's main character is drm_helper_resume_force_mode. Buckle up.
β¨ NAME β¨
drm_helper_resume_force_mode β force-restore mode setting configuration. yeah. it does exactly what it says and it says it loudly π₯
πΈ SYNOPSIS πΈ
void drm_helper_resume_force_mode (struct drm_device *dev );
no return value. no drama. just vibes and a void. periodt π
π¦ ARGUMENTS π¦
devβ thedrm_devicethat should be restored. that's it, that's the whole argument list, she's low maintenance π
π DESCRIPTION π
so here's the tea β β drivers that use the mode setting helpers can call this function to force-restore the mode setting configuration. when? like, on resume, or whenever something else might have trampled all over the hw state. and yes, the manpage literally calls out overzealous old BIOSen as the culprit β those ancient firmware gremlins really said "let me just redecorate your hardware state while you weren't looking" π iconic behavior, terrible roommate.
this helper doesn't provide a error return value, and honestly it doesn't need one β restoring the old config should never fail due to resource allocation issues, since the driver has already successfully set the restored configuration before. so basically this boils down to the equivalent of a few dpms on calls, which also don't provide an error code. no notes, clean, simple, we love a function that knows what it is β¨
but bestie, listen π β drivers where simply restoring an old configuration again might fail (for example, due to slight differences in allocating shared resources when the configuration is restored in a different order than when userspace set it up) need to use their own restore logic. you can't reuse this one, it's not gonna fit, don't force it π
β οΈ heads up! this function is deprecated. new drivers should implement atomic mode-setting and use the atomic suspend/resume helpers instead. it's giving "we're not mad, we're just disappointed." use the new stuff, bestie π«Ά
see also: drm_atomic_helper_suspend, drm_atomic_helper_resume β your new besties π
π SEE ALSO π
- 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_connector_dpms(9)drm_helper_force_disable_all(9)
and that's the whole page, bestie, go restore some modes responsibly π this little gem lives over in ./drivers/gpu/drm, dated October 2026, and it goes by drm_helper_r...e_force_mode(9) β yes the name is abbreviated with literal dots in the header, no I will not be explaining that, iykyk π§ββοΈβ¨
π¦ 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