diff options
author | jakub <jakub> | 1999-10-01 09:57:17 +0000 |
---|---|---|
committer | jakub <jakub> | 1999-10-01 09:57:17 +0000 |
commit | de1beefbad3d6b904ec9c7a95002257255c175a8 (patch) | |
tree | 10332b0dbee66795d03136bf80c3c73532cb1d6f | |
parent | e39aa1262b1fbeabc451b32de7a4a9a49f5ff9eb (diff) | |
download | anaconda-de1beefbad3d6b904ec9c7a95002257255c175a8.tar.gz anaconda-de1beefbad3d6b904ec9c7a95002257255c175a8.tar.xz anaconda-de1beefbad3d6b904ec9c7a95002257255c175a8.zip |
Cards with 1M of video RAM were given incorrect modes (on PCs as well).
Do fbconProbing if ddcprobe was not successful (or was missing).
Fix a typo in silo.py.
-rw-r--r-- | silo.py | 2 | ||||
-rw-r--r-- | xf86config.py | 12 |
2 files changed, 10 insertions, 4 deletions
@@ -9,7 +9,7 @@ class SiloInstall: def __init__ (self, todo): self.todo = todo self.linuxAlias = 1 - self.bootBevice = 1 + self.bootDevice = 1 def checkUFS(self, dev): f = open("/proc/mounts","r") diff --git a/xf86config.py b/xf86config.py index 695555f17..aa9ed6c64 100644 --- a/xf86config.py +++ b/xf86config.py @@ -5,6 +5,7 @@ if __name__ == "__main__": import string import iutil import kudzu +import isys import time import os from kbd import Keyboard @@ -82,7 +83,7 @@ class XF86Config: self.modes["8"] = ["640x480", "800x600", "1024x768", "1152x864", "1280x1024"] self.modes["16"] = ["640x480", "800x600", "1024x768", "1152x864"] self.modes["32"] = ["640x480", "800x600"] - elif string.atoi(self.vidRam) >= 2048: + elif string.atoi(self.vidRam) >= 1024: self.modes["8"] = ["640x480", "800x600", "1024x768", "1152x864"] self.modes["16"] = ["640x480", "800x600"] self.modes["32"] = ["640x480"] @@ -172,10 +173,10 @@ class XF86Config: for card in cards: section = "" (device, server, descr) = card - if len (server) > 5 and server[0:5] == "Card:": - self.vidCards.append (self.cards (server[5:])) if len (self.vidCards) == 0: self.device = device + if len (server) > 5 and server[0:5] == "Card:": + self.vidCards.append (self.cards (server[5:])) if len (server) > 7 and server[0:7] == "Server:": info = { "NAME" : string.split (descr, '|')[1], "SERVER" : server[7:] } @@ -215,6 +216,11 @@ class XF86Config: self.vidCards[0]["VENDOR"] = self.cardMan except: pass + if not self.vidRam and self.device: + try: + self.vidRam = "%d" % isys.fbconProbe("/dev/" + self.device) + except: + pass def probeReport (self): probe = "" |