Last active
February 6, 2021 16:25
-
-
Save Ligh7bringer/15cec155545103ca5b23ae9af7e854c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/optimus_manager/xorg.py b/optimus_manager/xorg.py | |
index 11f573e..5460124 100644 | |
--- a/optimus_manager/xorg.py | |
+++ b/optimus_manager/xorg.py | |
@@ -208,7 +208,10 @@ def _generate_hybrid(config, bus_ids, xorg_extra): | |
"\tOption \"AllowNVIDIAGPUScreens\"\n" \ | |
"EndSection\n\n" | |
- text += _make_intel_device_section(config, bus_ids, xorg_extra_lines_integrated) | |
+ if "intel" in bus_ids: | |
+ text += _make_intel_device_section(config, bus_ids, xorg_extra_lines_integrated) | |
+ else: | |
+ text += _make_amd_device_section(config, bus_ids, xorg_extra_lines_integrated) | |
text += "Section \"Screen\"\n" \ | |
"\tIdentifier \"integrated\"\n" \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment