summaryrefslogtreecommitdiffstats
path: root/videocard.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-07-18 16:53:22 +0000
committerMike Fulbright <msf@redhat.com>2001-07-18 16:53:22 +0000
commit76230f2ca7c9d5f6b639a21620ebe34b1f0e0d90 (patch)
tree3fae35fa06161c6d22cf9867394f2a02e5af1aa2 /videocard.py
parent805a9ad957cfcab182ef570eb39c1045a45baa29 (diff)
downloadanaconda-76230f2ca7c9d5f6b639a21620ebe34b1f0e0d90.tar.gz
anaconda-76230f2ca7c9d5f6b639a21620ebe34b1f0e0d90.tar.xz
anaconda-76230f2ca7c9d5f6b639a21620ebe34b1f0e0d90.zip
handle bad syncing between cardsdb and pcitable, and make it possible to switch between XFree 3 and 4 fb driver
Diffstat (limited to 'videocard.py')
-rw-r--r--videocard.py26
1 files changed, 22 insertions, 4 deletions
diff --git a/videocard.py b/videocard.py
index 7467b5371..b9eafb85b 100644
--- a/videocard.py
+++ b/videocard.py
@@ -168,13 +168,28 @@ class FrameBufferCard(VideoCard):
def getCardData(self, dontResolve = 0):
# fake entry for a frame buffer (not in cards db)
card = {}
- card["DRIVER"] = "fbdev"
+
+# This makes it use the XFree86 4.x fbdev
+# also uncomment the code below in getXServer()
+# card["DRIVER"] = "fbdev"
+#
+# This makes is use the XFree 3.x.x fbdev
+# also uncomment the code below in getXServer()
+ card["SERVER"] = "FBDev"
+
card["NAME"] = "VGA VESA Framebuffer"
return card
def getXServer(self):
- return "XFree86"
+
+# This makes it use the XFree86 4.x fbdev
+# also uncomment the code above in getCardData()
+# return "XFree86"
+#
+# This makes is use the XFree 3.x.x fbdev
+# also uncomment the code above in getCardData()
+ return "XF86_FBDev"
def isFrameBuffer(self):
return 1
@@ -336,8 +351,10 @@ class VideoCardInfo:
if len (server) > 9 and server[0:10] == "Server:Sun" and descr[0:4] == "Sun|":
server = "Card:Sun " + descr[4:]
if len (server) > 5 and server[0:5] == "Card:":
-# info = self.cardsDBLookup (server[5:])
- info = Video_cardslist [server[5:]]
+ if server[5:] in Video_cardslist.keys():
+ info = Video_cardslist [server[5:]]
+ else:
+ info = None
if len (server) > 7 and server[0:7] == "Server:":
info = { "NAME" : "Generic " + server[7:],
"SERVER" : server[7:] }
@@ -367,6 +384,7 @@ class VideoCardInfo:
self.orig_videocards = copy.deepcopy(self.videocards)
self.primary = 0
self.orig_primary = self.primary
+
return
# default primary card to be the first card found