diff options
author | Chris Lumens <clumens@redhat.com> | 2006-04-04 15:07:30 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-04-04 15:07:30 +0000 |
commit | c6bcee1ba8180741c3e9651b81c48d870d763dd9 (patch) | |
tree | 07c2d6e4c54a25e52a9c78fb1a7d330b20a56792 | |
parent | 97d15c9c275febd3a186f3a08a07f26ef8252e2c (diff) | |
download | anaconda-c6bcee1ba8180741c3e9651b81c48d870d763dd9.tar.gz anaconda-c6bcee1ba8180741c3e9651b81c48d870d763dd9.tar.xz anaconda-c6bcee1ba8180741c3e9651b81c48d870d763dd9.zip |
Use rhpxl.monitor.Modes class.
-rw-r--r-- | ChangeLog | 2 | ||||
-rwxr-xr-x | anaconda | 7 |
2 files changed, 7 insertions, 2 deletions
@@ -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. @@ -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): |