From: Sam Coulter Date: Mon, 26 Sep 2022 16:12:20 +0000 (-0700) Subject: Add check for EDID_UNAVAILABLE in EDID hex parsing X-Git-Tag: 1.13~11 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4db718e759e8a1c8cf40fba21a920669a0ed6b58;p=deb_pkgs%2Fautorandr.git Add check for EDID_UNAVAILABLE in EDID hex parsing --- diff --git a/autorandr.py b/autorandr.py index 76f2fd7..0d80bc4 100755 --- a/autorandr.py +++ b/autorandr.py @@ -325,6 +325,8 @@ class XrandrOutput(object): def parse_serial_from_edid(self): self.serial = None if self.edid: + if self.EDID_UNAVAILABLE 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)