From eb01cc549d4d5544833ff6da4d79bc63587fd5ca Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 12 Oct 2016 17:35:37 +0100 Subject: sna: Refresh mode list if the kernel updates If the kernel changes its list of modes, make sure we update. (This is a losing battle since X will add whatever modes it finds from the EDID despite what the kernel is telling it.) 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 39c07b30..15be27c4 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -5190,6 +5190,9 @@ output_check_status(struct sna *sna, struct sna_output *output) if (status != XF86OutputStatusConnected) return true; + if (output->num_modes != compat_conn.conn.count_modes) + return true; + if (output->edid_len == 0) return false; -- cgit v1.2.3