summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-04-04 15:07:30 +0000
committerChris Lumens <clumens@redhat.com>2006-04-04 15:07:30 +0000
commitc6bcee1ba8180741c3e9651b81c48d870d763dd9 (patch)
tree07c2d6e4c54a25e52a9c78fb1a7d330b20a56792
parent97d15c9c275febd3a186f3a08a07f26ef8252e2c (diff)
downloadanaconda-c6bcee1ba8180741c3e9651b81c48d870d763dd9.tar.gz
anaconda-c6bcee1ba8180741c3e9651b81c48d870d763dd9.tar.xz
anaconda-c6bcee1ba8180741c3e9651b81c48d870d763dd9.zip
Use rhpxl.monitor.Modes class.
-rw-r--r--ChangeLog2
-rwxr-xr-xanaconda7
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 7ce60eef9..671e6c5dd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2006-04-04 Chris Lumens <clumens@redhat.com>
+ * anaconda: Use rhpxl.monitor.Modes class.
+
* installclass.py (BaseInstallClass.setVideoCard): Use the right
variable name.
(requireDisplayMode): Removed.
diff --git a/anaconda b/anaconda
index 189ef2465..b30c9aa52 100755
--- a/anaconda
+++ b/anaconda
@@ -682,6 +682,7 @@ if not opts.isHeadless:
try:
import xsetup
import rhpxl.xhwstate as xhwstate
+ import rhpxl.monitor
except ImportError:
opts.isHeadless = 1
import rhpl.keyboard as keyboard
@@ -818,12 +819,14 @@ if opts.isHeadless: # s390/iSeries checks
# if DISPLAY not set either vnc server failed to start or we're not
# running on a redirected X display, so start local X server
if opts.display_mode == 'g' and not os.environ.has_key('DISPLAY') and not flags.usevnc:
+ modes = rhpxl.monitor.Modes()
+
if iutil.getPPCMachine() == "PMac":
opts.runres = xhwstate.get_valid_resolution(videohw, monitorhw, opts.runres,
- runres_override, onPMac=True)
+ modes, runres_override, onPMac=True)
else:
opts.runres = xhwstate.get_valid_resolution(videohw, monitorhw, opts.runres,
- runres_override)
+ modes, runres_override)
# make sure we can write log to ramfs
if os.access("/tmp/ramfs", os.W_OK):