diff options
author | Mike Fulbright <msf@redhat.com> | 2001-08-10 00:31:46 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-08-10 00:31:46 +0000 |
commit | c169fd5d81200929cb45ca15e0153df5a7644112 (patch) | |
tree | 8ff60b35aeb69a2c5e9b84318abb00d08e94aa68 /iw/xconfig_gui.py | |
parent | 6e9d373c87269d1cf259fd8791da59a7a5dd7d31 (diff) | |
download | anaconda-c169fd5d81200929cb45ca15e0153df5a7644112.tar.gz anaconda-c169fd5d81200929cb45ca15e0153df5a7644112.tar.xz anaconda-c169fd5d81200929cb45ca15e0153df5a7644112.zip |
handle video cards which probe ok, but for some reason the native X server doesnt work, and we fallback to VGA. Need to remember to configure the probed card later (and hope it works?). Fixed bug # 51273
Diffstat (limited to 'iw/xconfig_gui.py')
-rw-r--r-- | iw/xconfig_gui.py | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/iw/xconfig_gui.py b/iw/xconfig_gui.py index 3f55f3189..0608f9544 100644 --- a/iw/xconfig_gui.py +++ b/iw/xconfig_gui.py @@ -19,10 +19,12 @@ import sys import iutil import glob import gdkpixbuf +import gui from gtk import * from iw_gui import * from translate import _, N_ from monitor import isValidSyncRange +from videocard import Videocard_blacklist class XCustomWindow (InstallWindow): @@ -217,7 +219,6 @@ class XCustomWindow (InstallWindow): # which has a single corresponding resolution # manualmodes = self.xconfig.getManualModes() - if manualmodes: self.selectedDepth = manualmodes.keys()[0] self.selectedRes = manualmodes[self.selectedDepth][0] @@ -225,6 +226,10 @@ class XCustomWindow (InstallWindow): self.selectedDepth = None self.selectedRes = None + # if selected depth not acceptable then force it to be at least 8bpp + if self.selectedDepth and int(self.selectedDepth) < 8: + self.selectedDepth = "8" + if not self.selectedDepth or not self.selectedRes: if len(available) == 1: self.res_combo.set_popdown_strings (available["8"]) @@ -693,6 +698,18 @@ class XConfigWindow (InstallWindow): server = "XF86_" + card_data["SERVER"] primary_card.setXServer(server) + else: + self.intf.messageWindow(_("Unspecified video card"), + _("You need to pick a video card before " + "X configuration can continue. If you " + "want to skip X configuration entirely " + "choose the 'Skip X Configuration' button.")) + raise gui.StayOnScreen + + + # see if they actually picked a card, otherwise keep going + + # sniff out the selected ram size menu = self.ramOption.get_menu ().get_active() @@ -703,6 +720,7 @@ class XConfigWindow (InstallWindow): index = index + 1 vidram = self.videocard.possible_ram_sizes()[index] + self.videocard.primaryCard().setVideoRam(str(vidram)) self.xconfig.setVideoCard(self.videocard.primaryCard()) self.xconfig.filterModesByMemory () @@ -805,6 +823,7 @@ class XConfigWindow (InstallWindow): self.dispatch = dispatch self.videocard = videocard self.xconfig = xconfig + self.intf = intf box = GtkVBox (FALSE, 0) box.set_border_width (0) @@ -895,6 +914,11 @@ class XConfigWindow (InstallWindow): for card in cards: temp = string.lower(card) + # don't let them configure VGA16 + if card in Videocard_blacklist: + other_cards.remove(card) + continue + manufacturers = self.videocard.manufacturerDB() manufacturers.append("Generic") for man in manufacturers: |