drm_atomic_helper_disable_all
Prev | Atomic Modeset Helper Functions Reference | Next

## Name

drm_atomic_helper_disable_all — disable all currently active outputs

## Synopsis

`int drm_atomic_helper_disable_all (` | struct drm_device * dev,
| struct drm_modeset_acquire_ctx * ctx`)`;

## Arguments

`dev`

  DRM device

`ctx`

  lock acquisition context

## Description

Loops through all connectors, finding those that aren't turned off and then turns them off by setting their DPMS mode to OFF and deactivating the CRTC that they are connected to.

This is used for example in suspend/resume to disable all currently active functions when suspending.

Note that if callers haven't already acquired all modeset locks this might return -EDEADLK, which must be handled by calling `drm_modeset_backoff`.

## Returns

0 on success or a negative error code on failure.

## See also

`drm_atomic_helper_suspend`, `drm_atomic_helper_resume`

Prev | Up | Next
drm_atomic_helper_set_config | Home | drm_atomic_helper_suspend