I have 2 graphic cards (gtx 1070) attached to the mainboard. lspci detects both cards
$ lspci | grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1b81 (rev a1)
02:00.0 VGA compatible controller: NVIDIA Corporation Device 1b81 (rev a1)
But there's only one "Device" Section in the xorg.conf file, and there's no graphic output on the card that X Server doesn't detect. I then tried adding the second graphic card manually, by adding Screen 1 “FakeScreen1”
to Section "ServerLayout"
and
Section "Monitor"
Identifier “FakeMonitor1”
VendorName “Dummy”
ModelName “Dummy”
EndSection
Section "Device"
Identifier "Device1”
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "Coolbits" "31"
BusID "PCI:2:0:0"
EndSection
Section "Screen"
Identifier “FakeScreen1”
Device "Device1”
Monitor “FakeMonitor1”
DefaultDepth 24
Option "Coolbits" "31"
SubSection "Display"
Depth 24
EndSubSection
EndSection
to the end of the xorg.conf file. Ubuntu fails to boot after that, with this error on blank screen:
I then overwrite the tweaked xorg.conf with the default-back-up-xorg.conf and ubuntu reverts back to previous state with 2nd gpu not detected by X.
Where did I get it wrong? What can I do to make X recognized the second gpu?