diff options
author | bfox <bfox> | 2001-01-26 17:07:08 +0000 |
---|---|---|
committer | bfox <bfox> | 2001-01-26 17:07:08 +0000 |
commit | 52391a6c2cea6d97cdaefbc163c5488f19b9ffb1 (patch) | |
tree | 4514e98b0dcc5406571f6ff5abb3ce9dbf22c286 /xf86config.py | |
parent | 0ff16783f9b18f3209f87c82b65f5b407e6365cc (diff) | |
download | anaconda-52391a6c2cea6d97cdaefbc163c5488f19b9ffb1.tar.gz anaconda-52391a6c2cea6d97cdaefbc163c5488f19b9ffb1.tar.xz anaconda-52391a6c2cea6d97cdaefbc163c5488f19b9ffb1.zip |
Added modeline for 1400x1050
Diffstat (limited to 'xf86config.py')
-rw-r--r-- | xf86config.py | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/xf86config.py b/xf86config.py index e0d80f2fe..43a3bb85a 100644 --- a/xf86config.py +++ b/xf86config.py @@ -419,7 +419,8 @@ Section "Screen" Device "Generic VGA Card" Monitor "%(monitorID)s" Subsection "Display" - Depth 16 +# Depth 16 + Depth %(fbDepth)s Modes "default" EndSubsection EndSection @@ -589,10 +590,11 @@ class XF86Config: # time.sleep(3) if self.res == "640x480": - self.modes = { "8" : ["640x480"] } + self.modes = { "8" : ["640x480"] } else: self.modes = { "16" : ["800x600"] } + # print "self.modes" # print self.modes # time.sleep(3) @@ -610,6 +612,15 @@ class XF86Config: self.keyOptions = "" self.monlist = {} self.monids = {} + + if isys.fbinfo() != None: + x, y, depth = isys.fbinfo() + self.fbDepth = depth +# print "here" + else: + self.fbDepth = 16 +# print "nofb" + self.files = """ # The location of the RGB database. Note, this is the name of the # file minus the extension (like ".txt" or ".db"). There is normally @@ -656,12 +667,12 @@ class XF86Config: # print x.res # time.sleep (5) - if self.res == "640x480": - modes = { "8" : ["640x480"] } - else: - modes = { "16" : ["800x600"] } +# if self.res == "640x480": +# modes = { "8" : ["640x480"] } +# else: +# modes = { "16" : ["800x600"] } -# modes = { "8" : [ "640x480" ] } + modes = { "8" : [ "640x480" ] } # modes = { "16" : [ "800x600" ] } if not self.vidRam: @@ -700,6 +711,7 @@ class XF86Config: modes["32"] = [] return modes elif string.atoi(self.vidRam) >= 256: + print "256k of memory" modes["8"] = ["640x480"] return modes @@ -1124,6 +1136,7 @@ Section "Device" else: monitor = self.monID + for driver in [ "svga", "accel" ]: tmp["driver"] = driver tmp["devID"] = self.devID @@ -1138,7 +1151,9 @@ Section "Screen" # see if 16 bpp is available, and if it should be the # default depth - if maxdepth > 0: + if self.res == "640x480": + screens = screens + " DefaultColorDepth 8\n" + elif maxdepth > 0: if maxdepth > 16 and '16' in self.modes.keys() and self.modes['16']: screens = screens + " DefaultColorDepth 16\n" else: @@ -1184,6 +1199,7 @@ Section "Screen" "monitorVert" : self.monVert, "fbProbedMonitor" : self.monSect, "files" : self.files, + "fbDepth" : self.fbDepth, } if self.keyVariant: info["enableVariant"] = "" |