From d5992722992998474c9fb21224f45f55ce0e6459 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 28 Apr 2009 07:54:56 +0000 Subject: Check PCI class when detecting video cards Dual-head ATI cards appears twice on the PCI bus, once in the DISPLAY_OTHER class and once in the DISPLAY_VGA class. They did that for compatibility with Win2000. Make sure we don't think the system has 2 video cards in such cases. --- lib/Xconfig/card.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/Xconfig/card.pm') diff --git a/lib/Xconfig/card.pm b/lib/Xconfig/card.pm index 4575414..e6054ce 100644 --- a/lib/Xconfig/card.pm +++ b/lib/Xconfig/card.pm @@ -104,7 +104,10 @@ sub probe() { } else { internal_error(); } - $card; + #dual head ATI card have a dummy DISPLAY_OTHER pci device because it + #was needed by Win2000, filter those out because we don't want to + #behave as if there were 2 video cards in the system in such cases + ($_->{'media_type'} eq 'DISPLAY_VGA')?$card:(); } @c; if (@cards >= 2 && $cards[0]{card_name} eq $cards[1]{card_name} && $cards[0]{card_name} eq 'Intel 830 - 965') { -- cgit v1.2.1