From: Phillip Berndt Date: Mon, 23 Jan 2023 10:17:09 +0000 (+0100) Subject: Fix matching EDIDs with wildcards X-Git-Tag: 1.13.2~6 X-Git-Url: https://git.donarmstrong.com/deb_pkgs/autorandr.git?a=commitdiff_plain;h=4fcc1c277fcee89ebdc6a6baec18f119c6f30f1a;p=deb_pkgs%2Fautorandr.git Fix matching EDIDs with wildcards Fixes #322 --- 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)