diff options
author | jakub <jakub> | 1999-10-19 15:46:46 +0000 |
---|---|---|
committer | jakub <jakub> | 1999-10-19 15:46:46 +0000 |
commit | c92ec4610dab49b285e8d7a78ca70687bfe1476b (patch) | |
tree | e243801e849c05bc67a454e0cb2074ebd37a9d9a /xserver.py | |
parent | 09f8b08cb62857a034d5495a54ab2f6e7dc9ae6e (diff) | |
download | anaconda-c92ec4610dab49b285e8d7a78ca70687bfe1476b.tar.gz anaconda-c92ec4610dab49b285e8d7a78ca70687bfe1476b.tar.xz anaconda-c92ec4610dab49b285e8d7a78ca70687bfe1476b.zip |
Write prelude and keyboard sections of /etc/X11/XF86Config for Sun servers as well
(see xinitrc changes).
On SPARC mach64 use the resolution console was using up to the point where X is
going to be started. This could solve DaveM's problems with Mach64 installation
end.
Diffstat (limited to 'xserver.py')
-rw-r--r-- | xserver.py | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/xserver.py b/xserver.py index bdaac61c4..47fe12cf6 100644 --- a/xserver.py +++ b/xserver.py @@ -137,12 +137,16 @@ Section "Pointer" %(emulate)s EndSection """ % settings) - f.write (x.monitorSection ()) + f.write (x.monitorSection (1)) f.write (x.deviceSection ()) - x.modes["32"] = [ "640x480" ] - x.modes["16"] = [ "640x480" ] - x.modes["8"] = [ "640x480" ] - f.write (x.screenSection ()) + if x.monSect: + bpp = x.bpp + else: + x.modes["32"] = [ "640x480" ] + x.modes["16"] = [ "640x480" ] + x.modes["8"] = [ "640x480" ] + bpp = None + f.write (x.screenSection (1)) f.close () server = os.fork() @@ -175,6 +179,9 @@ EndSection else: args.append("-xf86config") args.append("/tmp/XF86Config") + if bpp: + args.append("-bpp") + args.append(bpp) os.execv(serverPath, args) # give time for the server to fail (if it is going to fail...) |