From b76b82fc1907b27d3c13fc451c7758bae31ab142 Mon Sep 17 00:00:00 2001 From: Crozzers Date: Sat, 2 Mar 2024 18:05:41 +0000 Subject: [PATCH] Fix XRandr reporting displays on wayland session XRandr doesn't support wayland. Using it doesn't do anything (no error, no brightness). --- screen_brightness_control/linux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screen_brightness_control/linux.py b/screen_brightness_control/linux.py index 22fb88b..d8b1d6b 100644 --- a/screen_brightness_control/linux.py +++ b/screen_brightness_control/linux.py @@ -540,7 +540,7 @@ def _gdi(cls): 'manufacturer': None, 'manufacturer_id': None, 'edid': None, - 'unsupported': line.startswith('XWAYLAND') + 'unsupported': line.startswith('XWAYLAND') or 'WAYLAND_DISPLAY' in os.environ } display_count += 1