def postInstall(fromVersion, fromRelease, toVersion, toRelease): if "0.90" <= fromVersion <= "0.96": from zorg import config busId = call("zorg", "Xorg.Display", "activeDeviceID") device = config.getDeviceInfo(busId) if device: config.saveDeviceInfo(device) config.saveXorgConfig(device)
def postInstall(fromVersion, fromRelease, toVersion, toRelease): if fromVersion and Version("0.90") <= Version(fromVersion) <= Version("0.96"): from zorg import config busId = call("zorg", "Xorg.Display", "activeDeviceID") device = config.getDeviceInfo(busId) if device: config.saveDeviceInfo(device) config.saveXorgConfig(device)
def postInstall(fromVersion, fromRelease, toVersion, toRelease): if fromVersion and Version("0.90") <= Version(fromVersion) <= Version("0.96"): from zorg import config busId = call("zorg", "Xorg.Display", "activeDeviceID") device = config.getDeviceInfo(busId) if device: config.saveDeviceInfo(device) config.saveXorgConfig(device) if fromRelease and int(fromRelease) < 81: from zorg import config layout, variant = config.getKeymapOld() config.saveKeymap(layout, variant)
def postInstall(fromVersion, fromRelease, toVersion, toRelease): enabledPackage = "/var/lib/zorg/enabled_package" if os.path.exists(enabledPackage) and file(enabledPackage).read() == "ati-drivers": call("ati_drivers", "Xorg.Driver", "enable") if fromVersion and Version(fromVersion) < Version("9.3"): from zorg import config busId = call("zorg", "Xorg.Display", "activeDeviceID") device = config.getDeviceInfo(busId) if device: device.probe_result["flags"] = "randr12" config.saveDeviceInfo(device) config.saveXorgConfig(device)
def postInstall(fromVersion, fromRelease, toVersion, toRelease): if fromVersion and Version("0.90") <= Version(fromVersion) <= Version( "0.96"): from zorg import config busId = call("zorg", "Xorg.Display", "activeDeviceID") device = config.getDeviceInfo(busId) if device: config.saveDeviceInfo(device) config.saveXorgConfig(device) if fromRelease and int(fromRelease) < 81: from zorg import config layout, variant = config.getKeymapOld() config.saveKeymap(layout, variant)
def postInstall(fromVersion, fromRelease, toVersion, toRelease): enabledPackage = "/var/lib/zorg/enabled_package" if os.path.exists(enabledPackage) and file( enabledPackage).read() == "ati-drivers": call("ati_drivers", "Xorg.Driver", "enable") if fromVersion and Version(fromVersion) < Version("9.3"): from zorg import config busId = call("zorg", "Xorg.Display", "activeDeviceID") device = config.getDeviceInfo(busId) if device: device.probe_result["flags"] = "randr12" config.saveDeviceInfo(device) config.saveXorgConfig(device)