diff options
author | Matt Wilson <msw@redhat.com> | 1999-09-04 00:18:19 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-09-04 00:18:19 +0000 |
commit | b932e15cc201da60b3b6b5332dd052c7efb040d7 (patch) | |
tree | 2b233f415684679b8aad92d7ed501849f2923dce | |
parent | b05d1921471864168e38ad10d63bb321cb4f5b44 (diff) | |
download | anaconda-b932e15cc201da60b3b6b5332dd052c7efb040d7.tar.gz anaconda-b932e15cc201da60b3b6b5332dd052c7efb040d7.tar.xz anaconda-b932e15cc201da60b3b6b5332dd052c7efb040d7.zip |
no monitor probe for text
-rw-r--r-- | text.py | 2 | ||||
-rw-r--r-- | xf86config.py | 43 |
2 files changed, 23 insertions, 22 deletions
@@ -1136,7 +1136,7 @@ class LiloImagesWindow: class XConfigWindow: def __call__(self, screen, todo): - todo.x.probe () + todo.x.probe (probeMonitor = 0) if todo.x.server: rc = ButtonChoiceWindow (screen, _("X probe results"), diff --git a/xf86config.py b/xf86config.py index d92345117..5527307fa 100644 --- a/xf86config.py +++ b/xf86config.py @@ -122,7 +122,7 @@ class XF86Config: self.devID = self.vidCards[0]["NAME"] self.server = self.vidCards[0]["SERVER"] - def probe (self): + def probe (self, probeMonitor = 1): if self.probed: return self.probed = 1 @@ -147,31 +147,32 @@ class XF86Config: self.server = self.vidCards[0]["SERVER"] # VESA probe for monitor/videoram, etc. - probe = string.split (iutil.execWithCapture ("/usr/sbin/ddcprobe", ['ddcprobe']), '\n') + if probeMonitor: + probe = string.split (iutil.execWithCapture ("/usr/sbin/ddcprobe", ['ddcprobe']), '\n') - for line in probe: - if line and line[:9] == "OEM Name:": - self.cardMan = string.strip (line[10:]) - - if line and line[:16] == "Memory installed": - memory = string.split (line, '=') - self.vidRam = string.strip (memory[2][:-2]) + for line in probe: + if line and line[:9] == "OEM Name:": + self.cardMan = string.strip (line[10:]) + + if line and line[:16] == "Memory installed": + memory = string.split (line, '=') + self.vidRam = string.strip (memory[2][:-2]) - if line and line[:8] == "EISA ID:": - self.monEisa = line[9:] - self.monID = line[9:] + if line and line[:8] == "EISA ID:": + self.monEisa = line[9:] + self.monID = line[9:] - if line and line[:6] == "\tName:": - if not self.monName or len (self.monName) < len (line[7:]): - self.monName = line[7:] + if line and line[:6] == "\tName:": + if not self.monName or len (self.monName) < len (line[7:]): + self.monName = line[7:] - if line and line[:15] == "\tTiming ranges:": - ranges = string.split (line, ',') - self.monHoriz = string.strip (string.split (ranges[0], '=')[1]) - self.monVert = string.strip (string.split (ranges[1], '=')[1]) + if line and line[:15] == "\tTiming ranges:": + ranges = string.split (line, ',') + self.monHoriz = string.strip (string.split (ranges[0], '=')[1]) + self.monVert = string.strip (string.split (ranges[1], '=')[1]) - if self.vidCards and self.cardMan: - self.vidCards[0]["VENDOR"] = self.cardMan + if self.vidCards and self.cardMan: + self.vidCards[0]["VENDOR"] = self.cardMan def probeReport (self): probe = "" |