I read through the archwiki page for Xorg and wasn’t sure if these changes would do the right thing, so I am asking about it here. I recently bought an RX580 to use as a dGPU to run my displays, so that my Nvidia gpu could be used solely for CUDA.
Since when I installed Manjaro I only had the Nvidia card in the system, X was automatically configured to use it, now I want to reconfigure it to only use the amd card. I already installed the amdgpu drivers, but I wasn’t sure what changes should be made to Xorg.
What is the difference between the config files stored in /etc/X11/xorg.conf.d/ and plain old /etc/X11/xorg.conf?
if my xorg.conf looks like below:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 440.82
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 980 Ti"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "AllowEmptyInitialConfiguration" "True"
Option "Coolbits" "28"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Then from what I have read I need to add a “Device” section for my RX580, and then under the section “Screen” I need to remove the coolbits option and add the device name I give to my amd card where it says “Device0”. Would that be enough to fix my configuration to start X on my amd gpu? Are there any additional side effects I should be made aware of?