Kaydet (Commit) ac4a59e9 authored tarafından Fatih Aşıcı's avatar Fatih Aşıcı

change kernel option: xorg=composite --> enable_composite

üst 2e9f6438
...@@ -632,10 +632,13 @@ class intelWorkaround: ...@@ -632,10 +632,13 @@ class intelWorkaround:
run(*cmd) run(*cmd)
def getKernelOpt(cmdopt): def getKernelOpt(cmdopt=None):
for cmd in "".join(loadFile("/proc/cmdline")).split(): if cmdopt:
if cmd.startswith("%s=" % cmdopt): for cmd in "".join(loadFile("/proc/cmdline")).split():
return cmd[len(cmdopt)+1:].split(",") if cmd.startswith("%s=" % cmdopt):
return cmd[len(cmdopt)+1:].split(",")
else:
return "".join(loadFile("/proc/cmdline")).split()
return "" return ""
...@@ -906,7 +909,7 @@ def keysVideoCards(cards): ...@@ -906,7 +909,7 @@ def keysVideoCards(cards):
keys_vc["AIGLX_OPTS"] = "" keys_vc["AIGLX_OPTS"] = ""
if "composite" in getKernelOpt("xorg"): if "enable_composite" in getKernelOpt():
if cards[i].Driver in ("ati", "intel"): if cards[i].Driver in ("ati", "intel"):
keys_vc["AIGLX_OPTS"] = 'Option "XAANoOffscreenPixmaps" "true"' keys_vc["AIGLX_OPTS"] = 'Option "XAANoOffscreenPixmaps" "true"'
...@@ -946,7 +949,7 @@ def keysMonitors(monitors, cards): ...@@ -946,7 +949,7 @@ def keysMonitors(monitors, cards):
else: else:
keys_mon["DEPTH"] = "16" keys_mon["DEPTH"] = "16"
if cards[i].Driver == "ati" and "composite" in getKernelOpt("xorg"): if cards[i].Driver == "ati" and "enable_composite" in getKernelOpt():
keys_mon["DEPTH"] = "24" keys_mon["DEPTH"] = "24"
sec_monitor += template_monitor % keys_mon sec_monitor += template_monitor % keys_mon
...@@ -1060,7 +1063,7 @@ def autoConfigure(): ...@@ -1060,7 +1063,7 @@ def autoConfigure():
# Enable composite extension if requested # Enable composite extension if requested
keys_main["AIGLX_OPTS"] = "" keys_main["AIGLX_OPTS"] = ""
if "composite" in getKernelOpt("xorg"): if "enable_composite" in getKernelOpt():
keys_main["COMPOSITE"] = composite_option keys_main["COMPOSITE"] = composite_option
if cards[0].Driver in ("ati", "intel"): if cards[0].Driver in ("ati", "intel"):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment