diff options
author | bfox <bfox> | 2000-11-28 21:16:56 +0000 |
---|---|---|
committer | bfox <bfox> | 2000-11-28 21:16:56 +0000 |
commit | 1124e887d8515b55970742ee9b35023fd9285534 (patch) | |
tree | c44fa44af879440645af2af1c58e7c336dde608f /xf86config.py | |
parent | 6d4de5f4a4436ab2c876ef892d31e0827b88b9ff (diff) | |
download | anaconda-1124e887d8515b55970742ee9b35023fd9285534.tar.gz anaconda-1124e887d8515b55970742ee9b35023fd9285534.tar.xz anaconda-1124e887d8515b55970742ee9b35023fd9285534.zip |
Added code to allow the user to run anaconda in lowres mode
Diffstat (limited to 'xf86config.py')
-rw-r--r-- | xf86config.py | 41 |
1 files changed, 37 insertions, 4 deletions
diff --git a/xf86config.py b/xf86config.py index f17f17c48..9f4e426e5 100644 --- a/xf86config.py +++ b/xf86config.py @@ -532,7 +532,7 @@ EndSection """ class XF86Config: - def __init__ (self, mouse = None): + def __init__ (self, mouse = None, resolution = None): if mouse: self.setMouse(mouse) @@ -547,6 +547,9 @@ class XF86Config: # self.monHoriz = "31.5" # self.monVert = "60" + self.res = "" + self.res = resolution + self.monHoriz = "35.15" self.monVert = "56" @@ -559,8 +562,20 @@ class XF86Config: self.skip = 0 self.primary = 0 self.manualModes = {} -# self.modes = { "8" : ["640x480"] } - self.modes = { "16" : ["800x600"] } + +# print "Inside XF86Config" +# print self.res +# time.sleep(3) + + if self.res == "640x480": + self.modes = { "8" : ["640x480"] } + else: + self.modes = { "16" : ["800x600"] } + +# print "self.modes" +# print self.modes +# time.sleep(3) + self.device = None self.keyRules = "xfree86" self.keyModel = "pc101" @@ -616,8 +631,18 @@ class XF86Config: return 0 def availableModes (self): +# print "Inside xf86Config...availableModes", self.res +# print x.res +# time.sleep (5) + + if self.res == "640x480": + self.modes = { "8" : ["640x480"] } + else: + self.modes = { "16" : ["800x600"] } + # modes = { "8" : [ "640x480" ] } - modes = { "16" : [ "800x600" ] } +# modes = { "16" : [ "800x600" ] } + if not self.vidRam: return modes laptop = self.laptop() @@ -1009,6 +1034,10 @@ class XF86Config: return def Version3Config (self, test=0): +# print "Inside Version3Config" +# print self.res +# time.sleep (5) + info = {} devices = "" screens = "" @@ -1228,6 +1257,10 @@ if __name__ == "__main__": print x.Version4Config() sys.exit (0) x.filterModesByMemory () + +# print self.modes +# time.sleep (5) + print x.preludeSection () print x.keyboardSection () print x.mouseSection () |