summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages.py')
-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: