app = QtGui.QApplication(sys.argv)
# for auto-config: common names of internal connectors
-commonInternalConnectorNames = ['LVDS', 'LVDS1']
+commonInternalConnectorNames = ['LVDS', 'LVDS1', 'LVDS-0']
# Load a section-less config file: maps parameter names to space-separated lists of strings (with shell quotation)
def loadConfigFile(file):
connectors = {} # map of connector names to a list of resolutions
connector = None # current connector
for line in p.stdout:
+ # ignore screens
+ if line.startswith("Screen"):
+ continue
# new connector?
- m = re.search(r'^([\w]+) (dis)?connected ', line)
+ m = re.search(r'^([\w\-]+) (dis)?connected ', line)
if m is not None:
connector = m.groups()[0]
assert connector not in connectors