summaryrefslogtreecommitdiffstats
path: root/xf86config.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-08-10 18:31:18 +0000
committerMatt Wilson <msw@redhat.com>2000-08-10 18:31:18 +0000
commit1fcb4b241b7c070dd062545d7a4a956afeae6eeb (patch)
treec942167ad9d400ab4ae71e73ecfa421d461b8c56 /xf86config.py
parent7a88fa4caec3dda444d3ddc359fb1d4726c8abe8 (diff)
downloadanaconda-1fcb4b241b7c070dd062545d7a4a956afeae6eeb.tar.gz
anaconda-1fcb4b241b7c070dd062545d7a4a956afeae6eeb.tar.xz
anaconda-1fcb4b241b7c070dd062545d7a4a956afeae6eeb.zip
1) add a --nofallback option to anaconda such that we can see the
traceback for syntax errors in GUI mode 2) don't over remember custom x modes (#12176) 3) german boot disk messages
Diffstat (limited to 'xf86config.py')
-rw-r--r--xf86config.py61
1 files changed, 37 insertions, 24 deletions
diff --git a/xf86config.py b/xf86config.py
index 514d57732..f814cfa9e 100644
--- a/xf86config.py
+++ b/xf86config.py
@@ -604,40 +604,53 @@ class XF86Config:
elif ((x1 * y1) < (x2 * y2)):
return 1
return 0
-
- def filterModesByMemory (self):
+
+ def availableModes (self):
+ modes = { "8" : [ "640x480" ] }
if not self.vidRam:
- return
+ return modes
laptop = self.laptop()
if laptop:
- self.modes = laptop
- return
+ return laptop
if string.atoi(self.vidRam) >= 8192:
- self.modes["8"] = ["640x480", "800x600", "1024x768", "1152x864", "1280x1024", "1600x1200"]
- self.modes["16"] = ["640x480", "800x600", "1024x768", "1152x864", "1280x1024", "1600x1200"]
- self.modes["32"] = ["640x480", "800x600", "1024x768", "1152x864", "1280x1024", "1600x1200"]
+ modes["8"] = ["640x480", "800x600", "1024x768", "1152x864", "1280x1024", "1600x1200"]
+ modes["16"] = ["640x480", "800x600", "1024x768", "1152x864", "1280x1024", "1600x1200"]
+ modes["32"] = ["640x480", "800x600", "1024x768", "1152x864", "1280x1024", "1600x1200"]
+ return modes
elif string.atoi(self.vidRam) >= 6144:
- self.modes["8"] = ["640x480", "800x600", "1024x768", "1152x864", "1280x1024", "1600x1200"]
- self.modes["16"] = ["640x480", "800x600", "1024x768", "1152x864", "1280x1024", "1600x1200"]
- self.modes["32"] = ["640x480", "800x600", "1024x768", "1152x864", "1280x1024"]
+ modes["8"] = ["640x480", "800x600", "1024x768", "1152x864", "1280x1024", "1600x1200"]
+ modes["16"] = ["640x480", "800x600", "1024x768", "1152x864", "1280x1024", "1600x1200"]
+ modes["32"] = ["640x480", "800x600", "1024x768", "1152x864", "1280x1024"]
+ return modes
elif string.atoi(self.vidRam) >= 4096:
- self.modes["8"] = ["640x480", "800x600", "1024x768", "1152x864", "1280x1024", "1600x1200"]
- self.modes["16"] = ["640x480", "800x600", "1024x768", "1152x864", "1280x1024", "1600x1200"]
- self.modes["32"] = ["640x480", "800x600", "1024x768", "1152x864"]
+ modes["8"] = ["640x480", "800x600", "1024x768", "1152x864", "1280x1024", "1600x1200"]
+ modes["16"] = ["640x480", "800x600", "1024x768", "1152x864", "1280x1024", "1600x1200"]
+ modes["32"] = ["640x480", "800x600", "1024x768", "1152x864"]
+ return modes
elif string.atoi(self.vidRam) >= 2048:
- self.modes["8"] = ["640x480", "800x600", "1024x768", "1152x864", "1280x1024"]
- self.modes["16"] = ["640x480", "800x600", "1024x768", "1152x864"]
- self.modes["32"] = ["640x480", "800x600"]
+ modes["8"] = ["640x480", "800x600", "1024x768", "1152x864", "1280x1024"]
+ modes["16"] = ["640x480", "800x600", "1024x768", "1152x864"]
+ modes["32"] = ["640x480", "800x600"]
+ return modes
elif string.atoi(self.vidRam) >= 1024:
- self.modes["8"] = ["640x480", "800x600", "1024x768", "1152x864"]
- self.modes["16"] = ["640x480", "800x600"]
- self.modes["32"] = []
+ modes["8"] = ["640x480", "800x600", "1024x768", "1152x864"]
+ modes["16"] = ["640x480", "800x600"]
+ modes["32"] = []
+ return modes
elif string.atoi(self.vidRam) >= 512:
- self.modes["8"] = ["640x480", "800x600"]
- self.modes["16"] = ["640x480"]
- self.modes["32"] = []
+ modes["8"] = ["640x480", "800x600"]
+ modes["16"] = ["640x480"]
+ modes["32"] = []
+ return modes
elif string.atoi(self.vidRam) >= 256:
- self.modes["8"] = ["640x480"]
+ modes["8"] = ["640x480"]
+ return modes
+
+ def filterModesByMemory (self):
+ self.modes = self.availableModes()
+
+ def setModes(self, modes):
+ self.modes = modes
def cards (self, thecard = None):
cards = {}