mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
restore dpms state on drm resume
If there is no current mode, set outputs to dpms off in drm resume. Sets current mode to null on disable to ensure this can be checked.
This commit is contained in:
parent
3296365ce5
commit
a65ef8ea86
3 changed files with 6 additions and 1 deletions
|
|
@ -83,6 +83,8 @@ static void session_signal(struct wl_listener *listener, void *data) {
|
|||
wl_list_for_each(conn, &drm->outputs, link){
|
||||
if (conn->output.current_mode) {
|
||||
wlr_output_set_mode(&conn->output, conn->output.current_mode);
|
||||
} else {
|
||||
wlr_drm_connector_enable(&conn->output, false);
|
||||
}
|
||||
|
||||
if (!conn->crtc) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue