DPMS support

This commit is contained in:
Scott Anderson 2017-05-13 20:37:15 +12:00
parent c436e76240
commit 599d1bcbdc
5 changed files with 80 additions and 1 deletions

View file

@ -101,3 +101,11 @@ error_backend:
free(backend);
return NULL;
}
void wlr_drm_backend_dpms(struct wlr_backend *backend, bool screen_on) {
struct wlr_backend_state *state = backend->state;
for (size_t i = 0; i < state->outputs->length; ++i) {
struct wlr_output_state *output = state->outputs->items[i];
wlr_drm_output_dpms(state->fd, output, screen_on);
}
}