def run(self):
        hwList = []

        #mir = Mirror(self.distribution, self.log)
        nv = Nvidia(self.distribution, self.log)
        ati = ATI(self.distribution, self.log)
        bc = Broadcom(self.distribution, self.log)
        pae = PAE(self.distribution, self.log)

        # Collect supported hardware
        #mirror = mir.getFastestMirror()
        hwNvidia = nv.getNvidia()
        hwATI = ati.getATI()
        hwBroadcom = bc.getBroadcom()
        hwPae = pae.getPae()

        # Combine all found hardware in a single list
        #for line in mirror:
        #    hwList.append(line)
        for line in hwPae:
            hwList.append(line)
        for line in hwNvidia:
            hwList.append(line)
        for line in hwATI:
            hwList.append(line)
        for line in hwBroadcom:
            hwList.append(line)

        return hwList
Beispiel #2
0
    def installPAE(self):
        try:
            cmdPae = 'apt-get -y --force-yes install linux-headers-686-pae linux-image-686-pae'
            # Check if already installed
            status = functions.getPackageStatus('linux-headers-686-pae')
            if status == packageStatus[0]:
                cmdPae += ' --reinstall'
            self.log.write('PAE kernel install command: ' + cmdPae,
                           'pae.installPAE', 'debug')
            self.ec.run(cmdPae)

            # Check for Nvidia
            nv = Nvidia(self.distribution, self.log)
            nvList = nv.getNvidia()
            self.log.write('Nvidia info: ' + str(nvList), 'pae.installPAE',
                           'debug')
            for nvInfo in nvList:
                if nvInfo[2] == packageStatus[0]:
                    self.log.write('Install Nvidia drivers', 'pae.installPAE',
                                   'info')
                    nv.installNvidia()

            # Remove xorg.conf
            #xorg = '/etc/X11/xorg.conf'
            #if os.path.exists(xorg):
            #    shutil.move(xorg, xorg + '.ddm')
            #    self.log.write('Moved ' + xorg + ' to ' + xorg + '.ddm', 'pae.installPAE', 'info')

        except Exception, detail:
            self.log.write(detail, 'pae.installPAE', 'error')
Beispiel #3
0
 def installPAE(self):
     try:
         cmdPae = 'apt-get -y --force-yes install linux-headers-686-pae linux-image-686-pae'
         # Check if already installed
         status = functions.getPackageStatus('linux-headers-686-pae')
         if status == packageStatus[0]:
             cmdPae += ' --reinstall'
         self.log.write('PAE kernel install command: ' + cmdPae, 'pae.installPAE', 'debug')
         self.ec.run(cmdPae)
         
         # Check for Nvidia
         nv = Nvidia(self.distribution, self.log)
         nvList = nv.getNvidia()
         self.log.write('Nvidia info: ' + str(nvList), 'pae.installPAE', 'debug')
         for nvInfo in nvList:
             if nvInfo[2] == packageStatus[0]:
                 self.log.write('Install Nvidia drivers', 'pae.installPAE', 'info')
                 nv.installNvidia()
         
         # Remove xorg.conf
         #xorg = '/etc/X11/xorg.conf'
         #if os.path.exists(xorg):
         #    shutil.move(xorg, xorg + '.ddm')
         #    self.log.write('Moved ' + xorg + ' to ' + xorg + '.ddm', 'pae.installPAE', 'info')
             
     except Exception, detail:
         self.log.write(detail, 'pae.installPAE', 'error')
Beispiel #4
0
    def run(self):
        hwList = []

        nv = Nvidia(self.distribution, self.log)
        ati = ATI(self.distribution, self.log)
        bc = Broadcom(self.distribution, self.log)
        pae = PAE(self.distribution, self.log)

        # Collect supported hardware
        hwNvidia = nv.getNvidia()
        hwATI = ati.getATI()
        hwBroadcom = bc.getBroadcom()
        hwPae = pae.getPae()

        # Combine all found hardware in a single list
        for line in hwNvidia:
            hwList.append(line)
        for line in hwATI:
            hwList.append(line)
        for line in hwBroadcom:
            hwList.append(line)
        for line in hwPae:
            hwList.append(line)

        return hwList