]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/blobdiff - autorandr.py
Add check for EDID_UNAVAILABLE in EDID hex parsing
[deb_pkgs/autorandr.git] / 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)