summaryrefslogtreecommitdiffstats
path: root/xserver.py
diff options
context:
space:
mode:
authorbfox <bfox>2001-02-09 02:44:51 +0000
committerbfox <bfox>2001-02-09 02:44:51 +0000
commit8feb46ee189e67b5d0bcdde932f5a409ddd92999 (patch)
treebbf88e7658020ed79a706ca858b7a40f17835f20 /xserver.py
parent7b66dc2f5df15e88f22de08fcdc9faee5865f9cf (diff)
downloadanaconda-8feb46ee189e67b5d0bcdde932f5a409ddd92999.tar.gz
anaconda-8feb46ee189e67b5d0bcdde932f5a409ddd92999.tar.xz
anaconda-8feb46ee189e67b5d0bcdde932f5a409ddd92999.zip
added code to not probe /dev/fd0 if in nofb mode
Diffstat (limited to 'xserver.py')
-rw-r--r--xserver.py36
1 files changed, 25 insertions, 11 deletions
diff --git a/xserver.py b/xserver.py
index 17b69f34b..d1966eba9 100644
--- a/xserver.py
+++ b/xserver.py
@@ -59,9 +59,10 @@ def mouseWindow(mouse):
screen.finish()
return 1
-def startX(resolution):
+def startX(resolution, nofbmode):
# print "Inside startX"
# print resolution
+ print nofbmode
# time.sleep (5)
global serverPath
@@ -118,24 +119,37 @@ def startX(resolution):
# print serverPath, "missing. Falling back to text mode"
raise RuntimeError, "No X server binaries found to run"
- try:
- fbdevice = open("/dev/fb0", "r") #-- If can't access /dev/fb0, we're not in framebuffer mode
- fbdevice.close()
+# try:
+ if nofbmode == 0:
+ try:
+ fbdevice = open("/dev/fb0", "r") #-- If can't access /dev/fb0, we're not in framebuffer mode
+ fbdevice.close()
+
+ testx(mouse, x)
- testx(mouse, x)
- except (RuntimeError, IOError):
- from log import log
- log.open(0, 0, 0, 0)
- log ("can't open /dev/fb0")
- log.close()
+ except (RuntimeError, IOError):
+ from log import log
+ log.open(0, 0, 0, 0)
+ log ("can't open /dev/fb0")
+ log.close()
+ x.server = probedServer
+
+ if not x.server:
+ print "Unknown card"
+ raise RuntimeError, "Unable to start X for unknown card"
+
+ # if this fails, we want the exception to go back to anaconda to
+ # it knows that this didn't work
+ testx(mouse, x)
+
+ else: #-We're in nofb mode
x.server = probedServer
if not x.server:
print "Unknown card"
raise RuntimeError, "Unable to start X for unknown card"
-
# if this fails, we want the exception to go back to anaconda to
# it knows that this didn't work
testx(mouse, x)