Logo Search packages:      
Sourcecode: kde-guidance version File versions  Download package

def displayconfigabstraction::XSetup::_detectGfxCards (   self,
  pci_bus 
) [private]

Scans the PCI bus for graphics cards.

Returns a list of (PCI_ID, PCIDevice, GfxCard) tuples.

Definition at line 482 of file displayconfigabstraction.py.

00482                                      :
        """Scans the PCI bus for graphics cards.
        
        Returns a list of (PCI_ID, PCIDevice, GfxCard) tuples."""
        self.gfx_card_db = GetGfxCardModelDB()
        vesa_model = "VESA driver (generic)"
        
        # Look for a gfxcard.
        found_list = []
        for pci_device in pci_bus.devices:
            if pci_device.isGfxCard():
                pci_id = "PCI:%i:%i:%i" % (pci_device.pci_bus, pci_device.pci_device, pci_device.pci_function)
                model = None
                try:
                    cardname = pci_device.getModule()
                    if not pci_device.isModuleXorgDriver():
                        cardname = vesa_model
                    model = self.gfx_card_db.getGfxCardModelByName(cardname)
                except KeyError:
                    model = self.gfx_card_db.getGfxCardModelByName(vesa_model)
                found_list.append( (pci_id,pci_device,model) )
                    
        return found_list

    def _canonicalPCIBusID(self,bus_id):


Generated by  Doxygen 1.6.0   Back to index