From 23986f0a31dbdec2e2086ca898bee43842ab73d4 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 13 Sep 2015 20:07:35 +0100 Subject: [PATCH] sna: Update the last known status timestamp on modeset If the modeset is successful we know the connector is still alive, so update its timestamp. Signed-off-by: Chris Wilson --- src/sna/sna_display.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 9a044190..589e2e21 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -953,6 +953,8 @@ static void sna_crtc_force_outputs_on(xf86CrtcPtr crtc) { xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(crtc->scrn); + /* All attached outputs are valid, so update our timestamps */ + unsigned now = GetTimeInMillis(); int i; assert(to_sna_crtc(crtc)); @@ -972,6 +974,7 @@ sna_crtc_force_outputs_on(xf86CrtcPtr crtc) continue; __sna_output_dpms(output, DPMSModeOn, false); + to_sna_output(output)->last_detect = now; } #if XF86_CRTC_VERSION >= 3