summaryrefslogtreecommitdiffstats
path: root/xserver.py
diff options
context:
space:
mode:
authorbfox <bfox>2001-01-12 23:05:08 +0000
committerbfox <bfox>2001-01-12 23:05:08 +0000
commit462741c646a9f9c66b51b8a9fb9d0ed0af494704 (patch)
tree7cad9f99e18f578ba7cd299dcd718683257d3b2d /xserver.py
parent742ed4da8da049d94b2cb7d8b4471b725f07e104 (diff)
downloadanaconda-462741c646a9f9c66b51b8a9fb9d0ed0af494704.tar.gz
anaconda-462741c646a9f9c66b51b8a9fb9d0ed0af494704.tar.xz
anaconda-462741c646a9f9c66b51b8a9fb9d0ed0af494704.zip
Added code to not use framebuffer server on NeoMagic cards.
Diffstat (limited to 'xserver.py')
-rw-r--r--xserver.py24
1 files changed, 22 insertions, 2 deletions
diff --git a/xserver.py b/xserver.py
index 9849e9879..212dde58e 100644
--- a/xserver.py
+++ b/xserver.py
@@ -86,7 +86,11 @@ def startX(resolution):
x.probe ()
# print "Probed X server is " , x.server
probedServer = x.server
- x.server = "XF86_FBDev"
+
+ #--Run fb_check() and see if framebuffer works on this card
+ if fb_check() == 0:
+ print "fb_check returned with value", fb_check()
+ x.server = "XF86_FBDev"
if x.server:
serverPath = '/usr/X11R6/bin/' + x.server
@@ -98,7 +102,6 @@ def startX(resolution):
print "Unknown card, falling back to VGA16"
x.server = "XF86_VGA16"
serverPath = '/usr/X11R6/bin/XF86_VGA16'
-
if not os.access (serverPath, os.X_OK): #--If framebuffer server isn't there...try original probed server
x.server = probedServer
@@ -126,6 +129,23 @@ def startX(resolution):
return (mouse, x)
+def fb_check ():
+ result = None
+ cards = kudzu.probe (kudzu.CLASS_VIDEO,
+ kudzu.BUS_UNSPEC,
+ kudzu.PROBE_ALL);
+
+ for card in cards:
+ (junk, man, junk2) = card
+
+ print man
+
+ if man[:13] == "Card:NeoMagic":
+ print "NeoMagic card found..."
+ return 1
+ else:
+ print "We can use framebuffer"
+ return 0
def testx(mouse, x):
print "going to test the x server"