示例#1
0
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)
示例#2
0
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)
示例#3
0
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)
示例#4
0
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)
示例#5
0
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)
示例#6
0
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)