def get(self): """On/off composite""" defaultCompositeOn = ("nvidia","intel","fglrx","nouveau","radeon") composite = getValueFromCmdLine("calculate",5) videodrv = getValueFromCmdLine("calculate",4) if videodrv != "auto": composite = {'nocomposite':'off', 'off':'off', 'on':'on', 'composite':'on'}.get(composite) else: composite = None if self.Get('os_install_x11_video_drv') in defaultCompositeOn: defaultComposite = "on" elif self.Get('hr_virtual') == 'vmware': defaultComposite = "on" else: defaultComposite = "off" if self.Get('os_install_x11_video_drv') == self.Get('os_x11_video_drv'): state = getCompositeFromXorgconf() else: state = None return composite or state or defaultComposite
def get(self): state = getCompositeFromXorgconf('/') return state or "off"