Skip to content

Instantly share code, notes, and snippets.

@Ligh7bringer
Last active February 6, 2021 16:25
Show Gist options
  • Save Ligh7bringer/15cec155545103ca5b23ae9af7e854c7 to your computer and use it in GitHub Desktop.
Save Ligh7bringer/15cec155545103ca5b23ae9af7e854c7 to your computer and use it in GitHub Desktop.
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