- Supondo que nenhum driver esteja instalado e nenhuma GPU instalada no computador
- Adicione a GPU da AMD ao computador, inicie o Ubuntu
- Instalar o driver amdgpu-pro
- Instale o driver nvidia (por exemplo, via
sudo apt install nvidia-384) - Computador de desligamento
- Adicione a placa NVidia ao computador, inicie o Ubuntu
- Mude para o modo de console por meio de
Ctrl+Alt+F1 -
sudo nvidia-xconfig -
sudo nano /etc/X11/xorg.conf - Comente ou exclua todas as linhas, exceto as seções Monitor, Dispositivo e Tela (editar na raiz). Exemplo de resultado:
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
-
lspci | egrep -h "VGA|3D controller"- lembre-se de identificadores no início de cada linha:
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii XT [Radeon R9 290X] (rev 80) 02:00.0 VGA compatible controller: NVIDIA Corporation GK110 [GeForce GTX TITAN] (rev a1)
-
sudo nano /etc/X11/xorg.confe use esses identificadores:
Section "Monitor"
... no changes ...
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusId "PCI:2@0:0:0" # Add this line (identifier 2 taken from lspci output on the previous step)
EndSection
# Add similar section for AMD card:
Section "Device"
Identifier "Device1"
Driver "amdgpu"
BusId "PCI:1@0:0:0" # Identifier 1 taken from lspci output
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0" # This identifier should be from the GPU device connected to display (you need NVidia, so it is Device0)
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
- Desligamento
- Conecte a exibição ao cartão NVidia
- Inicie o Ubuntu - tudo deve funcionar
Se não funcionar, forneça a saída de lspci | egrep -h "VGA|3D controller" , seu /etc/X11/xorg.conf e /var/log/Xorg.0.log .
P.S. alguém, por favor, me guie como "postar" corretamente essa resposta para essas perguntas semelhantes: