Ubuntu 20.04 Doesn't Detect 2nd Monitor

Title says it all basically. I managed to get it to work once but as soon as I restarted the laptop it stops detecting the second monitor again. I don’t remember exactly how I managed to make it work but I recall had to something to do with Nvidia Drivers.

This time I tried everything shown here but couldn’t get it to work.

I’m running Ubuntu 20.04 and my GPU is a Nvidia GTX 1650 Mobile.

Settings:

$ prime-select query
nvidia

ubuntu-drivers:

$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001F91sv00001028sd000008EAbc03sc00i00
vendor   : NVIDIA Corporation
model    : TU117M [GeForce GTX 1650 Mobile / Max-Q]
driver   : nvidia-driver-450 - distro non-free
driver   : nvidia-driver-450-server - distro non-free
driver   : nvidia-driver-460 - third-party non-free recommended
driver   : nvidia-driver-418-server - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin

xrandr:

$ xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
HDMI-0 disconnected (normal left inverted right x axis y axis)
eDP-1-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080     60.01*+  60.01    59.97    59.96    48.01    59.93  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1440x900      59.89  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1360x768      59.80    59.96  
   1280x800      59.99    59.97    59.81    59.91  
   1152x864      60.00  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   800x512       60.17  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   720x450       59.89  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   680x384       59.80    59.96  
   640x400       59.88    59.98  
   576x432       60.06  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1-1 disconnected (normal left inverted right x axis y axis)
HDMI-1-1 disconnected (normal left inverted right x axis y axis)

grep nvidia:

$ dmesg | grep -i nvidia
[   14.072034] nvidia: loading out-of-tree module taints kernel.
[   14.072043] nvidia: module license 'NVIDIA' taints kernel.
[   14.076765] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[   14.083028] nvidia-nvlink: Nvlink Core is being initialized, major device number 237
[   14.083334] nvidia 0000:01:00.0: enabling device (0006 -> 0007)
[   14.083389] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[   14.127809] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  450.102.04  Tue Dec 29 06:51:23 UTC 2020
[   14.231316] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  450.102.04  Tue Dec 29 06:44:25 UTC 2020
[   14.450620] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[   14.450622] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1
[   15.003696] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input28
[   15.003738] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input29
[   15.003776] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input30
[   15.003812] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input31
[   15.826199] nvidia-uvm: Loaded the UVM driver, major device number 235.
[   22.220177] audit: type=1400 audit(1612272368.910:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=1119 comm="apparmor_parser"
[   22.220179] audit: type=1400 audit(1612272368.910:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=1119 comm="apparmor_parser"

Thanks in advance!

Hello carlossgv,

Which model’s the laptop? Dell, Asus, HP…

Hi Solidnoctis,

It’s a Dell G5 15 5590.