I'm having a precision 7530 with i7-8850H and NVIDIA Quadro P2000 and using ubuntu 18.04. Now after some time the external monitor connected over displayport (displayport to hdmi cable, where the displayport goes into the laptop and the hdmi cable into the monitor) stopped working. I'm using this workstation at work with the TB18DC dock, where 2 external monitors are connected and work properly. But at home I do not have any dock and with the setup mentioned above the external monitor stopped working. It did work some months ago. During the time it worked and now I have done normal ubuntu software updates where also the bios-firmware has been updated to 1.5.2 (i'm not sure what version I've had before, was the first time I updated firmware after bought, so maybe 1.0.7?).

I have also installed the nvidia 390 driver. But it doesn't work either with the xorg-driver.

xrandr says with connected displayport monitor:

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y     axis) 344mm x 193mm
   1920x1080     60.03*+  60.01    59.97    59.96    59.93    48.02  
   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 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis) 

I have also tried the following:

  • installing lightdm and use it (no effect)
  • disable switchable graphics in bios (no effect)
  • downgrade firmware version-by-version till 1.2.5 (as it won't let me downgrade back to 1.0.7. no effect)
  • reset bios settings to default (no effect)
  • reinstalling nvidia-driver (no effect)
  • trying without any nvidia-driver (no effect)
  • Disable secure boot (no effect). But I also getting nothing when running lsmod | grep nvidia

I booted from a live ubuntu usb stick and without external monitor it worked normally but with external monitor I got the following error message:

error message image

Any ideas how to get the monitor working? Thank!

  • I'm facing the same problem with Linux Mint. Since Mint comes with Lightdm as the default display manager I've installed gdm3. But this showed to be not enough and then I've uninstalled all the NVIDIA drivers. So, using the default xserver drivers and gdm3 solved the problem, but I might say in an unsatisfactory way because I use linux mainly for multimedia work and can't use the full potential of my hardware without the Nvidia drivers. Many people has this problem too and looks like there is no specific reason for this to happen and it's sad. – Fabio Silva Apr 9 at 0:19

I recently installed the nvidia-418 driver on my laptop which uses Ubuntu 18.04. At first the external monitor worked perfectly, but after I switched from power saving mode (sudo prime-select intel) back to performance mode (sudo prime-select nvidia), the second monitor was not detected anymore.

I discovered that prime-select writes a configuration file which causes the problem. It enables the nvidia-drm modeset option. You can simply undo the change made by prime-select by commenting out this option. It will not be reset, because prime-select only writes this file when it does not yet exists.

Open the file in your favorite editor (vim, nano, gedit, etc.).

sudo nano /lib/modprobe.d/nvidia-kms.conf

And comment out the the nvidia-drm modeset option.

# This file was generated by nvidia-prime
# Set value to 0 to disable modesetting
# options nvidia-drm modeset=1

Hope this also helps you and many others!

ps: It is completely normal that the second monitor is not detected in power saving mode when the connection is part of the nvidia graphics card.

  • For me it works however it doesn't seem to be the full solution. When I don't have any nvidia driver installed, I can easily use only intel 930 card and switch between internal and external display. However after installing intel 930 is not capable to display on external monitor, while nvidia requires the trick described by you. I believe it would be much more convenient to have also the possibility to use external hdmi port when using intel card. – user2707175 Jul 19 at 17:23
  • Doesn't work for me. Using an Dell G3 with an GTX1050 with 430 drivers – Maxwell s.c Aug 24 at 1:34
  • I'm on 19.04 and that file doesn't exist. Though, I'm using the Graphics Driver PPA. – MattBoothDev Oct 10 at 9:19
  • Ok, scratch that, I simply needed to run prime-select at least once and it did, indeed, generate that file. This seems to be working for me. I've also forcefully disabled Wayland for Gnome to stop that from being attempted to be set. – MattBoothDev Oct 10 at 10:42

I do prefer the solution by thomasnabgelis, but other working solution would be to use lightdm display manager. To do this just run sudo apt-get install lightdm and sudo dpkg-reconfigure lightdm if not configured after install.

Why this happens? I spent a lot of time trying to understand... nvidia-drm provides anti-tearing solution, though I didn't find any difference with this turning that off. Citation from nvidia forum (topic):

nvidia-drm modeset=1 is needed for tear-free display but since this is enabling linux kms for the nvidia driver, gdm thinks it can use wayland. Having a parallel wayland session makes it somehow impossible for X to detect any outputs on the nvidia gpu

  • Thank you. Unfortunately the preferable solution provided by @thomasbangels did not work for me as the module nvidia-drm seemed to be loaded regardless of the changes applied to the configuration file. Switching from gdm3 to lightdm did the trick. – Ra'Jiska May 4 at 17:57
  • What are advantages/disadvantages of using lightdm instead of gdm3? Btw, even when using lightdm I can display on external hdmi when using intel card. :( – user2707175 Jul 19 at 17:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.