I have a DELL XPS 15. I am struggling to connect an external monitor to my Ubuntu Machine. This is my xrandr output. I tried installing nvidia driver etc but nothing works. The cable is good, so that shouldn't be the problem.

[![enter image description here](https://i.stack.imgur.com/KqJZT.png)](https://i.stack.imgur.com/KqJZT.png)

```
Screen 0: minimum 8 x 8, current 2048 x 1152, maximum 32767 x 32767
eDP1 connected primary 2048x1152+0+0 (normal left inverted right x axis y axis) 346mm x 194mm
3840x2160     60.00 +
3200x1800     60.00  
2880x1620     60.00  
2560x1440     60.00  
2048x1536     60.00  
1920x1440     60.00  
960x540       60.00  
800x600       60.32    56.25  
864x486       60.00  
640x480       59.94  
720x405       60.00  
640x360       60.00  

DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)

inxi -G 
Graphics:  Card-1: Intel Skylake Integrated Graphics
       Card-2: NVIDIA GM107M [GeForce GTX 960M]
       Display Server:  X.org 1.18.4 drivers: intel (unloaded: fbdev,vesa) FAILED: nouveau Resolution: N/A
       GLX Renderer: N/A GLX Version: N/A

 lspci -nn | grep '\[03'

 00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 530 [8086:191b] (rev 06)
 01:00.0 3D controller [0302]: NVIDIA Corporation GM107M [GeForce GTX 960M] [10de:139b] (rev ff)

```