diff options
author | Mike Fulbright <msf@redhat.com> | 2001-08-13 19:26:41 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-08-13 19:26:41 +0000 |
commit | 57ada56c0a75951382ac39d1feda81589fe808f2 (patch) | |
tree | f8ae8abe1b4edb8043ab50d3b9bc1a16cc52a520 /installclass.py | |
parent | aeeea5c324fa6a401a58526976e3f28b2267ace7 (diff) | |
download | anaconda-57ada56c0a75951382ac39d1feda81589fe808f2.tar.gz anaconda-57ada56c0a75951382ac39d1feda81589fe808f2.tar.xz anaconda-57ada56c0a75951382ac39d1feda81589fe808f2.zip |
try to handle monitor probing/config during ks better
Diffstat (limited to 'installclass.py')
-rw-r--r-- | installclass.py | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/installclass.py b/installclass.py index b0af5a5f5..b8d156307 100644 --- a/installclass.py +++ b/installclass.py @@ -10,6 +10,7 @@ from xf86config import XF86Config from translate import _ from instdata import InstallData from partitioning import * +from log import log class BaseInstallClass: # default to not being hidden @@ -327,14 +328,30 @@ class BaseInstallClass: else: usemon = None + setmonitor = 0 if usemon: - (model, eisa, vert, horiz) = id.monitor.lookupMonitor(usemon) - id.monitor.setSpecs(horiz, vert, id=model, name=model) - elif hsync and vsync: + try: + (model, eisa, vert, horiz) = id.monitor.lookupMonitor(usemon) + id.monitor.setSpecs(horiz, vert, id=model, name=model) + setmonitor = 1 + except: + log("Couldnt lookup monitor type %s." % usemon) + pass + + if not setmonitor and hsync and vsync: id.monitor.setSpecs(hsync, vsync) - else: - raise RuntimeError, "Could not probe monitor and no fallback specified" - + setmonitor = 1 + + if not setmonitor: + # fall back to standard VGA + log("Could not probe monitor, and no fallback specified.") + log("Falling back to Generic VGA monitor") + + try: + id.monitor.setSpecs("31.5-37.9", "50.0-61.0") + except: + raise RuntimeError, "Could not probe monitor and fallback failed." + if startX: id.desktop.setDefaultRunLevel(5) else: |