From 4fcc1c277fcee89ebdc6a6baec18f119c6f30f1a Mon Sep 17 00:00:00 2001 From: Phillip Berndt Date: Mon, 23 Jan 2023 11:17:09 +0100 Subject: [PATCH] Fix matching EDIDs with wildcards Fixes #322 --- README.md | 3 +++ autorandr.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 4c47b02..a411bd3 100644 --- a/README.md +++ b/README.md @@ -257,6 +257,9 @@ options nvidia_drm modeset=1 ## Changelog +**autorandr 1.13.2 (dev)** +* *2023-01-23* Fix wildcard use in EDIDs (see #322) + **autorandr 1.13.1** * *2023-01-16* Fix bug with Version comparison diff --git a/autorandr.py b/autorandr.py index bc68dfe..db835fb 100755 --- a/autorandr.py +++ b/autorandr.py @@ -359,6 +359,8 @@ class XrandrOutput(object): if self.edid: if self.EDID_UNAVAILABLE in self.edid: return + if "*" in self.edid: + return # Thx to pyedid project, the following code was # copied (and modified) from pyedid/__init__py:21 [parse_edid()] raw = bytes.fromhex(self.edid)