Hi
I have a Ubuntu 16.04 machine with 2 Nvidia cards a Quadro K5200 and a Tesla K40c . I have setup CUDA 9.1 and it installed from ( http://developer.download.nvidia.com/compute/cuda/9.1/secure/Prod/local_installers/cuda_9.1.85_387.26_linux.run )
The CUDA programs are working ( deviceQuery, nvidia-smi ). But the GUI display is not coming up . I switched from lightdm to gdm3 and this is the error I see ( /var/lib/gdm3/.local/share/xorg/Xorg.0.log )
Screen(s) found, but none have a usable configuration
This is the various outputs of commands
lspci |grep -i vga 04:00.0 VGA compatible controller: NVIDIA Corporation GK110GL [Quadro K5200] (rev a1)
Probably xorg.conf congfiguration is not matching the fact that you want your GUI to be running on the K5200, and the --enable-all-gpus switch is not helping (why don’t you try that command without that switch? That is what the error message is indicating)
Thanks @txbob . But that did not help . I added a K5200 as follows
Section “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “Quadro K5200”
EndSection
but now I get an error [ 907.819] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:4:0:0. Please
[ 907.819] (EE) NVIDIA(GPU-0): check your system’s kernel log for additional error
[ 907.819] (EE) NVIDIA(GPU-0): messages and refer to Chapter 8: Common Problems in the
[ 907.819] (EE) NVIDIA(GPU-0): README for additional information.
[ 907.819] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA graphics device!
[ 907.819] (EE) NVIDIA(0): Failing initialization of X screen 0
Doing lspci | grep nvidia seems to indicate that the device is correct
03:00.0 3D controller: NVIDIA Corporation GK110BGL [Tesla K40c] (rev a1)
04:00.0 VGA compatible controller: NVIDIA Corporation GK110GL [Quadro K5200] (rev a1)
04:00.1 Audio device: NVIDIA Corporation GK110 HDMI Audio (rev a1)
[ 191.640837] NVRM: RmInitAdapter failed! (0x30:0xffff:662)
[ 191.640870] NVRM: rm_init_adapter failed for device bearing minor number 1
[ 192.070408] NVRM: failed to copy vbios to system memory.
I have one observation ( not sure if that is the cause of the problem )
The K5200 has 2 display output and I had connected the monitor to one of them . I decided to switch the monitor ports and suddenly I am not able to do Ctrl+Alt+F1 etc. and the font sizes even on the console mode have gone to 640x480
I am not sure if that has got any bearing on this at all ?
$ sudo nvidia-xconfig --enable-all-gpus
[sudo] password for alex:
Using X configuration file: "/etc/X11/xorg.conf".
ERROR: Unable to determine number of GPUs in system; cannot honor '--enable-all-gpus' option.
Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'
New X configuration file written to '/etc/X11/xorg.conf'
$ lsmod |grep -i nouv
$ uname -a
Linux alex-XPS-15-9570 5.0.0-36-generic #39~18.04.1-Ubuntu SMP Tue Nov 12 11:09:50 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ kf5-config --version
Qt: 5.9.5
KDE Frameworks: 5.44.0
kf5-config: 1.0