Laptop unable to display on external monitors on Ubuntu 20.04

Objective: Utilize 2 external monitors with this laptop

Problem: Cannot display on any external monitors, though when this computer is in Windows 10 mode (dual booted), there is no issue.

Dell Latitude G5 5590
CPU: Intel i7-9750H @ 2.6MHz (turboboost disabled)
Two GPUS:

  • Intel 630 (CFL GT2)
  • TU106M [GeForce RTX 2060 Mobile]
    Ubuntu Studio 20.05
    Kernel: 5.4.0-66-lowlatency

Previous threads examined, similar but not resolving the issue;

nvidia-smi shows;

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.32.03    Driver Version: 460.32.03    CUDA Version: 11.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  GeForce RTX 2060    On   | 00000000:01:00.0 Off |                  N/A |
| N/A   56C    P8     7W /  N/A |      1MiB /  5934MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

sudo lshw -c video shows:

  *-display                 
       description: VGA compatible controller
       product: TU106M [GeForce RTX 2060 Mobile]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:169 memory:ec000000-ecffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:4000(size=128) memory:ed000000-ed07ffff
  *-display
       description: VGA compatible controller
       product: UHD Graphics 630 (Mobile)
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:167 memory:eb000000-ebffffff memory:80000000-8fffffff ioport:5000(size=64) memory:c0000-dffff

inxi -G shows the driver has been loaded (though the version may be too recent?);

Graphics:  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel 
           Device-2: NVIDIA TU106M [GeForce RTX 2060 Mobile] driver: nvidia v: 460.32.03 
           Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa tty: N/A 
           OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.2.6 

nvidia-settings only show the following;

ERROR: Unable to load info from any available system


(nvidia-settings:62511): GLib-GObject-CRITICAL **: 09:00:50.606: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** Message: 09:00:50.609: PRIME: Requires offloading
** Message: 09:00:50.609: PRIME: is it supported? yes
** Message: 09:00:50.649: PRIME: Usage: /usr/bin/prime-select nvidia|intel|on-demand|query
** Message: 09:00:50.649: PRIME: on-demand mode: "1"
** Message: 09:00:50.649: PRIME: is "on-demand" mode supported? yes

NVIDIA-settings

Secure boot is disabled: mokutil --sb-state

SecureBoot disabled
Platform is in Setup Mode

Output of dpkg -l | grep nvidia :

ii  libnvidia-cfg1-460:amd64                      460.32.03-0ubuntu1                     amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-460                          460.32.03-0ubuntu1                     all          Shared files used by the NVIDIA libraries
rc  libnvidia-compute-450:amd64                   450.51.05-0ubuntu1                     amd64        NVIDIA libcompute package
ii  libnvidia-compute-460:amd64                   460.32.03-0ubuntu1                     amd64        NVIDIA libcompute package
rc  libnvidia-compute-460-server:amd64            460.32.03-0ubuntu0.20.04.1             amd64        NVIDIA libcompute package
ii  libnvidia-decode-460:amd64                    460.32.03-0ubuntu1                     amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-460:amd64                    460.32.03-0ubuntu1                     amd64        NVENC Video Encoding runtime library
ii  libnvidia-extra-460:amd64                     460.32.03-0ubuntu1                     amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-460:amd64                      460.32.03-0ubuntu1                     amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-460:amd64                        460.32.03-0ubuntu1                     amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-460:amd64                      460.32.03-0ubuntu1                     amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  libnvidia-ml-dev                              10.1.243-3                             amd64        NVIDIA Management Library (NVML) development files
rc  nvidia-compute-utils-450                      450.51.05-0ubuntu1                     amd64        NVIDIA compute utilities
ii  nvidia-compute-utils-460                      460.32.03-0ubuntu1                     amd64        NVIDIA compute utilities
ii  nvidia-cuda-dev                               10.1.243-3                             amd64        NVIDIA CUDA development files
ii  nvidia-cuda-doc                               10.1.243-3                             all          NVIDIA CUDA and OpenCL documentation
ii  nvidia-cuda-gdb                               10.1.243-3                             amd64        NVIDIA CUDA Debugger (GDB)
ii  nvidia-cuda-toolkit                           10.1.243-3                             amd64        NVIDIA CUDA development toolkit
rc  nvidia-dkms-450                               450.51.05-0ubuntu1                     amd64        NVIDIA DKMS package
ii  nvidia-dkms-460                               460.32.03-0ubuntu1                     amd64        NVIDIA DKMS package
ii  nvidia-driver-460                             460.32.03-0ubuntu1                     amd64        NVIDIA driver metapackage
rc  nvidia-kernel-common-450                      450.51.05-0ubuntu1                     amd64        Shared files used with the kernel module
ii  nvidia-kernel-common-460                      460.32.03-0ubuntu1                     amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-460                      460.32.03-0ubuntu1                     amd64        NVIDIA kernel source package
ii  nvidia-opencl-dev:amd64                       10.1.243-3                             amd64        NVIDIA OpenCL development files
ii  nvidia-prime                                  0.8.15.3~0.20.04.1                     all          Tools to enable NVIDIA's Prime
ii  nvidia-profiler                               10.1.243-3                             amd64        NVIDIA Profiler for CUDA and OpenCL
ii  nvidia-settings                               460.32.03-0ubuntu1                     amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-460                              460.32.03-0ubuntu1                     amd64        NVIDIA driver support binaries
ii  nvidia-visual-profiler                        10.1.243-3                             amd64        NVIDIA Visual Profiler for CUDA and OpenCL
ii  screen-resolution-extra                       0.18build1                             all          Extension for the nvidia-settings control panel
ii  xserver-xorg-video-nvidia-460                 460.32.03-0ubuntu1                     amd64        NVIDIA binary Xorg driver

There is no output from lsmod | grep nvidia

/etc/X11/xorg.conf contains;

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 460.32.03

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"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Output from sudo nvidia-bug-report.sh is attached;

nvidia-bug-report.log.gz (10.7 MB)

xrandr --listproviders shows;

Providers: number : 1
Provider 0: id: 0x47 cap: 0x9, Source Output, Sink Offload crtcs: 3 outputs: 5 associated providers: 0 name:modesetting

I had upgraded the NVIDIA drivers to 460, though that didn’t work, and for some reason I’m having difficulty reverting the version to something earlier, such as 450

Am I missing anything obvious?

Please delete /etc/X11/xorg.conf and embed the driver into the initrd:
https://forums.developer.nvidia.com/t/linux-mint-nvidia-driver-loads-with-startx-but-not-on-initial-startup/168262/2?u=generix

1 Like

While still not able to utilize any external monitor, I think we are almost there.

Removed /etc/X11/xorg.conf (actually renamed to xorg.conf.old)

Added to /etc/initramfs-tools/modules
nvidia
nvidia-modeset
nvidia-drm

There is no (discernable) change from the following;

nvidia-smi
sudo lshw -c video
inxi -G
nvidia-settings
dpkg -l | grep nvidia
xrandr --listproviders

However, lsmod | grep nvidia now shows;

nvidia_uvm           1011712  0
nvidia_modeset       1228800  1
nvidia              34037760  19 nvidia_uvm,nvidia_modeset
i2c_nvidia_gpu         16384  0

hardinfo shows;

-Display-
Resolution		: 1920x1080 pixels
Vendor		: The X.Org Foundation
Version		: 1.20.9
Current Display Name		: :0.0
-Monitors-
Monitor 0		: 1920x1080 pixels
-OpenGL-
Vendor		: Intel
Renderer		: Mesa Intel(R) UHD Graphics 630 (CFL GT2)
Version		: 4.6 (Compatibility Profile) Mesa 20.2.6
Direct Rendering		: Yes
-Extensions-
Composite
DAMAGE
DOUBLE-BUFFER
DPMS
DRI2
DRI3
GLX
Generic Event Extension
MIT-SCREEN-SAVER
MIT-SHM
Present
RANDR
RECORD
RENDER
SECURITY
SHAPE
SYNC
X-Resource
XC-MISC
XFIXES
XFree86-DGA
XFree86-VidModeExtension
XINERAMA
XInputExtension
XKEYBOARD
XTEST
XVideo
default screen number:    0

Please create a new nvidia-bug-report.log.

1 Like

It may also be pertinent to note that I had started setting up for a deep learning environment, upgrading to CUDA 11.2, upgrading to the 460 driver, and blacklisting Noveau.

Though hearing of temperature concerns with the cooling on the G5, I’ve since removed /etc/modprobe.d/blacklist-nvidia-nouveau.conf several reboots ago and am now aiming at an eGPU with a 30x0 (to be determined later).

Even before this, though, I was unable to utilize an external monitor in Ubuntu 20.04.

nvidia-bug-report.log.gz (10.7 MB)

Please reboot.

1 Like

A hard reboot (vs. a restart) did the trick! Thank you so much!