예제 #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)