summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-09-26 21:37:52 +0000
committerMike Fulbright <msf@redhat.com>2003-09-26 21:37:52 +0000
commita8f3b2db37fba662b954309376c3c5c84a9285d1 (patch)
treec271d458b7954067935d02aa9aaab1349c689718
parente3f0296c9b70ccde7ddd517290c0209f427ec761 (diff)
downloadanaconda-a8f3b2db37fba662b954309376c3c5c84a9285d1.tar.gz
anaconda-a8f3b2db37fba662b954309376c3c5c84a9285d1.tar.xz
anaconda-a8f3b2db37fba662b954309376c3c5c84a9285d1.zip
see if user specified an LCD monitor type and use its native resolution
-rw-r--r--packages.py21
1 files changed, 19 insertions, 2 deletions
diff --git a/packages.py b/packages.py
index da0ec62a8..f5a71453a 100644
--- a/packages.py
+++ b/packages.py
@@ -247,8 +247,25 @@ def checkMonitorOK(monitor, dispatch):
def setSaneXSettings(xsetup):
if xsetup is not None and xsetup.xhwstate is not None:
if not xsetup.imposed_sane_default:
- xsetup.xhwstate.choose_sane_default()
- xsetup.imposed_sane_default = 1
+ # XXX HACK see if we have a user specified LCD display
+ import re
+
+ regx = re.compile("LCD Panel .*x.*")
+ monid = xsetup.xhwstate.monitor.getMonitorID()
+ lcdres = None
+ if regx.match(monid):
+ for testres in ["640x480", "800x600", "1024x480", "1024x768",
+ "1280x960", "1280x1024", "1400x1050",
+ "1600x1200"]:
+ if string.find(monid, testres) != -1:
+ lcdres = testres
+ break
+
+ if lcdres is not None:
+ xsetup.xhwstate.set_resolution(lcdres)
+ else:
+ xsetup.xhwstate.choose_sane_default()
+ xsetup.imposed_sane_default = 1
def getAnacondaTS(instPath = None):
if instPath: