diff options
author | Chris Lumens <clumens@redhat.com> | 2005-12-12 16:03:48 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2005-12-12 16:03:48 +0000 |
commit | abfb305c11dc03a46f43562496c587d860b269b6 (patch) | |
tree | db348db25d1b3c9c03fca55bcddc7d764c5ed3f6 /xsetup.py | |
parent | c97e772dc9a0d47aa81067227154a883bf1ca79a (diff) | |
download | anaconda-abfb305c11dc03a46f43562496c587d860b269b6.tar.gz anaconda-abfb305c11dc03a46f43562496c587d860b269b6.tar.xz anaconda-abfb305c11dc03a46f43562496c587d860b269b6.zip |
Write out a monitor keyword to the generated kickstart file.
Diffstat (limited to 'xsetup.py')
-rw-r--r-- | xsetup.py | 20 |
1 files changed, 14 insertions, 6 deletions
@@ -88,17 +88,28 @@ class XSetup: f.write(" " + arg) f.write("\n") - def getArgList(self, res, depth): + f.write("monitor") + for arg in self.getMonitorArgList(): + f.write(" " + arg) + f.write("\n") + + def getMonitorArgList(self): args = [] monitor = self.xhwstate.monitor + + args = args + [ "--hsync", monitor.getMonitorHorizSync() ] + args = args + [ "--vsync", monitor.getMonitorVertSync() ] + + return args + + def getArgList(self, res, depth): + args = [] vc = self.xhwstate.videocard args = args + [ "--driver", '"' + vc.primaryCard().getDriver() + '"' ] vram = vc.primaryCard().getVideoRam() if vram is not None: args = args + [ "--videoram", vram] - args = args + [ "--hsync", monitor.getMonitorHorizSync() ] - args = args + [ "--vsync", monitor.getMonitorVertSync() ] # XXX this isn't really quite right, but it works for the way # things are now @@ -106,6 +117,3 @@ class XSetup: args = args + [ "--depth", str(depth) ] return args - - - |