]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Add check for EDID_UNAVAILABLE in EDID hex parsing
authorSam Coulter <samcoult@amazon.com>
Mon, 26 Sep 2022 16:12:20 +0000 (09:12 -0700)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Thu, 1 Dec 2022 07:33:34 +0000 (08:33 +0100)
autorandr.py

index 76f2fd79d81539c85354b1cb2926b2208fd8c3b6..0d80bc4da2c4164037f8c8c521c98c16a24cd83d 100755 (executable)
@@ -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)