summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-12-18 02:06:25 +0000
committerMike Fulbright <msf@redhat.com>2002-12-18 02:06:25 +0000
commit74ce9f1e1fd58e08d808956aaba10aa50d0ec8c0 (patch)
tree86a0f5fb1d9f6dd82c078b8b9c5c4c3f76665d2a /anaconda
parent380bd6ff5589aa5cc019b8789a4d469982882746 (diff)
downloadanaconda-74ce9f1e1fd58e08d808956aaba10aa50d0ec8c0.tar.gz
anaconda-74ce9f1e1fd58e08d808956aaba10aa50d0ec8c0.tar.xz
anaconda-74ce9f1e1fd58e08d808956aaba10aa50d0ec8c0.zip
fix --resolution (well temporary fix, better fix after beta)
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda32
1 files changed, 32 insertions, 0 deletions
diff --git a/anaconda b/anaconda
index cc2bd5c30..11b762eda 100755
--- a/anaconda
+++ b/anaconda
@@ -515,6 +515,38 @@ else: # s390 checks
time.sleep(2)
if display_mode == 'g' and not os.environ.has_key('DISPLAY'):
+ import rhpl.monitor as monitor
+
+ # if no monitor probed lets guess based on runres
+ hsync = monitorhw.getMonitorHorizSync()
+ vsync = monitorhw.getMonitorVertSync()
+ res_supported = monitor.monitor_supports_mode(hsync, vsync, runres)
+
+ if not res_supported:
+ if runres == "800x600":
+ monitorhw.setSpecs("31.5-48.5", "50-70")
+ elif runres == "1024x768":
+ monitorhw.setSpecs("31.5-48.5", "40-70")
+ elif runres == "1280x1024":
+ monitorhw.setSpecs("31.5-67", "50-75")
+ elif runres == "1400x1050":
+ monitorhw.setSpecs("31.5-90", "59-75")
+ elif runres == "1600x1200":
+ monitorhw.setSpecs("31.5-90", "60")
+ else:
+ # just pick something reasonable for most modes
+ monitorhw.setSpecs("31.5-65.0", "50-90")
+
+ # XXX - need to fix
+ #
+ # messy hack for how rhpl.xhwstate works
+ # current it wants to use probed values which we dont have so we'll
+ # fake them
+ hsync = monitorhw.getMonitorHorizSync()
+ vsync = monitorhw.getMonitorVertSync()
+ monitorhw.orig_monHoriz = hsync
+ monitorhw.orig_monVert = vsync
+
xsetup_failed = xserver.startXServer(videohw, monitorhw, mousehw, kbd,
runres,
xStartedCB=doStartupX11Actions,