Blame SOURCES/0001-monitor-manager-kms-Trigger-hotplug-processing-on-gp.patch

180070
From 9f8564ce066aeb704341d6f926daec0045243b70 Mon Sep 17 00:00:00 2001
180070
From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
180070
Date: Thu, 25 Jun 2020 10:06:38 +0200
180070
Subject: [PATCH 1/2] monitor-manager-kms: Trigger hotplug processing on gpu
180070
 removal
180070
180070
---
180070
 src/backends/native/meta-monitor-manager-kms.c | 16 +++++++++++-----
180070
 1 file changed, 11 insertions(+), 5 deletions(-)
180070
180070
diff --git a/src/backends/native/meta-monitor-manager-kms.c b/src/backends/native/meta-monitor-manager-kms.c
180070
index 9a0364441a..2819881576 100644
180070
--- a/src/backends/native/meta-monitor-manager-kms.c
180070
+++ b/src/backends/native/meta-monitor-manager-kms.c
180070
@@ -470,12 +470,18 @@ on_uevent (GUdevClient *client,
180070
 
180070
       if (!g_strcmp0 (seat_id, device_seat))
180070
         handle_gpu_hotplug (manager_kms, device);
180070
-    }
180070
-
180070
-  if (!g_udev_device_get_property_as_boolean (device, "HOTPLUG"))
180070
-    return;
180070
 
180070
-  handle_hotplug_event (manager);
180070
+      handle_hotplug_event (manager);
180070
+    }
180070
+  else if (g_str_equal (action, "remove") &&
180070
+           g_udev_device_get_device_file (device) != NULL)
180070
+    {
180070
+      handle_hotplug_event (manager);
180070
+    }
180070
+  else if (g_udev_device_get_property_as_boolean (device, "HOTPLUG"))
180070
+    {
180070
+      handle_hotplug_event (manager);
180070
+    }
180070
 }
180070
 
180070
 static void
180070
-- 
180070
2.26.2
180070