From f5747bd6d800209d316e8f33f1a28e1d13d60001 Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Mon, 1 Jan 2024 17:45:22 +0100 Subject: [PATCH] fix the resolution twice to fix gnome display bug --- custom_components/easy_computer_manager/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/custom_components/easy_computer_manager/utils.py b/custom_components/easy_computer_manager/utils.py index 2cb437e..816c664 100644 --- a/custom_components/easy_computer_manager/utils.py +++ b/custom_components/easy_computer_manager/utils.py @@ -206,6 +206,9 @@ def change_monitors_config(connection: Connection, monitors_config: dict): if result.return_code == 0: _LOGGER.info("Successfully changed monitors config on system running on %s.", connection.host) + + # Run it once again, it fixes some strange Gnome display bug sometimes and it doesn't hurt + connection.run(command) else: raise HomeAssistantError("Could not change monitors config on system running on %s, check logs with debug", connection.host)