summaryrefslogtreecommitdiffstats
path: root/xf86config.py
diff options
context:
space:
mode:
authorbfox <bfox>2001-04-16 21:56:50 +0000
committerbfox <bfox>2001-04-16 21:56:50 +0000
commitccdf93cbed6f72c986099d314fb4ddf0b18a0f16 (patch)
treee10ef4dbdb268fd5f83395aac54c40215031fc21 /xf86config.py
parent9b867ef8638fb6033a5326b376f73369a1ef49a1 (diff)
downloadanaconda-ccdf93cbed6f72c986099d314fb4ddf0b18a0f16.tar.gz
anaconda-ccdf93cbed6f72c986099d314fb4ddf0b18a0f16.tar.xz
anaconda-ccdf93cbed6f72c986099d314fb4ddf0b18a0f16.zip
don't probe for laptop in 'def test'. add 1280x1024 for ATI Rage Mobility. initialize cards to [], so list will be empty if kudzu probe fails.
Diffstat (limited to 'xf86config.py')
-rw-r--r--xf86config.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/xf86config.py b/xf86config.py
index e35354125..e274f8f22 100644
--- a/xf86config.py
+++ b/xf86config.py
@@ -842,6 +842,7 @@ class XF86Config:
# PCI probe for video cards
sections = {}
+ cards = []
cards = kudzu.probe (kudzu.CLASS_VIDEO,
kudzu.BUS_UNSPEC,
kudzu.PROBE_ALL);
@@ -973,9 +974,9 @@ class XF86Config:
# PCI descr, (horiz, vert), modes
laptops = (("ATI|Rage Mobility",
("30-110", "60-110"),
- { "8" : ["800x600", "1024x768", "1400x1050"],
- "16" : ["800x600", "1024x768", "1400x1050"],
- "32" : ["800x600", "1024x768", "1400x1050"]}),
+ { "8" : ["800x600", "1024x768", "1280x1024", "1400x1050"],
+ "16" : ["800x600", "1024x768", "1280x1024", "1400x1050"],
+ "32" : ["800x600", "1024x768", "1280x1024", "1400x1050"]}),
)
for (card, (horiz, vert), modes) in laptops:
if (len(self.descr) >= len (card)
@@ -993,9 +994,7 @@ class XF86Config:
files = self.files
modes = self.modes
- laptop = self.laptop()
- if laptop:
- self.modes = laptop
+
self.files = """
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"