From 599d1bcbdc8e0e9fb2d743d70dbf8b6fa9f3bea2 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Sat, 13 May 2017 20:37:15 +1200 Subject: DPMS support --- include/backend/drm/drm.h | 5 +++++ include/wlr/backend/drm.h | 2 ++ 2 files changed, 7 insertions(+) (limited to 'include') diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h index 4b42aa68..93de4fb8 100644 --- a/include/backend/drm/drm.h +++ b/include/backend/drm/drm.h @@ -36,6 +36,10 @@ struct wlr_output_state { uint32_t connector; char name[16]; + struct { + uint32_t dpms; + } props; + uint32_t width; uint32_t height; @@ -51,6 +55,7 @@ struct wlr_output_state { }; void wlr_drm_output_cleanup(struct wlr_output_state *output, bool restore); +void wlr_drm_output_dpms(int fd, struct wlr_output_state *output, bool screen_on); void wlr_drm_scan_connectors(struct wlr_backend_state *state); int wlr_drm_event(int fd, uint32_t mask, void *data); diff --git a/include/wlr/backend/drm.h b/include/wlr/backend/drm.h index 2d9bf879..c76d280a 100644 --- a/include/wlr/backend/drm.h +++ b/include/wlr/backend/drm.h @@ -10,6 +10,8 @@ struct wlr_backend *wlr_drm_backend_create(struct wl_display *display, struct wlr_session *session); +void wlr_drm_backend_dpms(struct wlr_backend *backend, bool screen_on); + void wlr_drm_output_begin(struct wlr_output *out); void wlr_drm_output_end(struct wlr_output *out); -- cgit v1.2.3