xorg.conf 要清空用下面这段
把下面配置的 BusID 改成上一步生成的默认配置中的 BusID, 然后替换 /etc/X11/xorg.conf 原有的内容
```
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "<BusID for NVIDIA device here>"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
# Uncomment this line if your computer has no display devices connected to
# the NVIDIA GPU. Leave it commented if you have display devices
# connected to the NVIDIA GPU that you would like to use.
#Option "UseDisplayDevice" "none"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
```
之后跑下面这段代码
```
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
```
@
miracleyin